RetryPlaybackAction
sealed interface RetryPlaybackAction
Defines the possible actions to take when retrying playback after an error.
The RetryPlaybackAction interface allows the application to specify how playback should be handled in the event of an error. The different actions determine whether to retry playback and how to adjust the playback configuration (e.g., bitrate) during the retry.
Inheritors
| None |
| Retry |
| LimitBitrate |
| DisableMainContentDecodingDuringAds |
| SkipToNextSource |
Types
| Name | Summary |
|---|---|
| DisableMainContentDecodingDuringAds | data object DisableMainContentDecodingDuringAds : RetryPlaybackAction Represents an action to retry playback while disabling the decoding of the main content during ad playback. |
| LimitBitrate | data class LimitBitrate(val maxBitrate: Int) : RetryPlaybackAction Represents an action to retry playback while limiting the available tracks based on a maximum bitrate. |
| None | data object None : RetryPlaybackAction Represents no action to take for retrying playback. |
| Retry | data object Retry : RetryPlaybackAction Represents an action to retry playback without any modifications. |
| SkipToNextSource | data object SkipToNextSource : RetryPlaybackAction Represents an action to skip the current media source and proceed to the next one in the playlist. |