-
public interface ExoPlayerVideoDisplayComponent.InfoListener
A listener for debugging information.
-
-
Method Summary
Modifier and Type Method Description abstract void
onVideoFormatEnabled(Format format, int reason, long mediaTimeMs)
Called when a Video Format is enabled. abstract void
onAudioFormatEnabled(Format format, int reason, long mediaTimeMs)
Called when an Audio Format is enabled. abstract void
onDroppedFrames(AnalyticsListener.EventTime eventTime, int droppedFrames, long elapsedMs)
Called when frames are dropped. abstract void
onDroppedFrames(int count, long elapsed)
abstract void
onBandwidthSample(int elapsedMs, long bytes, long bitrateEstimate)
Called periodically to indicate that bytes have been transferred or the estimated bitratehas changed. abstract void
onLoadStarted(int trackType, int dataType, int reason, Format format, long mediaStartTimeMs, long mediaEndTimeMs)
Called when a load is started. abstract void
onLoadCompleted(int trackType, long bytesLoaded, int dataType, int reason, Format format, long mediaStartTimeMs, long mediaEndTimeMs, long elapsedRealtimeMs, long loadDurationMs)
Called when load has completed. void
onDecoderInitialized(AnalyticsListener.EventTime eventTime, int trackType, String decoderName, long initializationDurationMs)
void
onDecoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
abstract void
onAudioDecoderInitialized(AnalyticsListener.EventTime eventTime, String decoderName, long initializationDurationMs)
abstract void
onVideoDecoderInitialized(AnalyticsListener.EventTime eventTime, String decoderName, long initializationDurationMs)
-
-
Method Detail
-
onVideoFormatEnabled
abstract void onVideoFormatEnabled(Format format, int reason, long mediaTimeMs)
Called when a Video Format is enabled.
- Parameters:
format
- the Format retrieved from ExoPlayer.reason
- One of the C{@code SELECTION_REASON_*}
.mediaTimeMs
- The start time of the media, or TIME_UNSET if the data doesnot belong to a specific media period.
-
onAudioFormatEnabled
abstract void onAudioFormatEnabled(Format format, int reason, long mediaTimeMs)
Called when an Audio Format is enabled.
- Parameters:
format
- the Format retrieved from ExoPlayer.reason
- One of the C{@code SELECTION_REASON_*}
.mediaTimeMs
- The start time of the media, or TIME_UNSET if the data doesnot belong to a specific media period.
-
onDroppedFrames
abstract void onDroppedFrames(AnalyticsListener.EventTime eventTime, int droppedFrames, long elapsedMs)
Called when frames are dropped.
- Parameters:
eventTime
- Contains details of the event.droppedFrames
- number of frames dropped.elapsedMs
- The duration in milliseconds over which the frames were dropped.This duration is timed from when the renderer was started or from whendropped frames were last reported (whichever was more recent), and notfrom when the first of the reported drops occurred.
-
onDroppedFrames
@Deprecated() abstract void onDroppedFrames(int count, long elapsed)
-
onBandwidthSample
abstract void onBandwidthSample(int elapsedMs, long bytes, long bitrateEstimate)
Called periodically to indicate that bytes have been transferred or the estimated bitratehas changed.
- Parameters:
elapsedMs
- The time taken to transfer{@code bytesTransferred}
, in milliseconds.bytes
- The number of bytes transferred since the last callback.bitrateEstimate
- The estimated bitrate in bits/sec.
-
onLoadStarted
abstract void onLoadStarted(int trackType, int dataType, int reason, Format format, long mediaStartTimeMs, long mediaEndTimeMs)
Called when a load is started.
- Parameters:
trackType
- One of the C{@code TRACK_TYPE_*}
constants.dataType
- One of the C{@code DATA_TYPE_*}
constants.reason
- One of the C{@code SELECTION_REASON_*}
constants.format
- the Format retrieved from ExoPlayer.mediaStartTimeMs
- The start time of the media, or TIME_UNSET if the datadoes not belong to a specific media period.mediaEndTimeMs
- The end time of the media, or TIME_UNSET if the data doesnot belong to a specific media period or the end time is unknown.
-
onLoadCompleted
abstract void onLoadCompleted(int trackType, long bytesLoaded, int dataType, int reason, Format format, long mediaStartTimeMs, long mediaEndTimeMs, long elapsedRealtimeMs, long loadDurationMs)
Called when load has completed.
- Parameters:
trackType
- One of the C{@code TRACK_TYPE_*}
constants.bytesLoaded
- The number of bytes that were loaded up to the event time.dataType
- One of the C{@code DATA_TYPE_*}
constants.reason
- One of the C{@code SELECTION_REASON_*}
constants.format
- the Format retrieved from ExoPlayer.mediaStartTimeMs
- The start time of the media, or TIME_UNSET if the datadoes not belong to a specific media period.mediaEndTimeMs
- The end time of the media, or TIME_UNSET if the data doesnot belong to a specific media period or the end time is unknown.elapsedRealtimeMs
- The value of elapsedRealtime at the time ofthe load event.loadDurationMs
- The duration of the load up to the event time.
-
onDecoderInitialized
@Deprecated() void onDecoderInitialized(AnalyticsListener.EventTime eventTime, int trackType, String decoderName, long initializationDurationMs)
-
onDecoderInitialized
@Deprecated() void onDecoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
-
onAudioDecoderInitialized
abstract void onAudioDecoderInitialized(AnalyticsListener.EventTime eventTime, String decoderName, long initializationDurationMs)
-
onVideoDecoderInitialized
abstract void onVideoDecoderInitialized(AnalyticsListener.EventTime eventTime, String decoderName, long initializationDurationMs)
-
-
-
-