public final class

VideoRendererEventListener.EventDispatcher

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.video.VideoRendererEventListener.EventDispatcher

Overview

Dispatches events to a VideoRendererEventListener.

Summary

Constructors
publicEventDispatcher(Handler handler, VideoRendererEventListener listener)

Methods
public voiddecoderInitialized(java.lang.String decoderName, long initializedTimestampMs, long initializationDurationMs)

Invokes VideoRendererEventListener.onVideoDecoderInitialized(String, long, long).

public voiddecoderReleased(java.lang.String decoderName)

Invokes VideoRendererEventListener.onVideoDecoderReleased(String).

public voiddisabled(DecoderCounters counters)

Invokes VideoRendererEventListener.onVideoDisabled(DecoderCounters).

public voiddroppedFrames(int droppedFrameCount, long elapsedMs)

Invokes VideoRendererEventListener.onDroppedFrames(int, long).

public voidenabled(DecoderCounters decoderCounters)

Invokes VideoRendererEventListener.onVideoEnabled(DecoderCounters).

public voidinputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)

Invokes VideoRendererEventListener.onVideoInputFormatChanged(Format, DecoderReuseEvaluation).

public voidrenderedFirstFrame(java.lang.Object output)

Invokes VideoRendererEventListener.onRenderedFirstFrame(Object, long).

public voidreportVideoFrameProcessingOffset(long totalProcessingOffsetUs, int frameCount)

Invokes VideoRendererEventListener.onVideoFrameProcessingOffset(long, int).

public voidvideoCodecError(java.lang.Exception videoCodecError)

Invokes VideoRendererEventListener.onVideoCodecError(Exception).

public voidvideoSizeChanged(VideoSize videoSize)

Invokes VideoRendererEventListener.onVideoSizeChanged(VideoSize).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public EventDispatcher(Handler handler, VideoRendererEventListener listener)

Parameters:

handler: A handler for dispatching events, or null if events should not be dispatched.
listener: The listener to which events should be dispatched, or null if events should not be dispatched.

Methods

public void enabled(DecoderCounters decoderCounters)

Invokes VideoRendererEventListener.onVideoEnabled(DecoderCounters).

public void decoderInitialized(java.lang.String decoderName, long initializedTimestampMs, long initializationDurationMs)

Invokes VideoRendererEventListener.onVideoDecoderInitialized(String, long, long).

public void inputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)

Invokes VideoRendererEventListener.onVideoInputFormatChanged(Format, DecoderReuseEvaluation).

public void droppedFrames(int droppedFrameCount, long elapsedMs)

Invokes VideoRendererEventListener.onDroppedFrames(int, long).

public void reportVideoFrameProcessingOffset(long totalProcessingOffsetUs, int frameCount)

Invokes VideoRendererEventListener.onVideoFrameProcessingOffset(long, int).

public void videoSizeChanged(VideoSize videoSize)

Invokes VideoRendererEventListener.onVideoSizeChanged(VideoSize).

public void renderedFirstFrame(java.lang.Object output)

Invokes VideoRendererEventListener.onRenderedFirstFrame(Object, long).

public void decoderReleased(java.lang.String decoderName)

Invokes VideoRendererEventListener.onVideoDecoderReleased(String).

public void disabled(DecoderCounters counters)

Invokes VideoRendererEventListener.onVideoDisabled(DecoderCounters).

public void videoCodecError(java.lang.Exception videoCodecError)

Invokes VideoRendererEventListener.onVideoCodecError(Exception).