EncoderFrameWriter.Listener


public interface EncoderFrameWriter.Listener


Listener for EncoderFrameWriter events.

Summary

Public methods

abstract Format
onConfigure(Format requestedFormat)

Called when configure is called.

abstract void

Called when the encoder is created so downstream components can receive its output.

abstract void

Called when the end of stream has been reached and is about to be signaled downstream.

abstract void

Called when an asynchronous error occurs.

Public methods

onConfigure

abstract Format onConfigure(Format requestedFormat)

Called when configure is called.

Returns
Format

The Format used to configure the encoder.

onEncoderCreated

abstract void onEncoderCreated(Codec encoder)

Called when the encoder is created so downstream components can receive its output.

onEndOfStream

abstract void onEndOfStream()

Called when the end of stream has been reached and is about to be signaled downstream.

onError

abstract void onError(VideoFrameProcessingException e)

Called when an asynchronous error occurs.