public static interface ExoPlayerVideoDisplayComponent.InfoListener
Modifier and Type | Method and Description |
---|---|
void |
onAudioFormatEnabled(com.google.android.exoplayer2.Format format,
int reason,
long mediaTimeMs)
Called when an Audio Format is enabled.
|
void |
onBandwidthSample(int elapsedMs,
long bytes,
long bitrateEstimate)
Called periodically to indicate that bytes have been transferred or the estimated bitrate
has changed.
|
default void |
onDecoderInitialized(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime,
int trackType,
java.lang.String decoderName,
long initializationDurationMs)
Called when a decoder is initialized.
|
default void |
onDecoderInitialized(java.lang.String decoderName,
long initializedTimestampMs,
long initializationDurationMs)
Deprecated.
Use
onDecoderInitialized(AnalyticsListener.EventTime, int, String, long)
This method is only called when onDecoderInitialized(AnalyticsListener.EventTime, int, String, long)
is not overridden. |
default void |
onDroppedFrames(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime,
int droppedFrames,
long elapsedMs)
Called when frames are dropped.
|
default void |
onDroppedFrames(int count,
long elapsed)
Deprecated.
Use
onDroppedFrames(AnalyticsListener.EventTime, int, long) . This
method is only called when onDroppedFrames(AnalyticsListener.EventTime, int, long)
is not overridden. |
void |
onLoadCompleted(int trackType,
long bytesLoaded,
int dataType,
int reason,
com.google.android.exoplayer2.Format format,
long mediaStartTimeMs,
long mediaEndTimeMs,
long elapsedRealtimeMs,
long loadDurationMs)
Called when load has completed.
|
void |
onLoadStarted(int trackType,
int dataType,
int reason,
com.google.android.exoplayer2.Format format,
long mediaStartTimeMs,
long mediaEndTimeMs)
Called when a load is started.
|
void |
onVideoFormatEnabled(com.google.android.exoplayer2.Format format,
int reason,
long mediaTimeMs)
Called when a Video Format is enabled.
|
void onVideoFormatEnabled(com.google.android.exoplayer2.Format format, int reason, long mediaTimeMs)
format
- the Format
retrieved from ExoPlayer.reason
- One of the C
SELECTION_REASON_*
.mediaTimeMs
- The start time of the media, or C.TIME_UNSET
if the data does
not belong to a specific media period.void onAudioFormatEnabled(com.google.android.exoplayer2.Format format, int reason, long mediaTimeMs)
format
- the Format
retrieved from ExoPlayer.reason
- One of the C
SELECTION_REASON_*
.mediaTimeMs
- The start time of the media, or C.TIME_UNSET
if the data does
not belong to a specific media period.default void onDroppedFrames(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime, int droppedFrames, long elapsedMs)
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 when
dropped frames were last reported (whichever was more recent), and not
from when the first of the reported drops occurred.@Deprecated default void onDroppedFrames(int count, long elapsed)
onDroppedFrames(AnalyticsListener.EventTime, int, long)
. This
method is only called when onDroppedFrames(AnalyticsListener.EventTime, int, long)
is not overridden.void onBandwidthSample(int elapsedMs, long bytes, long bitrateEstimate)
elapsedMs
- The time taken to transfer bytesTransferred
, in milliseconds.bytes
- The number of bytes transferred since the last callback.bitrateEstimate
- The estimated bitrate in bits/sec.void onLoadStarted(int trackType, int dataType, int reason, com.google.android.exoplayer2.Format format, long mediaStartTimeMs, long mediaEndTimeMs)
trackType
- One of the C
TRACK_TYPE_*
constants.dataType
- One of the C
DATA_TYPE_*
constants.reason
- One of the C
SELECTION_REASON_*
constants.format
- the Format
retrieved from ExoPlayer.mediaStartTimeMs
- The start time of the media, or C.TIME_UNSET
if the data
does not belong to a specific media period.mediaEndTimeMs
- The end time of the media, or C.TIME_UNSET
if the data does
not belong to a specific media period or the end time is unknown.void onLoadCompleted(int trackType, long bytesLoaded, int dataType, int reason, com.google.android.exoplayer2.Format format, long mediaStartTimeMs, long mediaEndTimeMs, long elapsedRealtimeMs, long loadDurationMs)
trackType
- One of the C
TRACK_TYPE_*
constants.bytesLoaded
- The number of bytes that were loaded up to the event time.dataType
- One of the C
DATA_TYPE_*
constants.reason
- One of the C
SELECTION_REASON_*
constants.format
- the Format
retrieved from ExoPlayer.mediaStartTimeMs
- The start time of the media, or C.TIME_UNSET
if the data
does not belong to a specific media period.mediaEndTimeMs
- The end time of the media, or C.TIME_UNSET
if the data does
not belong to a specific media period or the end time is unknown.elapsedRealtimeMs
- The value of SystemClock.elapsedRealtime()
at the time of
the load event.loadDurationMs
- The duration of the load up to the event time.default void onDecoderInitialized(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime, int trackType, java.lang.String decoderName, long initializationDurationMs)
eventTime
- Contains details related to the event.trackType
- One of the C
TRACK_TYPE_*
constants.decoderName
- The name of the decoder.initializationDurationMs
- Time taken to initialize the decoder, in milliseconds.@Deprecated default void onDecoderInitialized(java.lang.String decoderName, long initializedTimestampMs, long initializationDurationMs)
onDecoderInitialized(AnalyticsListener.EventTime, int, String, long)
This method is only called when onDecoderInitialized(AnalyticsListener.EventTime, int, String, long)
is not overridden.