- All Implemented Interfaces:
Serializable,Comparable<WebReadyState>,Constable
HTML Audio/Video readyState for the
WebMediaPlayer.- Author:
- Besmir Beqiri
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionData is available for the current playback position, but not enough to actually play more than one frame.Enough data available to start playing.Data for the current playback position and at least the next frame is available.Enough of the media resource has been retrieved that the metadata attributes are initialized.No information is available about the media resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<WebReadyState> fromCode(int code) Returns the ready state for the given code.final intgetCode()The code related to this ready state.final StringThe description of this ready state.static WebReadyStateReturns the enum constant of this class with the specified name.static WebReadyState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HAVE_NOTHING
No information is available about the media resource. -
HAVE_METADATA
Enough of the media resource has been retrieved that the metadata attributes are initialized. -
HAVE_CURRENT_DATA
Data is available for the current playback position, but not enough to actually play more than one frame. -
HAVE_FUTURE_DATA
Data for the current playback position and at least the next frame is available. -
HAVE_ENOUGH_DATA
Enough data available to start playing.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
public final int getCode()The code related to this ready state.- Returns:
- the code
-
getDescription
The description of this ready state.- Returns:
- the description
-
fromCode
Returns the ready state for the given code.- Parameters:
code- the code- Returns:
- an optional
WebReadyStateobject
-