Package 

Class MediaNavigator

  • All Implemented Interfaces:
    org.readium.r2.navigator.Navigator

    
    public final class MediaNavigator
     implements Navigator
                        

    An audiobook navigator to connect to a MediaSession from Jetpack Media2.

    Use create to get an instance for a given publication, and build a session from it with the session method. Apps are responsible for attaching this session to a service able to expose it.

    You can build a MediaNavigator upon any Media2 SessionPlayer implementation providing create with it. If you don't, ExoPlayer will be used, without cache. You can build your own SessionPlayer based on ExoPlayer using ExoPlayerDataSource.