Package org.red5.io

Interface ITagReader

    • 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