VideoGraph.Listener
interface VideoGraph.Listener
Listener for video frame processing events.
Summary
Public functions |
|
|---|---|
Unit |
Called after the |
Unit |
onError(exception: VideoFrameProcessingException!)Called when an exception occurs during video frame processing. |
Unit |
onOutputFrameAvailableForRendering(Called when an output frame with the given |
Unit |
onOutputFrameRateChanged(frameRate: Float)Called when the output frame rate changes. |
Unit |
onOutputSizeChanged(width: Int, height: Int)Called when the output size changes. |
Public functions
onEnded
fun onEnded(finalFramePresentationTimeUs: Long): Unit
Called after the VideoGraph has rendered its final output frame.
| Parameters | |
|---|---|
finalFramePresentationTimeUs: Long |
The timestamp of the last output frame, in microseconds. |
onError
fun onError(exception: VideoFrameProcessingException!): Unit
Called when an exception occurs during video frame processing.
If this is called, the calling VideoGraph must immediately be released.
onOutputFrameAvailableForRendering
fun onOutputFrameAvailableForRendering(
framePresentationTimeUs: Long,
isRedrawnFrame: Boolean
): Unit
Called when an output frame with the given framePresentationTimeUs becomes available for rendering.
| Parameters | |
|---|---|
framePresentationTimeUs: Long |
The presentation time of the frame, in microseconds. |
isRedrawnFrame: Boolean |
Whether the frame is a frame that is |
onOutputFrameRateChanged
fun onOutputFrameRateChanged(frameRate: Float): Unit
Called when the output frame rate changes.