public interface

VideoSink.Listener

 androidx.media3.exoplayer.video.VideoSink.Listener

Overview

Listener for VideoSink events.

Summary

Fields
public static final VideoSink.ListenerNO_OP

A no-op listener implementation.

Methods
public voidonError(VideoSink videoSink, VideoSink.VideoSinkException videoSinkException)

Called when the VideoSink encountered an error.

public voidonFirstFrameRendered(VideoSink videoSink)

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

public voidonFrameDropped(VideoSink videoSink)

Called when the sink dropped a frame.

public voidonVideoSizeChanged(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.

Fields

public static final VideoSink.Listener NO_OP

A no-op listener implementation.

Methods

public void onFirstFrameRendered(VideoSink videoSink)

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

public void onFrameDropped(VideoSink videoSink)

Called when the sink dropped a frame.

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

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

Called when the VideoSink encountered an error.