Package org.red5.io
Interface ITagReader
- All Known Implementing Classes:
FLVReader
public interface ITagReader
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the reader and free any allocated memory.void
Decode the header of the stream;long
Returns the amount of bytes readlong
Return length in secondsgetFile()
Return the file that is loaded.int
Returns the offet lengthlong
Get the total readable bytes in a file or ByteBufferboolean
Returns a boolean stating whether the FLV has more tagsboolean
hasVideo()
Check if the reader also has video tags.void
position
(long pos) Move the reader pointer to given position in file.readTag()
Returns a Tag object
-
Method Details
-
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
-