VideoSink.Listener


public interface VideoSink.Listener


Listener for VideoSink events.

Summary

Constants

default static final VideoSink.Listener

A no-op listener implementation.

Public methods

abstract void
onError(
    VideoSink videoSink,
    VideoSink.VideoSinkException videoSinkException
)

Called when the VideoSink encountered an error.

abstract void

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

abstract void

Called when the sink dropped a frame.

abstract void
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

default static final VideoSink.Listener NO_OP

A no-op listener implementation.

Public methods

onError

abstract void onError(
    VideoSink videoSink,
    VideoSink.VideoSinkException videoSinkException
)

Called when the VideoSink encountered an error.

onFirstFrameRendered

abstract void onFirstFrameRendered(VideoSink videoSink)

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

onFrameDropped

abstract void onFrameDropped(VideoSink videoSink)

Called when the sink dropped a frame.

onVideoSizeChanged

abstract void 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.