public interface IMediaCodecCallback
| Modifier and Type | Method and Description |
|---|---|
boolean |
onError(IMediaCodec codec,
java.lang.Exception e)
called when error occurred
|
boolean |
onFrameAvailable(IMediaCodec codec,
long presentationTimeUs)
called every frame before time adjusting
return true if you don't want to use internal time adjustment
|
void |
onPrepared(IMediaCodec codec)
called when preparing finished
|
void |
onRelease(IMediaCodec codec)
called before releasing MediaCodec instance
|
void |
onStart(IMediaCodec codec)
called when start playing
|
void |
onStop(IMediaCodec codec)
called when playing stopped
|
void onPrepared(IMediaCodec codec)
codec - void onStart(IMediaCodec codec)
codec - boolean onFrameAvailable(IMediaCodec codec, long presentationTimeUs)
codec - presentationTimeUs - void onStop(IMediaCodec codec)
codec - void onRelease(IMediaCodec codec)
codec - boolean onError(IMediaCodec codec, java.lang.Exception e)
codec - e -