VideoSink.Listener
public interface VideoSink.Listener
Listener for VideoSink events.
Summary
Constants |
|
|---|---|
default static final VideoSink.Listener |
A no-op listener implementation. |
Public methods |
|
|---|---|
default void |
onError(VideoSink.VideoSinkException videoSinkException)Called when the |
default void |
Called when the sink renders the first frame on the output surface. |
default void |
Called when an output frame is available for rendering. |
default void |
Called when the sink dropped a frame. |
default void |
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 methods
onError
default void onError(VideoSink.VideoSinkException videoSinkException)
Called when the VideoSink encountered an error.
onFirstFrameRendered
default void onFirstFrameRendered()
Called when the sink renders the first frame on the output surface.
onFrameAvailableForRendering
default void onFrameAvailableForRendering()
Called when an output frame is available for rendering.
onVideoSizeChanged
default void 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.