VideoSink.Listener


interface VideoSink.Listener


Listener for VideoSink events.

Summary

Constants

const VideoSink.Listener!

A no-op listener implementation.

Public functions

Unit
onError(videoSinkException: VideoSink.VideoSinkException!)

Called when the VideoSink encountered an error.

Unit

Called when the sink renders the first frame on the output surface.

Unit

Called when an output frame is available for rendering.

Unit

Called when the sink dropped a frame.

Unit

Called before a frame is rendered for the first time after setting the output surface, and each time there's a change in the size, rotation or pixel aspect ratio of the video being rendered.

Constants

NO_OP

const val NO_OPVideoSink.Listener!

A no-op listener implementation.

Public functions

onError

fun onError(videoSinkException: VideoSink.VideoSinkException!): Unit

Called when the VideoSink encountered an error.

onFirstFrameRendered

fun onFirstFrameRendered(): Unit

Called when the sink renders the first frame on the output surface.

onFrameAvailableForRendering

fun onFrameAvailableForRendering(): Unit

Called when an output frame is available for rendering.

onFrameDropped

fun onFrameDropped(): Unit

Called when the sink dropped a frame.

onVideoSizeChanged

fun onVideoSizeChanged(videoSize: VideoSize!): Unit

Called before a frame is rendered for the first time after setting the output surface, and each time there's a change in the size, rotation or pixel aspect ratio of the video being rendered.