Class RTMPClusterStreamFetcher.RtmpFetcherThread

java.lang.Object
java.lang.Thread
io.antmedia.streamsource.RTMPClusterStreamFetcher.RtmpFetcherThread
All Implemented Interfaces:
Runnable
Enclosing class:
RTMPClusterStreamFetcher

public class RTMPClusterStreamFetcher.RtmpFetcherThread extends Thread
  • Field Details

    • isJobRunning

      protected AtomicBoolean isJobRunning
    • inputFormatContext

      org.bytedeco.ffmpeg.avformat.AVFormatContext inputFormatContext
    • firstPacketTime

      long firstPacketTime
    • bufferDuration

      long bufferDuration
    • timeOffsetInMs

      long timeOffsetInMs
    • videoTimeBase

      private org.bytedeco.ffmpeg.avutil.AVRational videoTimeBase
    • audioTimeBase

      private org.bytedeco.ffmpeg.avutil.AVRational audioTimeBase
  • Constructor Details

    • RtmpFetcherThread

      public RtmpFetcherThread()
  • Method Details

    • prepareInput

      public Result prepareInput(org.bytedeco.ffmpeg.avformat.AVFormatContext inputFormatContext)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • readMore

      public boolean readMore(org.bytedeco.ffmpeg.avcodec.AVPacket pkt)
    • readNextPacket

      public int readNextPacket(org.bytedeco.ffmpeg.avcodec.AVPacket pkt)
    • unReferencePacket

      public void unReferencePacket(org.bytedeco.ffmpeg.avcodec.AVPacket pkt)
    • prepareInputContext

      public boolean prepareInputContext() throws Exception
      Throws:
      Exception
    • closeInputFormatContext

      public void closeInputFormatContext()
    • close

      public void close(org.bytedeco.ffmpeg.avcodec.AVPacket pkt)