Enum TextTrackReadyState
-
- All Implemented Interfaces:
public enum TextTrackReadyState
The ready state of a text track.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Indicates that the text track's cues have not been obtained.
LOADING
The text track is loading. Further cues might still be added to the track by the parser.
LOADED
The text track has been loaded with no fatal errors.
ERROR
An error occurred while obtaining the cues for the track. One or more of the cues are likely missing and will not be obtained.
-
Method Summary
Modifier and Type Method Description static TextTrackReadyState
from(int readyState)
Creates a text track ready state from a number, when possible. static Array<TextTrackReadyState>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static TextTrackReadyState
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
from
@Nullable() static TextTrackReadyState from(int readyState)
Creates a text track ready state from a number, when possible.
- Parameters:
readyState
- The number representation of the text track ready state.- Returns:
The text track ready state. (Nullable)
-
values
static Array<TextTrackReadyState> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static TextTrackReadyState valueOf(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.)
- Returns:
the enum constant with the specified name
-
-
-
-