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.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val mediaItem: MediaItem

Functions

Link copied to clipboard
open override fun canUpdateMediaItem(mediaItem: MediaItem): Boolean

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
open override fun getMediaItem(): MediaItem
Link copied to clipboard
Link copied to clipboard
open override fun releasePeriod(mediaPeriod: MediaPeriod)
Link copied to clipboard
open override fun updateMediaItem(mediaItem: MediaItem)