RetryPlaybackCallback
Callback that allows the application to define the behavior when a playback error occurs.
The onPlaybackError method is invoked on the playback thread and must not block or make any synchronous calls to the player API to avoid affecting playback performance.
The method should return a RetryPlaybackAction that indicates the action to take in response to the error:
If the action is RetryPlaybackAction.None, playback will not be retried, and the error will be propagated to the application via the appropriate error event.
Other RetryPlaybackAction values may trigger a retry or different error handling behavior.
See also
Limitations
The onPlaybackError method is currently only invoked for DRM disallowed operation errors.
When recovering a DRM disallowed operation error, the callback is invoked a second time even though the error was recovered. This is a limitation of the underlying ExoPlayer implementation. The same action should be returned as for the first invocation.