Class VideoRendererEventListener.EventDispatcher
- java.lang.Object
-
- com.google.android.exoplayer2.video.VideoRendererEventListener.EventDispatcher
-
- Enclosing interface:
- VideoRendererEventListener
public static final class VideoRendererEventListener.EventDispatcher extends Object
Dispatches events to aVideoRendererEventListener
.
-
-
Constructor Summary
Constructors Constructor Description EventDispatcher(Handler handler, VideoRendererEventListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
void
decoderReleased(String decoderName)
void
disabled(DecoderCounters counters)
void
droppedFrames(int droppedFrameCount, long elapsedMs)
void
enabled(DecoderCounters decoderCounters)
void
inputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)
void
renderedFirstFrame(Object output)
void
reportVideoFrameProcessingOffset(long totalProcessingOffsetUs, int frameCount)
void
videoCodecError(Exception videoCodecError)
void
videoSizeChanged(VideoSize videoSize)
-
-
-
Constructor Detail
-
EventDispatcher
public EventDispatcher(@Nullable Handler handler, @Nullable 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.
-
-
Method Detail
-
enabled
public void enabled(DecoderCounters decoderCounters)
-
decoderInitialized
public void decoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
-
inputFormatChanged
public void inputFormatChanged(Format format, @Nullable DecoderReuseEvaluation decoderReuseEvaluation)
-
droppedFrames
public void droppedFrames(int droppedFrameCount, long elapsedMs)
-
reportVideoFrameProcessingOffset
public void reportVideoFrameProcessingOffset(long totalProcessingOffsetUs, int frameCount)
-
videoSizeChanged
public void videoSizeChanged(VideoSize videoSize)
-
renderedFirstFrame
public void renderedFirstFrame(Object output)
-
decoderReleased
public void decoderReleased(String decoderName)
-
disabled
public void disabled(DecoderCounters counters)
-
videoCodecError
public void videoCodecError(Exception videoCodecError)
-
-