Package org.red5.io

Interface ITagReader

All Known Implementing Classes:
FLVReader

public interface ITagReader
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the reader and free any allocated memory.
    void
    Decode the header of the stream;
    long
    Returns the amount of bytes read
    long
    Return length in seconds
    Return the file that is loaded.
    int
    Returns the offet length
    long
    Get the total readable bytes in a file or ByteBuffer
    boolean
    Returns a boolean stating whether the FLV has more tags
    boolean
    Check if the reader also has video tags.
    void
    position(long pos)
    Move the reader pointer to given position in file.
    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