LimitBitrate

data class LimitBitrate(val maxBitrate: Int) : RetryPlaybackAction

Represents an action to retry playback while limiting the available tracks based on a maximum bitrate.

When this action is selected, playback will be retried, but all tracks with a bitrate higher than the specified maxBitrate will be excluded from the automatic track selection. If no suitable tracks remain after filtering, the player will emit the original error event.

This action can be useful in scenarios where network, device or DRM policy limitations require restricting playback to lower bitrate tracks to ensure smooth playback.

If limiting the bitrate does not resolve the playback issue, the bitrate limit may be further reduced on subsequent retries until a successful playback is achieved or no tracks remain.

Not lowering the bitrate limit on a subsequent retry of the same error is considered an incorrect API usage, resulting in an IncorrectApiUsage warning and is equivalent to returning None.

Constructors

Link copied to clipboard
constructor(maxBitrate: Int)

Properties

Link copied to clipboard