Interface MediaSessionConnector.QueueNavigator

    • Method Detail

      • getSupportedQueueNavigatorActions

        long getSupportedQueueNavigatorActions​(Player player)
        Returns the actions which are supported by the navigator. The supported actions must be a bitmask combined out of PlaybackStateCompat.ACTION_SKIP_TO_QUEUE_ITEM, PlaybackStateCompat.ACTION_SKIP_TO_NEXT, PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS.
        Parameters:
        player - The player connected to the media session.
        Returns:
        The bitmask of the supported media actions.
      • onTimelineChanged

        void onTimelineChanged​(Player player)
        Called when the timeline of the player has changed.
        Parameters:
        player - The player connected to the media session.
      • onCurrentWindowIndexChanged

        void onCurrentWindowIndexChanged​(Player player)
        Called when the current window index changed.
        Parameters:
        player - The player connected to the media session.
      • getActiveQueueItemId

        long getActiveQueueItemId​(@Nullable
                                  Player player)
        Gets the id of the currently active queue item, or MediaSessionCompat.QueueItem.UNKNOWN_ID if the active item is unknown.

        To let the connector publish metadata for the active queue item, the queue item with the returned id must be available in the list of items returned by MediaControllerCompat.getQueue().

        Parameters:
        player - The player connected to the media session.
        Returns:
        The id of the active queue item.
      • onSkipToPrevious

        void onSkipToPrevious​(Player player,
                              @Deprecated
                              ControlDispatcher controlDispatcher)
        See MediaSessionCompat.Callback.onSkipToPrevious().
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - This parameter is deprecated. Use player instead. Operations can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or when configuring the player (for example by using SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      • onSkipToQueueItem

        void onSkipToQueueItem​(Player player,
                               @Deprecated
                               ControlDispatcher controlDispatcher,
                               long id)
        See MediaSessionCompat.Callback.onSkipToQueueItem(long).
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - This parameter is deprecated. Use player instead. Operations can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or when configuring the player (for example by using SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
      • onSkipToNext

        void onSkipToNext​(Player player,
                          @Deprecated
                          ControlDispatcher controlDispatcher)
        See MediaSessionCompat.Callback.onSkipToNext().
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - This parameter is deprecated. Use player instead. Operations can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or when configuring the player (for example by using SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).