Class of android.media · MediaExtractor.java · Android's reference
public final class MediaExtractor
Demuxes media files. No demuxer is here: a readable source opens as a container with no tracks.
public static final int SEEK_TO_PREVIOUS_SYNC = 0 sourcepublic static final int SEEK_TO_NEXT_SYNC = 1 sourcepublic static final int SEEK_TO_CLOSEST_SYNC = 2 sourcepublic static final int SAMPLE_FLAG_SYNC = 1 sourcepublic static final int SAMPLE_FLAG_ENCRYPTED = 2 sourcepublic static final int SAMPLE_FLAG_PARTIAL_FRAME = 4 sourcepublic MediaExtractor() empty body sourcepublic void setDataSource(String path) throws IOException sourcepublic void setDataSource(String path, Map<String, String> headers) throws IOException sourcepublic void setDataSource(Context context, Uri uri, Map<String, String> headers) throws IOException empty body sourcepublic void setDataSource(FileDescriptor fd) throws IOException empty body sourcepublic void setDataSource(FileDescriptor fd, long offset, long length) throws IOException empty body sourcepublic void setDataSource(android.content.res.AssetFileDescriptor afd) throws IOException empty body sourcepublic int getTrackCount() sourcepublic MediaFormat getTrackFormat(int index) sourcepublic void selectTrack(int index) sourcepublic void unselectTrack(int index) sourcepublic void seekTo(long timeUs, int mode) empty body sourcepublic boolean advance() sourcepublic int readSampleData(ByteBuffer byteBuf, int offset) sourcepublic int getSampleTrackIndex() sourcepublic long getSampleTime() sourcepublic long getSampleSize() sourcepublic int getSampleFlags() sourcepublic long getCachedDuration() sourcepublic boolean hasCacheReachedEndOfStream() sourcepublic void release() empty body sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.