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 voiddecoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)voiddecoderReleased(String decoderName)voiddisabled(DecoderCounters counters)voiddroppedFrames(int droppedFrameCount, long elapsedMs)voidenabled(DecoderCounters decoderCounters)voidinputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)voidrenderedFirstFrame(Object output)voidreportVideoFrameProcessingOffset(long totalProcessingOffsetUs, int frameCount)voidvideoCodecError(Exception videoCodecError)voidvideoSizeChanged(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)
 
 - 
 
 -