SRGMediaItemBuilder

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

Builds a MediaItem based on the provided parameters.

Link copied to clipboard
fun forceSAM(forceSAM: Boolean)

Forces the use of the SAM backend.

Link copied to clipboard
fun host(host: IlHost)

Sets the host base URL to the integration layer.

Link copied to clipboard
fun ilLocation(ilLocation: IlLocation?)

Sets the location for IL backend calls.

Link copied to clipboard
fun mediaMetadata(mediaMetadata: MediaMetadata)

Sets the media metadata using an existing MediaMetadata instance.

Sets the media metadata by customizing the MediaMetadata.Builder receiver in block.

Link copied to clipboard
fun urn(urn: String)

Sets the URN to be played.

Link copied to clipboard
fun vector(vector: Vector)

Sets the vector.