SRGMediaItem
Creates a MediaItem suited for SRG SSR content identified by a URN.
Basic usage
val mediaItem: MediaItem = SRGMediaItem("urn:rts:audio:3262363")
Content copied to clipboard
Custom configuration
val mediaItem: MediaItem = SRGMediaItem("urn:rts:audio:3262363") {
host(IlHost.PROD)
vector(Vector.TV)
}
Content copied to clipboard
Modify an existing MediaItem
val updatedMediaItem: MediaItem = mediaItem.buildUpon {
urn("urn:rts:video:1234")
}
Content copied to clipboard
Return
A MediaItem configured for the specified SRG SSR content.
Parameters
urn
The URN identifying the SRG SSR content.
block
An optional lambda to further configure the MediaItem.