public interface

CompositingVideoSinkProvider.Listener

 androidx.media3.exoplayer.video.CompositingVideoSinkProvider.Listener

Subclasses:

CompositionPlayer

Overview

Listener for CompositingVideoSinkProvider events.

Summary

Methods
public voidonError(CompositingVideoSinkProvider compositingVideoSinkProvider, VideoFrameProcessingException videoFrameProcessingException)

Called when the video frame processor encountered an error.

public voidonFirstFrameRendered(CompositingVideoSinkProvider compositingVideoSinkProvider)

Called when the video frame processor renders the first frame.

public voidonFrameDropped(CompositingVideoSinkProvider compositingVideoSinkProvider)

Called when the video frame processor dropped a frame.

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

Methods

public void onFirstFrameRendered(CompositingVideoSinkProvider compositingVideoSinkProvider)

Called when the video frame processor renders the first frame.

Parameters:

compositingVideoSinkProvider: The compositing video sink provider which triggered this event.

public void onFrameDropped(CompositingVideoSinkProvider compositingVideoSinkProvider)

Called when the video frame processor dropped a frame.

Parameters:

compositingVideoSinkProvider: The compositing video sink provider which triggered this event.

public void onVideoSizeChanged(CompositingVideoSinkProvider compositingVideoSinkProvider, 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.

Parameters:

compositingVideoSinkProvider: The compositing video sink provider which triggered this event.
videoSize: The video size.

public void onError(CompositingVideoSinkProvider compositingVideoSinkProvider, VideoFrameProcessingException videoFrameProcessingException)

Called when the video frame processor encountered an error.

Parameters:

compositingVideoSinkProvider: The compositing video sink provider which triggered this event.
videoFrameProcessingException: The error.