-
- All Implemented Interfaces:
-
org.readium.navigator.media.audio.AudioEngineProvider
public final class ExoPlayerEngineProvider implements 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.
-
-
Constructor Summary
Constructors Constructor Description ExoPlayerEngineProvider(Application application, MediaMetadataProvider metadataProvider, ExoPlayerDefaults defaults, ExoPlayerEngine.Configuration configuration)
-
Method Summary
Modifier and Type Method Description Try<ExoPlayerEngine, Void>createEngine(Publication publication, Locator initialLocator, ExoPlayerPreferences initialPreferences)ExoPlayerPreferencesEditorcreatePreferenceEditor(Publication publication, ExoPlayerPreferences initialPreferences)ExoPlayerPreferencescreateEmptyPreferences()-
-
Constructor Detail
-
ExoPlayerEngineProvider
ExoPlayerEngineProvider(Application application, MediaMetadataProvider metadataProvider, ExoPlayerDefaults defaults, ExoPlayerEngine.Configuration configuration)
-
-
Method Detail
-
createEngine
Try<ExoPlayerEngine, Void> createEngine(Publication publication, Locator initialLocator, ExoPlayerPreferences initialPreferences)
-
createPreferenceEditor
ExoPlayerPreferencesEditor createPreferenceEditor(Publication publication, ExoPlayerPreferences initialPreferences)
-
createEmptyPreferences
ExoPlayerPreferences createEmptyPreferences()
-
-
-
-