mediaMetaData

Configures the MediaMetadata that is created for the loaded asset.

The provided block will be executed when creating the asset's metadata, giving you access to:

Example

val srgAssetLoader = SRGAssetLoader(context) {
mediaMetaData { mediaMetadata, chapter, mediaComposition ->
setTitle(chapter.title)
}
}

Parameters

block

The configuration block to execute.