PillarboxMediaSource
A custom MediaSource that wraps another MediaSource to provide:
Flexible asset loading via an AssetLoader.
Load event handling (started, completed, error).
Parameters
mediaItem
The MediaItem to load.
assetLoader
The AssetLoader used to load the asset.
minLiveDvrDurationMs
Minimum duration, in milliseconds, for a live stream to be considered seekable.
timeSource
The TimeSource for generating timestamps for load events.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks whether the MediaItem can be updated without reloading the media source.
Link copied to clipboard
open override fun createPeriod(id: MediaSource.MediaPeriodId, allocator: Allocator, startPositionUs: Long): MediaPeriod
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard