Interface MatroskaTrackConsumer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Already flushed, no more input coming.
      void consume​(java.nio.ByteBuffer data)
      Consume one frame from the track
      void flush()
      Indicates that no more input will come, all remaining buffers should be flushed
      MatroskaFileTrack getTrack()  
      void initialise()
      Initialise the consumer, called before first consume()
      void seekPerformed​(long requestedTimecode, long providedTimecode)
      Indicates that the next frame is not a direct continuation of the previous one
    • Method Detail

      • initialise

        void initialise()
        Initialise the consumer, called before first consume()
      • seekPerformed

        void seekPerformed​(long requestedTimecode,
                           long providedTimecode)
        Indicates that the next frame is not a direct continuation of the previous one
        Parameters:
        requestedTimecode - Timecode in milliseconds to which the seek was requested to
        providedTimecode - Timecode in milliseconds to which the seek was actually performed to
      • flush

        void flush()
            throws java.lang.InterruptedException
        Indicates that no more input will come, all remaining buffers should be flushed
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • consume

        void consume​(java.nio.ByteBuffer data)
              throws java.lang.InterruptedException
        Consume one frame from the track
        Parameters:
        data - The data of the frame
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • close

        void close()
            throws java.lang.Exception
        Already flushed, no more input coming. Free all resources.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception