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,
                              ControlDispatcher controlDispatcher)
        See MediaSessionCompat.Callback.onSkipToPrevious().
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - A ControlDispatcher that should be used for dispatching changes to the player.
      • onSkipToQueueItem

        void onSkipToQueueItem​(Player player,
                               ControlDispatcher controlDispatcher,
                               long id)
        See MediaSessionCompat.Callback.onSkipToQueueItem(long).
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - A ControlDispatcher that should be used for dispatching changes to the player.
      • onSkipToNext

        void onSkipToNext​(Player player,
                          ControlDispatcher controlDispatcher)
        See MediaSessionCompat.Callback.onSkipToNext().
        Parameters:
        player - The player connected to the media session.
        controlDispatcher - A ControlDispatcher that should be used for dispatching changes to the player.