PlaybackRecoveryStatus

data class PlaybackRecoveryStatus(val result: Result<Error, Error>, val currentRetryAttempt: Int, val totalRetryAttempts: Int, val recoveryAttemptsDurationMs: List<Long>)

Represents the overall status of a playback recovery process, which may involve multiple attempts.

This class encapsulates the final outcome of the entire recovery operation, along with contextual information about the retry attempts that were made. It is typically used to signal the completion of the recovery process, whether successful or failed.

Constructors

Link copied to clipboard
constructor(result: Result<Error, Error>, currentRetryAttempt: Int, totalRetryAttempts: Int, recoveryAttemptsDurationMs: List<Long>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The number of attempts made to recover. For a successful recovery, this reflects the attempt number that succeeded. If all attempts failed, this will be equal to totalRetryAttempts.

Link copied to clipboard

A list containing the duration, in milliseconds, for each recovery attempt that was made. The size of this list corresponds to currentRetryAttempt.

Link copied to clipboard
Link copied to clipboard

The final outcome of the recovery process. This is a Result<Error, Error>where Success contains the error that was successfully recovered from, and Failurecontains the final error after all recovery attempts were exhausted.

Link copied to clipboard

The total number of recovery attempts that were configured for the process.