Player Repository
interface PlayerRepository
Content copied to clipboard
Functions
addMediaItem
Link copied to clipboard
clearMediaItems
Link copied to clipboard
getCurrentMediaItemIndex
Link copied to clipboard
getMediaItemAt
Link copied to clipboard
getMediaItemCount
Link copied to clipboard
getSeekBackIncrement
Link copied to clipboard
getSeekForwardIncrement
Link copied to clipboard
hasNextMediaItem
Link copied to clipboard
hasPreviousMediaItem
Link copied to clipboard
play
Link copied to clipboard
Play media item at given index as soon as player is ready.
removeMediaItem
Link copied to clipboard
seekForward
Link copied to clipboard
abstract fun seekForward()
Content copied to clipboard
setMediaItem
Link copied to clipboard
setMediaItems
Link copied to clipboard
Clears the playlist, adds the specified media items and resets the position to the default position.
setShuffleModeEnabled
Link copied to clipboard
skipToNextMediaItem
Link copied to clipboard
abstract fun skipToNextMediaItem()
Content copied to clipboard
Skips to the default position of next media item.
skipToPreviousMediaItem
Link copied to clipboard
abstract fun skipToPreviousMediaItem()
Content copied to clipboard
Skips to the default position of previous media item.
Properties
availableCommands
Link copied to clipboard
Returns the player's currently available commands.
currentMediaItem
Link copied to clipboard
Returns the current media item playing, or that would play when player starts playing.
currentState
Link copied to clipboard
Returns the player's current state.
mediaItemPosition
Link copied to clipboard
Returns the current media item position of the player.
shuffleModeEnabled
Link copied to clipboard
Returns the current value for shuffling of media items mode.