MediaCodecAdapter.OnBufferAvailableListener


public interface MediaCodecAdapter.OnBufferAvailableListener


Listener to be called when an input or output buffer becomes available, or when an asynchronous codec error invalidates all previously available buffers.

Summary

Public methods

default void

Called when an asynchronous error occurs on the underlying MediaCodec (such as from a MediaCodec.Callback error or an asynchronous buffer queueing operation), invalidating all previously available input and output buffers.

default void

Called when an input buffer becomes available.

default void

Called when an output buffer becomes available.

Public methods

onCodecError

default void onCodecError()

Called when an asynchronous error occurs on the underlying MediaCodec (such as from a MediaCodec.Callback error or an asynchronous buffer queueing operation), invalidating all previously available input and output buffers.

onInputBufferAvailable

default void onInputBufferAvailable()

Called when an input buffer becomes available.

onOutputBufferAvailable

default void onOutputBufferAvailable()

Called when an output buffer becomes available.