| java.lang.Object | |
| ↳ | android.media.MediaCodec.Callback |
MediaCodec callback interface. Used to notify the user asynchronously of various MediaCodec events.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Called when the MediaCodec encountered an error
| |||||||||||
Called when an input buffer becomes available.
| |||||||||||
Called when an output buffer becomes available.
| |||||||||||
Called when the output format has changed
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Called when the MediaCodec encountered an error
| codec | The MediaCodec object. |
|---|---|
| e | The MediaCodec.CodecException object describing the error.
|
Called when an input buffer becomes available.
| codec | The MediaCodec object. |
|---|---|
| index | The index of the available input buffer. |
Called when an output buffer becomes available.
| codec | The MediaCodec object. |
|---|---|
| index | The index of the available output buffer. |
| info | Info regarding the available output buffer MediaCodec.BufferInfo.
|
Called when the output format has changed
| codec | The MediaCodec object. |
|---|---|
| format | The new output format. |