public enum TextTrackType extends Enum<TextTrackType>
Enum Constant and Description |
---|
CEA608
The track contains CEA608 content.
|
DATERANGE
The track contains HLS EXT-X-DATERANGE content.
|
EMSG
The track contains emsg (Event Message) content.
|
EVENTSTREAM
The track contains Event Stream content.
|
ID3
The track contains ID3 content.
|
NONE
The type of the tracks contents is unknown.
|
SRT
The track contains SRT (SubRip Text) content.
|
TTML
The track contains TTML (Timed Text Markup Language) content.
|
WEBVTT
The track contains WebVTT (Web Video Text Tracks) content.
|
Modifier and Type | Method and Description |
---|---|
static TextTrackType |
from(String type)
Creates a text track type state from a textual representation.
|
String |
getType()
The textual representation of the text track type.
|
String |
toString() |
static TextTrackType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextTrackType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextTrackType NONE
public static final TextTrackType SRT
public static final TextTrackType TTML
public static final TextTrackType WEBVTT
public static final TextTrackType EMSG
public static final TextTrackType EVENTSTREAM
public static final TextTrackType ID3
public static final TextTrackType CEA608
public static final TextTrackType DATERANGE
public static TextTrackType[] values()
for (TextTrackType c : TextTrackType.values()) System.out.println(c);
public static TextTrackType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TextTrackType from(String type)
type
- The textual representation of the text track type.NONE
public String getType()
public String toString()
toString
in class Enum<TextTrackType>