-
- All Implemented Interfaces:
-
org.readium.navigator.media.audio.AudioEngine,org.readium.r2.navigator.preferences.Configurable
public final class ExoPlayerEngine implements AudioEngine<ExoPlayerSettings, ExoPlayerPreferences>
An AudioEngine based on Media3 ExoPlayer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExoPlayerEngine.Companionpublic final classExoPlayerEngine.Configurationpublic final classExoPlayerEngine.Playlistpublic interfaceExoPlayerEngine.SettingsResolverpublic final classExoPlayerEngine.Error
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<AudioEngine.Playback>playbackprivate final StateFlow<ExoPlayerSettings>settings
-
Method Summary
Modifier and Type Method Description StateFlow<AudioEngine.Playback>getPlayback()StateFlow<ExoPlayerSettings>getSettings()Unitplay()Unitpause()UnitskipTo(Integer index, Duration offset)Unitskip(Duration duration)UnitskipForward()UnitskipBackward()Unitclose()PlayerasPlayer()UnitsubmitPreferences(ExoPlayerPreferences preferences)-
-
Method Detail
-
getPlayback
StateFlow<AudioEngine.Playback> getPlayback()
-
getSettings
StateFlow<ExoPlayerSettings> getSettings()
-
skipForward
Unit skipForward()
-
skipBackward
Unit skipBackward()
-
submitPreferences
Unit submitPreferences(ExoPlayerPreferences preferences)
-
-
-
-