UrlAssetLoader

class UrlAssetLoader(defaultMediaSourceFactory: DefaultMediaSourceFactory) : AssetLoader

AssetLoader to load an Asset from a stream url.

Parameters

defaultMediaSourceFactory

The DefaultMediaSourceFactory to create a MediaSource for the player.

Constructors

Link copied to clipboard
constructor(defaultMediaSourceFactory: DefaultMediaSourceFactory)

Properties

Functions

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

Can load asset

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

Load asset