Package org.red5.io
Interface ITagReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the reader and free any allocated memory.voiddecodeHeader()Decode the header of the stream;longgetBytesRead()Returns the amount of bytes readlonggetDuration()Return length in secondsIStreamableFilegetFile()Return the file that is loaded.intgetOffset()Returns the offet lengthlonggetTotalBytes()Get the total readable bytes in a file or ByteBufferbooleanhasMoreTags()Returns a boolean stating whether the FLV has more tagsbooleanhasVideo()Check if the reader also has video tags.voidposition(long pos)Move the reader pointer to given position in file.ITagreadTag()Returns a Tag object
-
-
-
Method Detail
-
close
void close()
Closes the reader and free any allocated memory.
-
decodeHeader
void decodeHeader()
Decode the header of the stream;
-
getBytesRead
long getBytesRead()
Returns the amount of bytes read- Returns:
- long
-
getDuration
long getDuration()
Return length in seconds- Returns:
- length in seconds
-
getFile
IStreamableFile getFile()
Return the file that is loaded.- Returns:
- the file to be loaded
-
getOffset
int getOffset()
Returns the offet length- Returns:
- int
-
getTotalBytes
long getTotalBytes()
Get the total readable bytes in a file or ByteBuffer- Returns:
- Total readable bytes
-
hasMoreTags
boolean hasMoreTags()
Returns a boolean stating whether the FLV has more tags- Returns:
- boolean
-
hasVideo
boolean hasVideo()
Check if the reader also has video tags.- Returns:
- has video
-
position
void position(long pos)
Move the reader pointer to given position in file.- Parameters:
pos- File position to move to
-
readTag
ITag readTag()
Returns a Tag object- Returns:
- Tag
-
-