THEOplayer API

  • A THEOplayerConfiguration object contains properties used to configure a THEOplayer

    See more

    Declaration

    Swift

    @objc
    public class THEOplayerConfiguration : NSObject, Encodable
  • An object to configure UI. For now, only configuring localisation for Google IMA is supported.

    See more

    Declaration

    Swift

    public class UIConfiguration : Encodable
  • Classes that comform to this protocol can add and remove event listeners.

    See more

    Declaration

    Swift

    public protocol EventDispatcherProtocol
  • 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
  • A TextTrackCue object represents an individual cue and provides methods and properties to access the data and events to act on changes to cue state. Depending on the TextTrack’s type, a cue might have different properties.

    See more

    Declaration

    Swift

    public protocol TextTrackCue : EventDispatcherProtocol
  • Web Video Text Tracks cue. Content type is String.

    See more

    Declaration

    Swift

    public protocol WebVttCue : TextTrackCue
  • ID3 Text Track cue. Content type is [String:String].

    Declaration

    Swift

    public protocol Id3Cue : TextTrackCue
  • A MediaTrackList lists all available MediaTrack objects that the player can play. It contains MediaTrack objects, which are either AudioTracks or VideoTracks.

    See more

    Declaration

    Swift

    public protocol MediaTrackList : 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.

    Declaration

    Swift

    public protocol AudioTrack : MediaTrack