Enum Class MediaReadyState

All Implemented Interfaces:
Serializable, Comparable<MediaReadyState>, Constable

public enum MediaReadyState extends Enum<MediaReadyState>
Enumeration that indicates how much of (a media) is loaded.
  • Enum Constant Details

    • HaveNothing

      public static final MediaReadyState HaveNothing
      No information available.
    • HaveMetaData

      public static final MediaReadyState HaveMetaData
      Metadata loaded: duration, width, height.
    • HaveCurrentData

      public static final MediaReadyState HaveCurrentData
      Data at playback position is available.
    • HaveFutureData

      public static final MediaReadyState HaveFutureData
      Have data to play for a while.
    • HaveEnoughData

      public static final MediaReadyState HaveEnoughData
      Enough to reach the end without stalling.
  • Method Details

    • values

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

      public static MediaReadyState 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.