public static interface ExoPlayerVideoDisplayComponent.InternalErrorListener
Modifier and Type | Method and Description |
---|---|
default void |
onAudioTrackUnderrun(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime,
int bufferSize,
long bufferSizeMs,
long elapsedSinceLastFeedMs)
Called when an audio underrun occurred.
|
default void |
onAudioTrackUnderrun(int bufferSize,
long bufferSizeMs,
long elapsedSinceLastFeedMs)
Deprecated.
Use {
onAudioTrackUnderrun(AnalyticsListener.EventTime, int, long, long) }
This method is only called when onAudioTrackUnderrun(AnalyticsListener.EventTime, int, long, long)
is not overridden. |
void |
onDrmSessionManagerError(java.lang.Exception e)
Called when a DRM error occurs.
|
void |
onLoadError(int trackType,
java.io.IOException e)
Called when a load error occurs.
|
void |
onPlayerError(java.lang.Exception e)
Called when an error occurs on the
Player . |
void onPlayerError(java.lang.Exception e)
Player
. The Player instance can still be used
and Player.release()
must still be called.e
- The error.default void onAudioTrackUnderrun(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime, int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)
eventTime
- Contains details of the event.bufferSize
- The size of the AudioSink
's buffer, in bytes.bufferSizeMs
- The size of the AudioSink
's buffer, in milliseconds, if it is
configured for PCM output. C.TIME_UNSET
if it is configured for
passthrough output, as the buffered media can have a variable bitrate
so the duration may be unknown.elapsedSinceLastFeedMs
- The time since the AudioSink
was last fed data.@Deprecated default void onAudioTrackUnderrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)
onAudioTrackUnderrun(AnalyticsListener.EventTime, int, long, long)
}
This method is only called when onAudioTrackUnderrun(AnalyticsListener.EventTime, int, long, long)
is not overridden.void onLoadError(int trackType, java.io.IOException e)
trackType
- One of the C
TRACK_TYPE_*
constants.e
- the error.void onDrmSessionManagerError(java.lang.Exception e)
e
- the error.