Class MediaMuxerWrapperExternalAudio

  • All Implemented Interfaces:
    com.banuba.sdk.internal.encoding.EncoderHandlerThreadVideo.EncoderListener

    public class MediaMuxerWrapperExternalAudio
    extends MediaMuxerWrapper
    • Constructor Detail

      • MediaMuxerWrapperExternalAudio

        public MediaMuxerWrapperExternalAudio​(@Nullable
                                              RenderHandler handler,
                                              @Nullable
                                              RecordingListenerHandler recordingListenerHandler,
                                              @NonNull
                                              java.lang.String fileName,
                                              @Nullable
                                              IEncoderSync encoderSync,
                                              long timeBase,
                                              float speed,
                                              int w,
                                              int h,
                                              @Nullable
                                              android.media.MediaFormat formatVideo,
                                              @Nullable
                                              android.media.MediaFormat formatAudio)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeAudioSampleData

        public boolean writeAudioSampleData​(@NonNull
                                            java.nio.ByteBuffer byteBuf,
                                            @NonNull
                                            android.media.MediaCodec.BufferInfo bufferInfo)