SRGAssetLoader

Creates an SRGAssetLoader instance using a DSL-style configuration.

Basic usage

val srgAssetLoader = SRGAssetLoader(context)

Custom configuration

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

Return

A SRGAssetLoader instance.

Parameters

context

The Android Context required for the asset loader.

block

A lambda that receives an SRGAssetLoaderConfig instance, allowing you to customize the loader's settings.