# Print output for @column tags ?>
  public
  static
  
  abstract
  class
  MediaCodec.Callback
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.media.MediaCodec.Callback | 
MediaCodec callback interface. Used to notify the user asynchronously of various MediaCodec events.
| Public constructors | |
|---|---|
| 
      Callback()
       | |
| Public methods | |
|---|---|
| 
        abstract
        
        
        
        
        void | 
      onError(MediaCodec codec, MediaCodec.CodecException e)
      Called when the MediaCodec encountered an error | 
| 
        abstract
        
        
        
        
        void | 
      onInputBufferAvailable(MediaCodec codec, int index)
      Called when an input buffer becomes available. | 
| 
        abstract
        
        
        
        
        void | 
      onOutputBufferAvailable(MediaCodec codec, int index, MediaCodec.BufferInfo info)
      Called when an output buffer becomes available. | 
| 
        abstract
        
        
        
        
        void | 
      onOutputFormatChanged(MediaCodec codec, MediaFormat format)
      Called when the output format has changed | 
| Inherited methods | |
|---|---|
public Callback ()
public abstract void onError (MediaCodec codec, MediaCodec.CodecException e)
Called when the MediaCodec encountered an error
| Parameters | |
|---|---|
| codec | MediaCodec: The MediaCodec object.
 This value cannot benull. | 
| e | MediaCodec.CodecException: TheMediaCodec.CodecExceptionobject describing the error.
 
 This value cannot benull. | 
public abstract void onInputBufferAvailable (MediaCodec codec, int index)
Called when an input buffer becomes available.
| Parameters | |
|---|---|
| codec | MediaCodec: The MediaCodec object.
 This value cannot benull. | 
| index | int: The index of the available input buffer. | 
public abstract void onOutputBufferAvailable (MediaCodec codec, int index, MediaCodec.BufferInfo info)
Called when an output buffer becomes available.
| Parameters | |
|---|---|
| codec | MediaCodec: The MediaCodec object.
 This value cannot benull. | 
| index | int: The index of the available output buffer. | 
| info | MediaCodec.BufferInfo: Info regarding the available output bufferMediaCodec.BufferInfo.
 
 This value cannot benull. | 
public abstract void onOutputFormatChanged (MediaCodec codec, MediaFormat format)
Called when the output format has changed
| Parameters | |
|---|---|
| codec | MediaCodec: The MediaCodec object.
 This value cannot benull. | 
| format | MediaFormat: The new output format.
 
 This value cannot benull. |