PillarboxLoadControl
class PillarboxLoadControl(bufferDurations: PillarboxLoadControl.BufferDurations = DEFAULT_BUFFER_DURATIONS, allocator: DefaultAllocator = DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE)) : LoadControl
A LoadControl implementation tailored for Pillarbox, optimizing content loading.
Parameters
bufferDurations
Buffer durations to customize the internal DefaultLoadControl's behavior.
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)
Represents the buffer durations used by 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: Array<out Renderer>, p1: TrackGroupArray, p2: Array<out @NullableType ExoTrackSelection?>)
open fun onTracksSelected(p0: Timeline, p1: MediaSource.MediaPeriodId, p2: Array<out Renderer>, p3: TrackGroupArray, p4: Array<out @NullableType ExoTrackSelection?>)
open fun onTracksSelected(p0: PlayerId, p1: Timeline, p2: MediaSource.MediaPeriodId, p3: Array<out Renderer>, p4: TrackGroupArray, p5: Array<out @NullableType ExoTrackSelection?>)
open override fun onTracksSelected(parameters: LoadControl.Parameters, trackGroups: TrackGroupArray, trackSelections: Array<out @NullableType ExoTrackSelection?>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun shouldContinuePreloading(timeline: Timeline, mediaPeriodId: MediaSource.MediaPeriodId, bufferedDurationUs: Long): Boolean
Link copied to clipboard
open fun shouldStartPlayback(p0: Timeline, p1: MediaSource.MediaPeriodId, p2: Long, p3: Float, p4: Boolean, p5: Long): Boolean