RetryPlaybackContext

RetryPlaybackContext

data class RetryPlaybackContext(val errorEvent: ErrorEvent, val playbackQuality: Quality?, val source: Source, val attemptedActions: List<RetryPlaybackAction>, val suggestedAction: RetryPlaybackAction = RetryPlaybackAction.None)

Context for retrying playback after an error.

Contains the error code associated with the playback failure and the current playback quality, which can be used to determine whether to retry and how to adjust playback parameters.

Constructors

RetryPlaybackContextconstructor(errorEvent: ErrorEvent, playbackQuality: Quality?, source: Source, attemptedActions: List<RetryPlaybackAction>, suggestedAction: RetryPlaybackAction = RetryPlaybackAction.None)

Properties

NameSummary
attemptedActionsval attemptedActions: List<RetryPlaybackAction>
The previous RetryPlaybackAction that was taken for this error, if any.
errorEventval errorEvent: ErrorEvent
The details of the error
playbackQualityval playbackQuality: Quality?
The quality at the time of the error, if any.
sourceval source: Source
The Source that caused the error, if any.
suggestedActionval suggestedAction: RetryPlaybackAction
The RetryPlaybackAction that is suggested for retrying playback based on the error and playback context.