public static final class VideoRendererEventListener.EventDispatcher extends Object
VideoRendererEventListener
.Constructor and Description |
---|
EventDispatcher(Handler handler,
VideoRendererEventListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
decoderInitialized(String decoderName,
long initializedTimestampMs,
long initializationDurationMs)
|
void |
disabled(DecoderCounters counters)
|
void |
droppedFrames(int droppedFrameCount,
long elapsedMs)
|
void |
enabled(DecoderCounters decoderCounters)
|
void |
inputFormatChanged(Format format)
|
void |
renderedFirstFrame(Surface surface)
|
void |
videoSizeChanged(int width,
int height,
int unappliedRotationDegrees,
float pixelWidthHeightRatio)
|
public EventDispatcher(@Nullable Handler handler, @Nullable VideoRendererEventListener listener)
handler
- A handler for dispatching events, or null if creating a dummy instance.listener
- The listener to which events should be dispatched, or null if creating a
dummy instance.public void enabled(DecoderCounters decoderCounters)
public void decoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
public void inputFormatChanged(Format format)
public void droppedFrames(int droppedFrameCount, long elapsedMs)
public void videoSizeChanged(int width, int height, int unappliedRotationDegrees, float pixelWidthHeightRatio)
public void disabled(DecoderCounters counters)