Class DefaultControlDispatcher

    • Constructor Detail

      • DefaultControlDispatcher

        public DefaultControlDispatcher()
        Deprecated.
        Creates an instance.
      • DefaultControlDispatcher

        public DefaultControlDispatcher​(long fastForwardIncrementMs,
                                        long rewindIncrementMs)
        Deprecated.
        Creates an instance with the given increments.
        Parameters:
        fastForwardIncrementMs - The fast forward increment in milliseconds. A non-positive value disables the fast forward operation.
        rewindIncrementMs - The rewind increment in milliseconds. A non-positive value disables the rewind operation.
    • Method Detail

      • dispatchSetPlayWhenReady

        public boolean dispatchSetPlayWhenReady​(Player player,
                                                boolean playWhenReady)
        Deprecated.
        Description copied from interface: ControlDispatcher
        Dispatches a Player.setPlayWhenReady(boolean) operation.
        Specified by:
        dispatchSetPlayWhenReady in interface ControlDispatcher
        Parameters:
        player - The Player to which the operation should be dispatched.
        playWhenReady - Whether playback should proceed when ready.
        Returns:
        True if the operation was dispatched. False if suppressed.
      • dispatchSeekTo

        public boolean dispatchSeekTo​(Player player,
                                      int windowIndex,
                                      long positionMs)
        Deprecated.
        Description copied from interface: ControlDispatcher
        Dispatches a Player.seekTo(int, long) operation.
        Specified by:
        dispatchSeekTo in interface ControlDispatcher
        Parameters:
        player - The Player to which the operation should be dispatched.
        windowIndex - The index of the window.
        positionMs - The seek position in the specified window, or C.TIME_UNSET to seek to the window's default position.
        Returns:
        True if the operation was dispatched. False if suppressed.
      • dispatchRewind

        public boolean dispatchRewind​(Player player)
        Deprecated.
        Description copied from interface: ControlDispatcher
        Dispatches a rewind operation.
        Specified by:
        dispatchRewind in interface ControlDispatcher
        Parameters:
        player - The Player to which the operation should be dispatched.
        Returns:
        True if the operation was dispatched. False if suppressed.
      • dispatchFastForward

        public boolean dispatchFastForward​(Player player)
        Deprecated.
        Description copied from interface: ControlDispatcher
        Dispatches a fast forward operation.
        Specified by:
        dispatchFastForward in interface ControlDispatcher
        Parameters:
        player - The Player to which the operation should be dispatched.
        Returns:
        True if the operation was dispatched. False if suppressed.
      • dispatchStop

        public boolean dispatchStop​(Player player,
                                    boolean reset)
        Deprecated.
        Description copied from interface: ControlDispatcher
        Dispatches a Player.stop() operation.
        Specified by:
        dispatchStop in interface ControlDispatcher
        Parameters:
        player - The Player to which the operation should be dispatched.
        reset - Whether the player should be reset.
        Returns:
        True if the operation was dispatched. False if suppressed.
      • getRewindIncrementMs

        public long getRewindIncrementMs​(Player player)
        Deprecated.
        Returns the rewind increment in milliseconds.
      • getFastForwardIncrementMs

        public long getFastForwardIncrementMs​(Player player)
        Deprecated.
        Returns the fast forward increment in milliseconds.