Enum PlayerController.State

    • Enum Constant Detail

      • Idle

        public static final PlayerController.State Idle
        The player controller is not prepared or preparing and no content is loaded This is the initial player state and the state the player returns to after it is destroyed. This state is usually followed by the Preparing state.
      • Buffering

        public static final PlayerController.State Buffering
        The player does not have enough data to start playing and is buffering now. This state is usually reached after the player finished Preparing, the position was changed and the player is seeking, or a buffer under-run occurred.
      • Pausing

        public static final PlayerController.State Pausing
        The player is prepared and has enough data to start playback immediately but is currently paused
      • Finished

        public static final PlayerController.State Finished
        Playback finished successfully and the end of the data stream was reached.
    • Method Detail

      • values

        public static PlayerController.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PlayerController.State c : PlayerController.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlayerController.State valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null