Package com.oorian.html.elements.consts
Enum Class TrackKind
- All Implemented Interfaces:
Serializable,Comparable<TrackKind>,Constable
Enumeration defining the types of text tracks for video and audio elements.
This enum provides type-safe constants for the track element's "kind" attribute,
which specifies the type of text track being provided.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClosed captions - transcription with sound effects.Chapter titles for media navigation.Audio descriptions for visually impaired users.Metadata track for scripts and applications.Subtitles - translation of dialogue. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the track kind value for use in track elements.toString()static TrackKindReturns the enum constant of this class with the specified name.static TrackKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CAPTIONS
Closed captions - transcription with sound effects. Includes dialogue and relevant sound descriptions for deaf/hard-of-hearing users. -
CHAPTERS
Chapter titles for media navigation. Provides chapter markers for easy navigation through the media content. -
DESCRIPTIONS
Audio descriptions for visually impaired users. Provides narrative descriptions of visual content for blind users. -
METADATA
Metadata track for scripts and applications. Contains data used by scripts but not displayed to users. -
SUBTITLES
Subtitles - translation of dialogue. Provides translation of dialogue for users who understand audio but need text.
-
-
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
-
getValue
Gets the track kind value for use in track elements.- Returns:
- the string value used in HTML kind attribute.
-
toString
-