Package com.brightcove.player.display
Interface ExoPlayerVideoDisplayComponent.InternalErrorListener
- Enclosing class:
- ExoPlayerVideoDisplayComponent
public static interface ExoPlayerVideoDisplayComponent.InternalErrorListener
Listeners for receiving error information.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAudioTrackUnderrun
(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) Deprecated.void
onAudioTrackUnderrun
(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime, int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) Called when an audio underrun occurred.void
Called when a DRM error occurs.void
onLoadError
(int trackType, IOException e) Called when a load error occurs.void
Called when an error occurs on thePlayer
.
-
Method Details
-
onPlayerError
Called when an error occurs on thePlayer
. The Player instance can still be used andPlayer.release()
must still be called.- Parameters:
e
- The error.
-
onAudioTrackUnderrun
void onAudioTrackUnderrun(com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime eventTime, int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) Called when an audio underrun occurred.- Parameters:
eventTime
- Contains details of the event.bufferSize
- The size of theAudioSink
's buffer, in bytes.bufferSizeMs
- The size of theAudioSink
'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 theAudioSink
was last fed data.
-
onAudioTrackUnderrun
@Deprecated void onAudioTrackUnderrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) Deprecated. -
onLoadError
Called when a load error occurs.- Parameters:
trackType
- One of theC
TRACK_TYPE_*
constants.e
- the error.
-
onDrmSessionManagerError
Called when a DRM error occurs.- Parameters:
e
- the error.
-
onAudioTrackUnderrun(AnalyticsListener.EventTime, int, long, long)
}