loadAsset

abstract suspend fun loadAsset(mediaItem: MediaItem): Asset

Loads an asset based on the provided MediaItem.

Return

An Asset representing the loaded resource.

Parameters

mediaItem

The MediaItem describing the media to load.