SRGAssetLoader

An AssetLoader responsible for loading SRG assets.

To create an instance of this class, use the SRGAssetLoader builder function:

Basic usage

val srgAssetLoader = SRGAssetLoader(context)

Custom configuration

val srgAssetLoader = SRGAssetLoader(context) {
mediaCompositionService(CustomMediaCompositionService())
}

Properties

Functions

Link copied to clipboard
open override fun canLoadAsset(mediaItem: MediaItem): Boolean
Link copied to clipboard
open suspend override fun loadAsset(mediaItem: MediaItem): Asset