THEOplayer API

  • The THEOplayer object.

    See more

    Declaration

    Swift

    @objc
    public class THEOplayer : NSObject, EventDispatcherProtocol
  • The configuration for a THEOplayer instance.

    See more

    Declaration

    Swift

    @objc
    public class THEOplayerConfiguration : NSObject, Encodable
  • An object to configure UI.

    Remark

    Only configuring the localization for Google IMA is supported.
    See more

    Declaration

    Swift

    @objc(THEOplayerUIConfiguration)
    public class UIConfiguration : NSObject, Encodable
  • The Cast object helps you configure and control casting to external devices with THEOplayer.

    See more

    Declaration

    Swift

    public protocol Cast : EventDispatcherProtocol
  • The ready state of the player.

    See more

    Declaration

    Swift

    @objc(THEOplayerReadyState)
    public enum ReadyState : Int
  • The presentation mode specifies how the player will be displayed.

    See more

    Declaration

    Swift

    @objc(THEOplayerPresentationMode)
    public enum PresentationMode : Int
  • The preload strategy of the player. The strategy specifies what data to load on source change.

    See more

    Declaration

    Swift

    @objc(THEOplayerPreload)
    public enum Preload : Int
  • The metrics API which can be used to gather information related to the quality-of-service and video playback experience.

    Remark

    • Values will be updated periodically.

    Since

    v2.46.0.

    Declaration

    Swift

    @objc(THEOplayerMetrics)
    public class Metrics : NSObject, Codable