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 |
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 |
onVideoSizeChanged(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
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.
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.