BufferDurations
data class BufferDurations(val minBufferDuration: Duration = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS.milliseconds, val maxBufferDuration: Duration = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS.milliseconds, val bufferForPlayback: Duration = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS.milliseconds, val bufferForPlaybackAfterRebuffer: Duration = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS.milliseconds)
Represents the buffer durations used by DefaultLoadControl.Builder.setBufferDurationsMs.
Constructors
Link copied to clipboard
constructor(minBufferDuration: Duration = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS.milliseconds, maxBufferDuration: Duration = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS.milliseconds, bufferForPlayback: Duration = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS.milliseconds, bufferForPlaybackAfterRebuffer: Duration = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS.milliseconds)
Properties
Link copied to clipboard
The duration of media that must be buffered for playback to start or resume following a user action such as a seek.
Link copied to clipboard
The duration of media that must be buffered for playback to resume after a rebuffer. A rebuffer is defined to be caused by buffer depletion rather than a user action.
Link copied to clipboard
The maximum duration of media that the player will attempt to buffer.
Link copied to clipboard
The minimum duration of media that the player will attempt to ensure is buffered at all times.