PillarboxLoadControl
class PillarboxLoadControl(bufferDurations: PillarboxLoadControl.BufferDurations = DEFAULT_BUFFER_DURATIONS, allocator: DefaultAllocator = DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE)) : LoadControl
Pillarbox LoadControl implementation that optimize content loading.
Parameters
bufferDurations
Buffer durations to set DefaultLoadControl.Builder.setBufferDurationsMs.
allocator
The DefaultAllocator to use in the internal DefaultLoadControl.
Constructors
Link copied to clipboard
constructor(bufferDurations: PillarboxLoadControl.BufferDurations = DEFAULT_BUFFER_DURATIONS, allocator: DefaultAllocator = DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE))
Types
Link copied to clipboard
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)
Buffer durations to use for DefaultLoadControl.Builder.setBufferDurationsMs.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onTracksSelected(p0: Timeline, p1: MediaSource.MediaPeriodId, p2: Array<Renderer>, p3: TrackGroupArray, p4: Array<ExoTrackSelection>)
open override fun onTracksSelected(playerId: PlayerId, timeline: Timeline, mediaPeriodId: MediaSource.MediaPeriodId, renderers: Array<out Renderer>, trackGroups: TrackGroupArray, trackSelections: Array<out ExoTrackSelection>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun shouldStartPlayback(p0: Timeline, p1: MediaSource.MediaPeriodId, p2: Long, p3: Float, p4: Boolean, p5: Long): Boolean