Enum Class PlayerState

java.lang.Object
java.lang.Enum<PlayerState>
com.jwplayer.pub.api.PlayerState
All Implemented Interfaces:
Serializable, Comparable<PlayerState>, Constable

public enum PlayerState extends Enum<PlayerState>
Possible states of the player.
  • Enum Constant Details

    • IDLE

      public static final PlayerState IDLE
      No media is playing.
    • BUFFERING

      public static final PlayerState BUFFERING
      Paused while the player buffers.
    • PLAYING

      public static final PlayerState PLAYING
      Media is playing.
    • PAUSED

      public static final PlayerState PAUSED
      Paused until manually resumed.
    • COMPLETE

      public static final PlayerState COMPLETE
      Playback has finished.
    • ERROR

      public static final PlayerState ERROR
      Player encountered an error
  • Method Details

    • values

      public static PlayerState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlayerState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null