Enum Class CaptionType

java.lang.Object
java.lang.Enum<CaptionType>
com.brightcove.player.model.CaptionType
All Implemented Interfaces:
Serializable, Comparable<CaptionType>, Constable

public enum CaptionType extends Enum<CaptionType>
Defines standard keys for each type of deliverable caption type handled by the SDK. These values correspond to the standard MIME types for each specification.
  • Enum Constant Details

    • UNKNOWN

      public static final CaptionType UNKNOWN
      Indicates that no CaptionType was specified.
    • TTML

      public static final CaptionType TTML
      Indicates DFXP/TTML captioning.
    • WEBVTT

      public static final CaptionType WEBVTT
      Indicates WebVTT captioning.
    • CEA608

      public static final CaptionType CEA608
      Indicates CEA-608 captioning.
    • CEA708

      public static final CaptionType CEA708
      Indicates CEA-708 captioning.
  • Method Details

    • values

      public static CaptionType[] 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 CaptionType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CaptionType>
    • fromString

      public static CaptionType fromString(String text)