Enum TextTrackType
-
- All Implemented Interfaces:
public enum TextTrackTypeThe content type of a text track.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONEThe type of the tracks contents is unknown.
SRTThe track contains SRT (SubRip Text) content.
TTMLThe track contains TTML (Timed Text Markup Language) content.
WEBVTTThe track contains WebVTT (Web Video Text Tracks) content.
EMSGThe track contains emsg (Event Message) content.
EVENTSTREAMThe track contains Event Stream content.
ID3The track contains ID3 content.
CEA608The track contains CEA608 content.
DATERANGEThe track contains HLS EXT-X-DATERANGE content.
-
Method Summary
Modifier and Type Method Description static TextTrackTypefrom(String type)Creates a text track type state from a textual representation. StringtoString()static Array<TextTrackType>values()Returns an array containing the constants of this enum type, in the order they're declared. static TextTrackTypevalueOf(String name)Returns the enum constant of this type with the specified name. StringgetType()The textual representation of the text track type. -
-
Method Detail
-
from
static TextTrackType from(String type)
Creates a text track type state from a textual representation.
Default: NONE
- Parameters:
type- The textual representation of the text track type.- Returns:
The text track type. (NonNull)
-
values
static Array<TextTrackType> 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 TextTrackType 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
-
-
-
-