Class MediaMuxerWrapper

java.lang.Object
com.banuba.sdk.internal.encoding.MediaMuxerWrapper
All Implemented Interfaces:
com.banuba.sdk.internal.encoding.EncoderHandlerThreadVideo.EncoderListener
Direct Known Subclasses:
MediaMuxerWrapperExternalAudio

public class MediaMuxerWrapper extends Object implements com.banuba.sdk.internal.encoding.EncoderHandlerThreadVideo.EncoderListener
  • Field Details

    • mMediaMuxer

      protected final android.media.MediaMuxer mMediaMuxer
    • mStartedCount

      protected int mStartedCount
    • mExternalAudioTrackIndex

      protected int mExternalAudioTrackIndex
    • mAudioPresentationTimeUsLast

      protected long mAudioPresentationTimeUsLast
    • RECORD_NO_AUDIO

      public static final int RECORD_NO_AUDIO
      See Also:
    • RECORD_MIC_AUDIO

      public static final int RECORD_MIC_AUDIO
      See Also:
    • RECORD_BUFFER_AUDIO

      public static final int RECORD_BUFFER_AUDIO
      See Also:
    • RECORD_EXTERNAL_AUDIO_CODEC

      public static final int RECORD_EXTERNAL_AUDIO_CODEC
      See Also:
  • Constructor Details

  • Method Details

    • getAudioSender

      @Nullable public IAudioDataSender getAudioSender()
    • setPause

      public void setPause(boolean pause)
    • prepare

      public void prepare() throws IOException
      Throws:
      IOException
    • startRecording

      public void startRecording()
    • stopRecording

      public void stopRecording()
    • getInputSurface

      public android.view.Surface getInputSurface()
    • frameAvailableSoon

      public void frameAvailableSoon()
    • waitForFinish

      public void waitForFinish()
    • onVideoEncodingFinished

      public void onVideoEncodingFinished(long duration)
      Specified by:
      onVideoEncodingFinished in interface com.banuba.sdk.internal.encoding.EncoderHandlerThreadVideo.EncoderListener
    • onAudioEncodingFinished

      public void onAudioEncodingFinished()
    • onAudioStopped

      public void onAudioStopped()
    • onAudioStarted

      public void onAudioStarted(long startTimeNano)