Package com.banuba.sdk.encoding
Class MediaMuxerWrapperExternalAudio
java.lang.Object
com.banuba.sdk.internal.encoding.MediaMuxerWrapper
com.banuba.sdk.encoding.MediaMuxerWrapperExternalAudio
- All Implemented Interfaces:
com.banuba.sdk.internal.encoding.EncoderHandlerThreadVideo.EncoderListener
-
Field Summary
Fields inherited from class com.banuba.sdk.internal.encoding.MediaMuxerWrapper
mAudioPresentationTimeUsLast, mExternalAudioTrackIndex, mMediaMuxer, mStartedCount, RECORD_BUFFER_AUDIO, RECORD_EXTERNAL_AUDIO_CODEC, RECORD_MIC_AUDIO, RECORD_NO_AUDIO
-
Constructor Summary
ConstructorDescriptionMediaMuxerWrapperExternalAudio
(RenderHandler handler, RecordingListenerHandler recordingListenerHandler, String fileName, IEncoderSync encoderSync, long timeBase, float speed, int w, int h, android.media.MediaFormat formatVideo, android.media.MediaFormat formatAudio) -
Method Summary
Modifier and TypeMethodDescriptionboolean
writeAudioSampleData
(ByteBuffer byteBuf, android.media.MediaCodec.BufferInfo bufferInfo) Methods inherited from class com.banuba.sdk.internal.encoding.MediaMuxerWrapper
frameAvailableSoon, getAudioSender, getInputSurface, onAudioEncodingFinished, onAudioStarted, onAudioStopped, onVideoEncodingFinished, prepare, setPause, startRecording, stopRecording, waitForFinish
-
Constructor Details
-
MediaMuxerWrapperExternalAudio
public MediaMuxerWrapperExternalAudio(@Nullable RenderHandler handler, @Nullable RecordingListenerHandler recordingListenerHandler, @NonNull String fileName, @Nullable IEncoderSync encoderSync, long timeBase, float speed, int w, int h, @Nullable android.media.MediaFormat formatVideo, @Nullable android.media.MediaFormat formatAudio) throws IOException - Throws:
IOException
-
-
Method Details
-
writeAudioSampleData
public boolean writeAudioSampleData(@NonNull ByteBuffer byteBuf, @NonNull android.media.MediaCodec.BufferInfo bufferInfo)
-