asAstroMediaMetadata
fun MediaMetadata.asAstroMediaMetadata(mapExtras: (key: String, value: String) -> Any): AstroMediaMetadata
Converts a platform-specific MediaMetadata object to an AstroMediaMetadata object.
This function takes an optional mapExtras lambda function (defaulting to null). The mapExtras function is likely used to process any platform-specific extra data associated with the MediaMetadata object. It takes a key-value pair (both strings) as input and should return a value in a format suitable for the AstroMediaMetadata object. The conversion process likely involves:
Return
An AstroMediaMetadata object representing the converted metadata.
Parameters
mapExtras
An optional lambda function to process platform-specific extra data from the MediaMetadata (default: null).