Class Action.PlayUntilPosition

  • Enclosing class:
    Action

    public static final class Action.PlayUntilPosition
    extends Action
    Schedules a play action to be executed, waits until the player reaches the specified position, and pauses the player again.
    • Constructor Detail

      • PlayUntilPosition

        public PlayUntilPosition​(String tag,
                                 int mediaItemIndex,
                                 long positionMs)
        Parameters:
        tag - A tag to use for logging.
        mediaItemIndex - The media item index at which the player should be paused again.
        positionMs - The position in that media item at which the player should be paused again.