ExoPlayerEngineProvider

class ExoPlayerEngineProvider(application: Application, metadataProvider: MediaMetadataProvider = DefaultMediaMetadataProvider(), cacheProvider: ExoPlayerCacheProvider? = null, defaults: ExoPlayerDefaults = ExoPlayerDefaults(), configuration: ExoPlayerEngine.Configuration = ExoPlayerEngine.Configuration()) : AudioEngineProvider<ExoPlayerSettings, ExoPlayerPreferences, ExoPlayerPreferencesEditor>

Main component to use the audio navigator with the ExoPlayer adapter.

Provide ExoPlayerDefaults to customize the default values that will be used by the navigator for some preferences.

Pass an ExoPlayerCacheProvider to enable caching of remote resources.

Constructors

Link copied to clipboard
constructor(application: Application, metadataProvider: MediaMetadataProvider = DefaultMediaMetadataProvider(), cacheProvider: ExoPlayerCacheProvider? = null, defaults: ExoPlayerDefaults = ExoPlayerDefaults(), configuration: ExoPlayerEngine.Configuration = ExoPlayerEngine.Configuration())

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun createEngine(publication: Publication, initialLocator: Locator, initialPreferences: ExoPlayerPreferences): Try<ExoPlayerEngine, Nothing>
Link copied to clipboard
open override fun createPreferenceEditor(publication: Publication, initialPreferences: ExoPlayerPreferences): ExoPlayerPreferencesEditor