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 renderers the first frame.

Unit

Called when the sink dropped a frame.

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

Called before a frame is rendered for the first time since setting the 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 renderers the first frame.

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 since setting the surface, and each time there's a change in the size, rotation or pixel aspect ratio of the video being rendered.