Enum PlayerState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PlayerState>

    public enum PlayerState
    extends java.lang.Enum<PlayerState>
    List of supported video event player states.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      COLLAPSED
      The player has been reduced from its original size.
      EXPANDED
      The player has expanded from its original size.
      FULLSCREEN
      The player has entered fullscreen mode.
      MINIMIZED
      The player is collapsed in such a way that the video is hidden.
      NORMAL
      The player's default playback size.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PlayerState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PlayerState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • MINIMIZED

        public static final PlayerState MINIMIZED
        The player is collapsed in such a way that the video is hidden. The video may or may not still be progressing in this state, and sound may be audible. This refers specifically to the video player state on the page, and not the state of the browser window.
      • COLLAPSED

        public static final PlayerState COLLAPSED
        The player has been reduced from its original size. The video is still potentially visible.
      • NORMAL

        public static final PlayerState NORMAL
        The player's default playback size.
      • EXPANDED

        public static final PlayerState EXPANDED
        The player has expanded from its original size.
      • FULLSCREEN

        public static final PlayerState FULLSCREEN
        The player has entered fullscreen mode.
    • Method Detail

      • values

        public static PlayerState[] 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 (PlayerState c : PlayerState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlayerState valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null