Track API

  • A track object.

    Remark

    • Either a TextTrack or a MediaTrack.
    • A specific track type (e.g. TextTrack) will always be used.
    See more

    Declaration

    Swift

    public protocol Track : EventDispatcherProtocol
  • A MediaTrack is an element that represents a single video or audio track that can be played by the player.

    See more

    Declaration

    Swift

    public protocol MediaTrack : Track
  • A VideoTrack object is an element that represents a single video track that can be played by the player.

    Declaration

    Swift

    public protocol VideoTrack : MediaTrack
  • An AudioTrack object is an element that represents a single audio track that can be played by the player.

    See more

    Declaration

    Swift

    public protocol AudioTrack : MediaTrack
  • A TextTrack object is an element that represents a single text track that can be displayed in the player.

    See more

    Declaration

    Swift

    public protocol TextTrack : Track
  • The different TextTrack modes.

    See more

    Declaration

    Swift

    @objc(THEOplayerTextTrackMode)
    public enum TextTrackMode : Int
  • Describes the kind of the text track.

    See more

    Declaration

    Swift

    @objc(THEOplayerTextTrackKind)
    public enum TextTrackKind : Int
    extension TextTrackKind: Codable
  • Describes the format of the text track.

    See more

    Declaration

    Swift

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