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.
      • onCurrentMediaItemIndexChanged

        default void onCurrentMediaItemIndexChanged​(Player player)
        Called when the current media item 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)
        See MediaSessionCompat.Callback.onSkipToPrevious().
        Parameters:
        player - The player connected to the media session.
      • onSkipToQueueItem

        void onSkipToQueueItem​(Player player,
                               long id)
        See MediaSessionCompat.Callback.onSkipToQueueItem(long).
        Parameters:
        player - The player connected to the media session.
      • onSkipToNext

        void onSkipToNext​(Player player)
        See MediaSessionCompat.Callback.onSkipToNext().
        Parameters:
        player - The player connected to the media session.