AdaptationConfig

class AdaptationConfig(initialBandwidthEstimateOverride: Long?, maxSelectableVideoBitrate: Int, isRebufferingAllowed: Boolean, preload: Boolean) : Parcelable

Configures the adaptation logic.

Constructors

Link copied to clipboard
fun AdaptationConfig(startupBitrate: Int, maxSelectableVideoBitrate: Int = DEFAULT_MAX_SELECTABLE_VIDEO_BITRATE, isRebufferingAllowed: Boolean = true, preload: Boolean = DEFAULT_PRELOAD)
Link copied to clipboard
fun AdaptationConfig(initialBandwidthEstimateOverride: Long? = null, maxSelectableVideoBitrate: Int = DEFAULT_MAX_SELECTABLE_VIDEO_BITRATE, isRebufferingAllowed: Boolean = true, preload: Boolean = DEFAULT_PRELOAD)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var initialBandwidthEstimateOverride: Long? = null

The initial bandwidth estimate in bits per second the player uses to select the optimal media tracks before actual bandwidth data is available. Overriding this value should only be done in specific cases and will most of the time not result in better selection logic.

Link copied to clipboard
@SerializedName(value = "allowRebuffering")
var isRebufferingAllowed: Boolean = true

Specifies whether rebuffering is allowed. Default value is true.

Link copied to clipboard
var maxSelectableVideoBitrate: Int

Specifies the upper bitrate boundary for video qualities. All qualities above this threshold will not be selected by the ABR logic. These qualities are still available for manual quality selection.

Link copied to clipboard
var preload: Boolean

Specifies whether the player preloads the content. Default value is true.

Link copied to clipboard
var startupBitrate: Int
Link copied to clipboard
var videoAdaptation: VideoAdaptation? = null

A callback to customize the player's adaptation logic. VideoAdaptation.onVideoAdaptation is called before the player tries to download a new video segment.