buildUpon
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.
Usage example
val mediaItem: MediaItem = sourceItem.buildUpon {
host(IlHost.STAGE)
}
Content copied to clipboard
Return
A new MediaItem instance with the applied modifications.
Parameters
block
A lambda with a receiver of type SRGMediaItemBuilder that allows configuring the new MediaItem.