VideoSink.Listener


interface VideoSink.Listener


Listener for VideoSink events.

Summary

Constants

const VideoSink.Listener!

A no-op listener implementation.

Public functions

Unit
onError(
    videoSink: VideoSink!,
    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 the sink dropped a frame.

Unit
onVideoSizeChanged(videoSink: VideoSink!, videoSize: VideoSize!)

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(
    videoSink: VideoSink!,
    videoSinkException: VideoSink.VideoSinkException!
): Unit

Called when the VideoSink encountered an error.

onFirstFrameRendered

fun onFirstFrameRendered(videoSink: VideoSink!): Unit

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

onFrameDropped

fun onFrameDropped(videoSink: VideoSink!): Unit

Called when the sink dropped a frame.

onVideoSizeChanged

fun onVideoSizeChanged(videoSink: VideoSink!, 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.