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

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

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

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