Skip navigation links
A C D E F G I M O R S T 

A

ACTIONS - Static variable in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
 
ACTIONS - Static variable in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
 
ACTIONS - Static variable in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
 
ACTIONS - Static variable in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.RatingCallback
 
add(int, MediaDescriptionCompat) - Method in interface com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.QueueDataAdapter
Adds a MediaDescriptionCompat at the given position.

C

com.google.android.exoplayer2.ext.mediasession - package com.google.android.exoplayer2.ext.mediasession
 
COMMAND_MOVE_QUEUE_ITEM - Static variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
createMediaSource(MediaDescriptionCompat) - Method in interface com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.MediaSourceFactory
Creates a MediaSource for the given MediaDescriptionCompat.

D

DEFAULT_FAST_FORWARD_MS - Static variable in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
The default fast forward increment, in milliseconds.
DEFAULT_MAX_QUEUE_SIZE - Static variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
DEFAULT_REPEAT_TOGGLE_MODES - Static variable in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
The default repeat toggle modes which is the bitmask of RepeatModeUtil.REPEAT_TOGGLE_MODE_ONE and RepeatModeUtil.REPEAT_TOGGLE_MODE_ALL.
DEFAULT_REWIND_MS - Static variable in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
The default rewind increment, in milliseconds.
DefaultMediaMetadataProvider(MediaControllerCompat, String) - Constructor for class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.DefaultMediaMetadataProvider
Creates a new instance.
DefaultPlaybackController - Class in com.google.android.exoplayer2.ext.mediasession
A default implementation of MediaSessionConnector.PlaybackController.
DefaultPlaybackController() - Constructor for class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
Creates a new instance.
DefaultPlaybackController(long, long, int) - Constructor for class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
Creates a new instance with the given fast forward and rewind increments.

E

equals(MediaDescriptionCompat, MediaDescriptionCompat) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.MediaIdEqualityChecker
 
EXTRA_FROM_INDEX - Static variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
EXTRA_TO_INDEX - Static variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
EXTRAS_PITCH - Static variable in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
 

F

fastForwardIncrementMs - Variable in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 

G

