SRGMediaItem

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

A MediaItem for SRG SSR content provided with an URN.

val mediaItem:MediaItem = SRGMediaItem("urn:rts:audio:3262363") {
host(IlHost.Default)
vector(Vector.TV)
}

It can be edited after with:

val mediaItem:MediaItem = sourceItem.buildUpon {
urn("urn:rts:video:1234")
}

Receiver

SRGMediaItemBuilder.

Return

A MediaItem that handles a URN.

Parameters

urn

The URN.

block

The block to configure SRGMediaItemBuilder.