map

fun map(mediaItem: MediaItem, mediaMetadata: MediaMetadata): Media

Maps from a MediaItem.

Parameters

mediaItem

MediaItem to be mapped.

defaultArtist

value for Media.artist for when MediaMetadata.artist is null.


fun map(media: MediaEntity): Media

Maps from a MediaEntity.