Class AdtsStreamProvider


  • public class AdtsStreamProvider
    extends java.lang.Object
    Provides the frames of an ADTS stream track to the frame consumer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Free all resources.
      void provideFrames()
      Provides frames to the frame consumer.
      void setInitialSeek​(long requestedTimecode, long providedTimecode)
      Used to pass the initial position of the stream in case it is part of a chain, to keep timecodes of audio frames continuous.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdtsStreamProvider

        public AdtsStreamProvider​(java.io.InputStream inputStream,
                                  AudioProcessingContext context)
        Parameters:
        inputStream - Input stream to read from.
        context - Configuration and output information for processing
    • Method Detail

      • setInitialSeek

        public void setInitialSeek​(long requestedTimecode,
                                   long providedTimecode)
        Used to pass the initial position of the stream in case it is part of a chain, to keep timecodes of audio frames continuous.
        Parameters:
        requestedTimecode - The timecode at which the samples from this stream should be outputted.
        providedTimecode - The timecode at which this stream starts.
      • provideFrames

        public void provideFrames()
                           throws java.lang.InterruptedException
        Provides frames to the frame consumer.
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • close

        public void close()
        Free all resources.