getActiveQueueItemId(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
Gets the id of the currently active queue item, or MediaSessionCompat.QueueItem#UNKNOWN_ID if the active item is unknown.
getActiveQueueItemId(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
getCommands() - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
getCommands() - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.CommandReceiver
Returns the commands the receiver handles, or null if no commands need to be handled.
getCommands() - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
getCommands() - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
getCustomAction() - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.CustomActionProvider
Returns a PlaybackStateCompat.CustomAction which will be published to the media session by the connector or null if this action should not be published at the given player state.
getCustomAction() - Method in class com.google.android.exoplayer2.ext.mediasession.RepeatModeActionProvider
 
getMediaDescription(int) - Method in interface com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.QueueDataAdapter
Gets the MediaDescriptionCompat for a position.
getMediaDescription(Player, int) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
Gets the MediaDescriptionCompat for a given timeline window index.
getMetadata(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.DefaultMediaMetadataProvider
 
getMetadata(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.MediaMetadataProvider
Gets the MediaMetadataCompat to be published to the session.
getSupportedPlaybackActions(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
getSupportedPlaybackActions(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
Returns the actions which are supported by the controller.
getSupportedPrepareActions() - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
Returns the actions which are supported by the preparer.
getSupportedQueueNavigatorActions(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
Returns the actions which are supported by the navigator.
getSupportedQueueNavigatorActions(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 

I

invalidateMediaSessionMetadata() - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Updates the metadata of the media session.
invalidateMediaSessionPlaybackState() - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Updates the playback state of the media session.
invalidateMediaSessionQueue() - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Updates the queue of the media session by calling MediaSessionConnector.QueueNavigator.onTimelineChanged(Player).

M

MAX_POSITION_FOR_SEEK_TO_PREVIOUS - Static variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
maxQueueSize - Variable in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
MediaIdEqualityChecker() - Constructor for class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.MediaIdEqualityChecker
 
mediaSession - Variable in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
The wrapped MediaSessionCompat.
MediaSessionConnector - Class in com.google.android.exoplayer2.ext.mediasession
Connects a MediaSessionCompat to a Player.
MediaSessionConnector(MediaSessionCompat) - Constructor for class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Creates an instance.
MediaSessionConnector(MediaSessionCompat, MediaSessionConnector.PlaybackController) - Constructor for class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Creates an instance.
MediaSessionConnector(MediaSessionCompat, MediaSessionConnector.PlaybackController, boolean, String) - Constructor for class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
MediaSessionConnector(MediaSessionCompat, MediaSessionConnector.PlaybackController, MediaSessionConnector.MediaMetadataProvider) - Constructor for class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Creates an instance.
MediaSessionConnector.CommandReceiver - Interface in com.google.android.exoplayer2.ext.mediasession
Receiver of media commands sent by a media controller.
MediaSessionConnector.CustomActionProvider - Interface in com.google.android.exoplayer2.ext.mediasession
Provides a PlaybackStateCompat.CustomAction to be published and handles the action when sent by a media controller.
MediaSessionConnector.DefaultMediaMetadataProvider - Class in com.google.android.exoplayer2.ext.mediasession
Provides a default MediaMetadataCompat with properties and extras propagated from the active queue item to the session metadata.
MediaSessionConnector.MediaMetadataProvider - Interface in com.google.android.exoplayer2.ext.mediasession
Provides a MediaMetadataCompat for a given player state.
MediaSessionConnector.PlaybackController - Interface in com.google.android.exoplayer2.ext.mediasession
Interface to which playback actions are delegated.
MediaSessionConnector.PlaybackPreparer - Interface in com.google.android.exoplayer2.ext.mediasession
Interface to which playback preparation actions are delegated.
MediaSessionConnector.QueueEditor - Interface in com.google.android.exoplayer2.ext.mediasession
Handles media session queue edits.
MediaSessionConnector.QueueNavigator - Interface in com.google.android.exoplayer2.ext.mediasession
Handles queue navigation actions, and updates the media session queue by calling MediaSessionCompat.setQueue().
MediaSessionConnector.RatingCallback - Interface in com.google.android.exoplayer2.ext.mediasession
Callback receiving a user rating for the active media item.
move(int, int) - Method in interface com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.QueueDataAdapter
Moves a queue item from position from to position to.

O

onAddQueueItem(Player, MediaDescriptionCompat) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueEditor
See MediaSessionCompat.Callback#onAddQueueItem(MediaDescriptionCompat description).
onAddQueueItem(Player, MediaDescriptionCompat, int) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueEditor
See MediaSessionCompat.Callback#onAddQueueItem(MediaDescriptionCompat description, int index).
onAddQueueItem(Player, MediaDescriptionCompat) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
onAddQueueItem(Player, MediaDescriptionCompat, int) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
onCommand(Player, String, Bundle, ResultReceiver) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onCommand(Player, String, Bundle, ResultReceiver) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.CommandReceiver
See MediaSessionCompat.Callback#onCommand(String, Bundle, ResultReceiver).
onCommand(Player, String, Bundle, ResultReceiver) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
onCommand(Player, String, Bundle, ResultReceiver) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
onCurrentWindowIndexChanged(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
Called when the current window index changed.
onCurrentWindowIndexChanged(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
onCustomAction(String, Bundle) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.CustomActionProvider
Called when a custom action provided by this provider is sent to the media session.
onCustomAction(String, Bundle) - Method in class com.google.android.exoplayer2.ext.mediasession.RepeatModeActionProvider
 
onFastForward(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onFastForward(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onFastForward().
onPause(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onPause(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onPause().
onPlay(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onPlay(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onPlay().
onPrepare() - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
See MediaSessionCompat.Callback#onPrepare().
onPrepareFromMediaId(String, Bundle) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
See MediaSessionCompat.Callback#onPrepareFromMediaId(String, Bundle).
onPrepareFromSearch(String, Bundle) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
See MediaSessionCompat.Callback#onPrepareFromSearch(String, Bundle).
onPrepareFromUri(Uri, Bundle) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackPreparer
See MediaSessionCompat.Callback#onPrepareFromUri(Uri, Bundle).
onRemoveQueueItem(Player, MediaDescriptionCompat) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueEditor
See MediaSessionCompat.Callback#onRemoveQueueItem(MediaDescriptionCompat description).
onRemoveQueueItem(Player, MediaDescriptionCompat) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
 
onRewind(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onRewind(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onRewind().
onSeekTo(Player, long) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onSeekTo(Player, long) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onSeekTo(long).
onSetRating(Player, RatingCompat) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.RatingCallback
See MediaSessionCompat.Callback#onSetRating(RatingCompat).
onSetRating(Player, RatingCompat, Bundle) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.RatingCallback
See MediaSessionCompat.Callback#onSetRating(RatingCompat, Bundle).
onSetRepeatMode(Player, int) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onSetRepeatMode(Player, int) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onSetRepeatMode(int).
onSetShuffleMode(Player, int) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onSetShuffleMode(Player, int) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onSetShuffleMode(int).
onSkipToNext(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
See MediaSessionCompat.Callback#onSkipToNext().
onSkipToNext(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
onSkipToPrevious(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
See MediaSessionCompat.Callback#onSkipToPrevious().
onSkipToPrevious(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
onSkipToQueueItem(Player, long) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
See MediaSessionCompat.Callback#onSkipToQueueItem(long).
onSkipToQueueItem(Player, long) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 
onStop(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
onStop(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.PlaybackController
See MediaSessionCompat.Callback#onStop().
onTimelineChanged(Player) - Method in interface com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.QueueNavigator
Called when the timeline of the player has changed.
onTimelineChanged(Player) - Method in class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
 

R

remove(int) - Method in interface com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor.QueueDataAdapter
Removes the item at the given position.
RepeatModeActionProvider - Class in com.google.android.exoplayer2.ext.mediasession
Provides a custom action for toggling repeat modes.
RepeatModeActionProvider(Context, Player) - Constructor for class com.google.android.exoplayer2.ext.mediasession.RepeatModeActionProvider
Creates a new instance.
RepeatModeActionProvider(Context, Player, int) - Constructor for class com.google.android.exoplayer2.ext.mediasession.RepeatModeActionProvider
Creates a new instance enabling the given repeat toggle modes.
repeatToggleModes - Variable in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 
rewindIncrementMs - Variable in class com.google.android.exoplayer2.ext.mediasession.DefaultPlaybackController
 

S

setCustomErrorMessage(CharSequence) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets a custom error on the session.
setCustomErrorMessage(CharSequence, int) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets a custom error on the session.
setErrorMessageProvider(ErrorMessageProvider<? super ExoPlaybackException>) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets the optional ErrorMessageProvider.
setPlayer(Player, MediaSessionConnector.PlaybackPreparer, MediaSessionConnector.CustomActionProvider...) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets the player to be connected to the media session.
setQueueEditor(MediaSessionConnector.QueueEditor) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets the MediaSessionConnector.QueueEditor to handle queue edits sent by the media controller.
setQueueNavigator(MediaSessionConnector.QueueNavigator) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets the MediaSessionConnector.QueueNavigator to handle queue navigation actions ACTION_SKIP_TO_NEXT, ACTION_SKIP_TO_PREVIOUS and ACTION_SKIP_TO_QUEUE_ITEM.
setRatingCallback(MediaSessionConnector.RatingCallback) - Method in class com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector
Sets the MediaSessionConnector.RatingCallback to handle user ratings.

T

TimelineQueueEditor - Class in com.google.android.exoplayer2.ext.mediasession
A MediaSessionConnector.QueueEditor implementation based on the ConcatenatingMediaSource.
TimelineQueueEditor(MediaControllerCompat, ConcatenatingMediaSource, TimelineQueueEditor.QueueDataAdapter, TimelineQueueEditor.MediaSourceFactory) - Constructor for class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
Creates a new TimelineQueueEditor with a given mediaSourceFactory.
TimelineQueueEditor(MediaControllerCompat, ConcatenatingMediaSource, TimelineQueueEditor.QueueDataAdapter, TimelineQueueEditor.MediaSourceFactory, TimelineQueueEditor.MediaDescriptionEqualityChecker) - Constructor for class com.google.android.exoplayer2.ext.mediasession.TimelineQueueEditor
Creates a new TimelineQueueEditor with a given mediaSourceFactory.
TimelineQueueEditor.MediaIdEqualityChecker - Class in com.google.android.exoplayer2.ext.mediasession
Media description comparator comparing the media IDs.
TimelineQueueEditor.MediaSourceFactory - Interface in com.google.android.exoplayer2.ext.mediasession
Factory to create MediaSources.
TimelineQueueEditor.QueueDataAdapter - Interface in com.google.android.exoplayer2.ext.mediasession
Adapter to get MediaDescriptionCompat of items in the queue and to notify the application about changes in the queue to sync the data structure backing the MediaSessionConnector.
TimelineQueueNavigator - Class in com.google.android.exoplayer2.ext.mediasession
An abstract implementation of the MediaSessionConnector.QueueNavigator that maps the windows of a Player's Timeline to the media session queue.
TimelineQueueNavigator(MediaSessionCompat) - Constructor for class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
Creates an instance for a given MediaSessionCompat.
TimelineQueueNavigator(MediaSessionCompat, int) - Constructor for class com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator
Creates an instance for a given MediaSessionCompat and maximum queue size.
A C D E F G I M O R S T 
Skip navigation links