Package com.banuba.sdk.video
Class BaseExtractor
java.lang.Object
com.banuba.sdk.video.BaseExtractor
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AudioExtractor
,VideoExtractor
Common class for extracting metadata from a file
-
Field Summary
Modifier and TypeFieldDescriptionprotected android.media.MediaExtractor
protected final String
protected final android.media.MediaFormat
protected final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
android.media.MediaFormat
Returns the data format configured for retrieval
-
Field Details
-
mTrackIndex
protected final int mTrackIndex -
mFilename
-
mMediaFormat
protected final android.media.MediaFormat mMediaFormat -
mExtractor
protected android.media.MediaExtractor mExtractor
-
-
Constructor Details
-
BaseExtractor
- Parameters:
filename
- path to the filemimePrefix
- configures to retrieve only certain data- Throws:
IOException
-
-
Method Details
-
getMediaFormat
public android.media.MediaFormat getMediaFormat()Returns the data format configured for retrieval -
close
@CallSuper public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-