public class MediaAudioDecoder extends MediaDecoder
mState, STATE_INITIALIZED, STATE_PAUSED, STATE_PLAYING, STATE_PREPARED, STATE_UNINITIALIZED, STATE_WAIT, TAG| Constructor and Description |
|---|
MediaAudioDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected android.media.MediaCodec |
createCodec(android.media.MediaExtractor media_extractor,
int track_index,
android.media.MediaFormat format) |
protected android.view.Surface |
getOutputSurface() |
protected boolean |
handleOutput(java.nio.ByteBuffer buffer,
int offset,
int size,
long presentationTimeUs)
process decoded data
|
protected int |
handlePrepare(android.media.MediaExtractor media_extractor) |
adjustPresentationTime, callErrorHandler, callOnPrepared, callOnRelease, callOnStart, callOnStop, getBitRate, getCallback, getDuration, handleInput, internal_HandleInput, internal_handleOutput, isPrepared, isRunning, pause, prepare, release, restart, seek, selectTrack, setCallback, setDataSource, setDataSource, setDataSource, setDataSource, setDataSource, setDataSource, start, stop, updateMovieInfoprotected int handlePrepare(android.media.MediaExtractor media_extractor)
handlePrepare in class MediaDecoderprotected android.media.MediaCodec createCodec(android.media.MediaExtractor media_extractor,
int track_index,
android.media.MediaFormat format)
throws java.io.IOException,
java.lang.IllegalArgumentException
createCodec in class MediaDecoderjava.io.IOExceptionjava.lang.IllegalArgumentExceptionprotected android.view.Surface getOutputSurface()
getOutputSurface in class MediaDecoderprotected boolean handleOutput(java.nio.ByteBuffer buffer,
int offset,
int size,
long presentationTimeUs)
MediaDecoderhandleOutput in class MediaDecoder