Enum Class WebReadyState

java.lang.Object
java.lang.Enum<WebReadyState>
one.jpro.platform.media.player.impl.WebReadyState
All Implemented Interfaces:
Serializable, Comparable<WebReadyState>, Constable

public enum WebReadyState extends Enum<WebReadyState>
HTML Audio/Video readyState for the WebMediaPlayer.
Author:
Besmir Beqiri
  • Enum Constant Details

    • HAVE_NOTHING

      public static final WebReadyState HAVE_NOTHING
      No information is available about the media resource.
    • HAVE_METADATA

      public static final WebReadyState HAVE_METADATA
      Enough of the media resource has been retrieved that the metadata attributes are initialized.
    • HAVE_CURRENT_DATA

      public static final WebReadyState HAVE_CURRENT_DATA
      Data is available for the current playback position, but not enough to actually play more than one frame.
    • HAVE_FUTURE_DATA

      public static final WebReadyState HAVE_FUTURE_DATA
      Data for the current playback position and at least the next frame is available.
    • HAVE_ENOUGH_DATA

      public static final WebReadyState HAVE_ENOUGH_DATA
      Enough data available to start playing.
  • Method Details

    • values

      public static WebReadyState[] 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 WebReadyState 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
    • getCode

      public final int getCode()
      The code related to this ready state.
      Returns:
      the code
    • getDescription

      public final String getDescription()
      The description of this ready state.
      Returns:
      the description
    • fromCode

      public static Optional<WebReadyState> fromCode(int code)
      Returns the ready state for the given code.
      Parameters:
      code - the code
      Returns:
      an optional WebReadyState object