public static interface MediaSessionConnector.PlaybackController
| Modifier and Type | Field and Description |
|---|---|
static long |
ACTIONS |
| Modifier and Type | Method and Description |
|---|---|
long |
getSupportedPlaybackActions(Player player)
Returns the actions which are supported by the controller.
|
void |
onFastForward(Player player)
See
MediaSessionCompat.Callback#onFastForward(). |
void |
onPause(Player player)
See
MediaSessionCompat.Callback#onPause(). |
void |
onPlay(Player player)
See
MediaSessionCompat.Callback#onPlay(). |
void |
onRewind(Player player)
See
MediaSessionCompat.Callback#onRewind(). |
void |
onSeekTo(Player player,
long position)
See
MediaSessionCompat.Callback#onSeekTo(long). |
void |
onStop(Player player)
See
MediaSessionCompat.Callback#onStop(). |
static final long ACTIONS
long getSupportedPlaybackActions(@Nullable Player player)
PlaybackStateCompat.ACTION_PLAY_PAUSE,
PlaybackStateCompat.ACTION_PLAY, PlaybackStateCompat.ACTION_PAUSE,
PlaybackStateCompat.ACTION_SEEK_TO, PlaybackStateCompat.ACTION_FAST_FORWARD,
PlaybackStateCompat.ACTION_REWIND and PlaybackStateCompat.ACTION_STOP.player - The player.void onPlay(Player player)
MediaSessionCompat.Callback#onPlay().void onPause(Player player)
MediaSessionCompat.Callback#onPause().void onSeekTo(Player player, long position)
MediaSessionCompat.Callback#onSeekTo(long).void onFastForward(Player player)
MediaSessionCompat.Callback#onFastForward().void onRewind(Player player)
MediaSessionCompat.Callback#onRewind().void onStop(Player player)
MediaSessionCompat.Callback#onStop().