buildUpon

Build a new MediaItem from an existing one and try to parse SRGMediaItemBuilder data.

val mediaItem:MediaItem = sourceItem.buildUpon {
host(IlHost.Stage)
}

Receiver

SRGMediaItemBuilder

Return

a new MediaItem configured with block.

Parameters

block

The block to configure SRGMediaItemBuilder.