Builder

open class Builder

The LoadControlConfig Builder.

Constructors

Link copied to clipboard
constructor()
Instantiates a new LoadControlConfig.Builder.

Functions

Link copied to clipboard
Builds the LoadControlConfig.
Link copied to clipboard
Link copied to clipboard
open fun setBufferForPlaybackAfterRebufferMs(bufferForPlaybackAfterRebufferMs: Int): LoadControlConfig.Builder
Sets the default duration of media that must be buffered for playback to resume after a rebuffer, in milliseconds.
Link copied to clipboard
open fun setBufferForPlaybackMs(bufferForPlaybackMs: Int): LoadControlConfig.Builder
Sets the duration of media that must be buffered for playback to start or resume following a user action such as a seek, in milliseconds.
Link copied to clipboard
Sets the maximum duration of media that the player will attempt buffer, in milliseconds.
Link copied to clipboard
Sets the minimum duration of media that the player will attempt to ensure is buffered at all times, in milliseconds.
Link copied to clipboard
open fun setPrioritizeTimeOverSizeThresholds(prioritizeTimeOverSizeThresholds: Boolean): LoadControlConfig.Builder
Sets whether the load control prioritizes buffer time constraints over buffer size constraints.
Link copied to clipboard
open fun setTargetBufferBytes(targetBufferBytes: Int): LoadControlConfig.Builder
Sets the target buffer size in bytes.