Package-level declarations

Types

Link copied to clipboard

Pillarbox player configuration for the SRG. It sets up all SRG components by default.

Link copied to clipboard

Provides user-friendly error messages for PlaybackException instances.

Link copied to clipboard

Creates a MediaItem suited for SRG SSR content identified by a URN. The created MediaItem can be parsed by PillarboxMediaSource.

Functions

Link copied to clipboard

Creates a new MediaItem by copying properties from the existing MediaItem and applying modifications defined in the provided block. This function leverages SRGMediaItemBuilder for constructing the new MediaItem.

Link copied to clipboard
fun PillarboxExoPlayer(context: Context, builder: SRG.Builder.() -> Unit = {}): PillarboxExoPlayer

Creates a PillarboxExoPlayer instance configured for the SRG SSR.

Link copied to clipboard
fun SRGMediaItem(urn: String, block: SRGMediaItemBuilder.() -> Unit = {}): MediaItem

Creates a MediaItem suited for SRG SSR content identified by a URN.