Enum TextTrackType

  • All Implemented Interfaces:

    
    public enum TextTrackType
    
                        

    The content type of a text track.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final String type
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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.

      EMSG

      The track contains emsg (Event Message) content.

      EVENTSTREAM

      The track contains Event Stream content.

      ID3

      The track contains ID3 content.

      CEA608

      The track contains CEA608 content.

      DATERANGE

      The track contains HLS EXT-X-DATERANGE content.

    • Method Summary

      Modifier and Type Method Description
      static TextTrackType from(String type) Creates a text track type state from a textual representation.
      String toString()
      static Array<TextTrackType> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static TextTrackType valueOf(String name) Returns the enum constant of this type with the specified name.
      String getType() The textual representation of the text track type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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

      • getType

        @NonNull() String getType()

        The textual representation of the text track type.

        Returns:

        The textual representation of the text track type. (NonNull)