EncoderFrameWriter.Listener


public interface EncoderFrameWriter.Listener


Listener for EncoderFrameWriter events.

Summary

Public methods

default Format
onConfigure(Format requestedFormat)

This method is deprecated.

Prepare the Format in the Codec.EncoderFactory passed to the EncoderFrameWriter constructor instead, so getInfo and configure use the same Format.

default void

This method is deprecated.

Obtain the created Codec in createForVideoEncoding on the factory passed to the EncoderFrameWriter constructor instead.

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

default Format onConfigure(Format requestedFormat)

Called synchronously when configure is called. The returned Format is used to create the encoder.

onEncoderCreated

default 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.