Enum Class TrackKind

java.lang.Object
java.lang.Enum<TrackKind>
com.oorian.html.elements.consts.TrackKind
All Implemented Interfaces:
Serializable, Comparable<TrackKind>, Constable

public enum TrackKind extends Enum<TrackKind>
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:
  • Enum Constant Details

    • CAPTIONS

      public static final TrackKind CAPTIONS
      Closed captions - transcription with sound effects. Includes dialogue and relevant sound descriptions for deaf/hard-of-hearing users.
    • CHAPTERS

      public static final TrackKind CHAPTERS
      Chapter titles for media navigation. Provides chapter markers for easy navigation through the media content.
    • DESCRIPTIONS

      public static final TrackKind DESCRIPTIONS
      Audio descriptions for visually impaired users. Provides narrative descriptions of visual content for blind users.
    • METADATA

      public static final TrackKind METADATA
      Metadata track for scripts and applications. Contains data used by scripts but not displayed to users.
    • SUBTITLES

      public static final TrackKind SUBTITLES
      Subtitles - translation of dialogue. Provides translation of dialogue for users who understand audio but need text.
  • Method Details

    • values

      public static TrackKind[] 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

      public static TrackKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Gets the track kind value for use in track elements.
      Returns:
      the string value used in HTML kind attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TrackKind>