Class TimelineQueueNavigator

    • Field Detail

    • Constructor Detail

      • TimelineQueueNavigator

        public TimelineQueueNavigator​(android.support.v4.media.session.MediaSessionCompat mediaSession)
        Creates an instance for a given MediaSessionCompat.

        Equivalent to TimelineQueueNavigator(mediaSession, DEFAULT_MAX_QUEUE_SIZE).

        Parameters:
        mediaSession - The MediaSessionCompat.
      • TimelineQueueNavigator

        public TimelineQueueNavigator​(android.support.v4.media.session.MediaSessionCompat mediaSession,
                                      int maxQueueSize)
        Creates an instance for a given MediaSessionCompat and maximum queue size.

        If the number of windows in the Player's Timeline exceeds maxQueueSize, the media session queue will correspond to maxQueueSize windows centered on the one currently being played.

        Parameters:
        mediaSession - The MediaSessionCompat.
        maxQueueSize - The maximum queue size.