PlayerRepositoryImpl
class PlayerRepositoryImpl(mediaMapper: MediaMapper = MediaMapper(MediaExtrasMapperNoopImpl), mediaItemMapper: MediaItemMapper = MediaItemMapper(MediaItemExtrasMapperNoopImpl), playbackStateMapper: PlaybackStateMapper = PlaybackStateMapper()) : PlayerRepository, Closeable
Repository for the current Media3 Player for a Player Activity.
The current implementation is available as soon as the ListenableFuture to connect to the MediaSession completes.
Constructors
Link copied to clipboard
constructor(mediaMapper: MediaMapper = MediaMapper(MediaExtrasMapperNoopImpl), mediaItemMapper: MediaItemMapper = MediaItemMapper(MediaItemExtrasMapperNoopImpl), playbackStateMapper: PlaybackStateMapper = PlaybackStateMapper())
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This operation will stop the current MediaItem that is playing, if there is one, as per Player.setMediaItem.
Link copied to clipboard
This operation will stop the current MediaItem that is playing, if there is one, as per Player.setMediaItems.
This operation will stop the current MediaItem that is playing, if there is one, as per Player.setMediaItems and set the starting position to the position passed as parameter.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard