StuckPlaybackDetectionPolicy

Policy for a stuck-playback detector.

Inheritors

Types

Link copied to clipboard
@Serializable
data object Default : StuckPlaybackDetectionPolicy

Keep the underlying player's default timeout.

Link copied to clipboard
@Serializable
data object Disabled : StuckPlaybackDetectionPolicy

Effectively disable this detector. This also disables the player's automatic wake lock by default; background playback may require an app-managed wake lock.

Link copied to clipboard
@Serializable
data class Timeout(val seconds: Double) : StuckPlaybackDetectionPolicy

Use a timeout in seconds, from 0.001 to 3600 (one hour), inclusive. Non-finite and out-of-range values warn on each load and behave like Disabled, including its wake-lock behavior.