TextTrackFormat

@objc(THEOplayerTextTrackFormat)
public enum TextTrackFormat : Int
extension TextTrackFormat: Codable

Describes the format of the text track.

  • The text track is in the Web Video Text Tracks format.

    Remark

    In the native pipeline, for HLS streams use the sideloaded subtitles connector to put this format into effect. For more info, please check: https://github.com/THEOplayer/iOS-Connector

    Declaration

    Swift

    @objc(THEOplayerTextTrackFormatWEBVTT)
    case WebVTT = 1
  • SRT

    The text track is in the SubRip Text Tracks format.

    Remark

    Supported only when using the sideloaded subtitles connector. For more info, please check: https://github.com/THEOplayer/iOS-Connector

    Declaration

    Swift

    @objc(THEOplayerTextTrackFormatSRT)
    case SRT = 2
  • The raw value of type String.

    Declaration

    Swift

    public var _rawValue: String { get set }