Package com.banuba.sdk.video
Class AudioExtractor
java.lang.Object
com.banuba.sdk.video.BaseExtractor
com.banuba.sdk.video.AudioExtractor
- All Implemented Interfaces:
Closeable
,AutoCloseable
Extracts an audio stream from a video file
-
Field Summary
Fields inherited from class com.banuba.sdk.video.BaseExtractor
mExtractor, mFilename, mMediaFormat, mTrackIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLinkedList<android.util.Pair<android.media.MediaCodec.BufferInfo,
ByteBuffer>> Extract full audio stream from a video fileMethods inherited from class com.banuba.sdk.video.BaseExtractor
close, getMediaFormat
-
Constructor Details
-
AudioExtractor
Create an instance of the AudioExtractor. If there is no audio data, an IOException will be thrown- Parameters:
filename
- - path to the videofile- Throws:
IOException
-
-
Method Details
-
extractAudioStream
public LinkedList<android.util.Pair<android.media.MediaCodec.BufferInfo,ByteBuffer>> extractAudioStream()Extract full audio stream from a video file- Returns:
- linked list with audio samples
-