THEOplayerConfiguration

@objc
public class THEOplayerConfiguration : NSObject, Encodable

A THEOplayerConfiguration object contains properties used to configure a THEOplayer

  • Constructs a THEOplayerConfiguration for chromefull player.

  • Constructs a THEOplayerConfiguration for chromefull player.

    Declaration

    Swift

    public init(
        defaultCSS : Bool? = true,
        cssPaths : [String]? = [],
        jsPaths : [String]? = [],
        jsPathsPre : [String]? = [],
        googleIMA : Bool? = false,
        analytics : [AnalyticsDescription]? = [],
        pictureInPicture : Bool? = false,
        ads : AdsConfiguration? = nil,
        ui: UIConfiguration? = nil,
        cast: CastConfiguration? = nil
        )

    Parameters

    defaultCSS

    If set to false, the THEOplayer default CSS file will not be used.

    cssPaths

    An array of string paths of custom CSS files (e.g. from yourBundle.path(forResource:ofType:))

    jsPaths

    An array of string paths of custom JS files (e.g. from yourBundle.path(forResource:ofType:))

    googleIMA

    If set to true, the Google IMA SDK will be loaded.

    pictureInPicture

    If set to true, THEOplayer will use native picture-in-picture

    ads

    an advertisement configuration

    ui

    an UIconfiguration

  • Constructs a THEOplayerConfiguration for chromeless player.

    Declaration

    Swift

    public init(
        chromeless : Bool,
        cssPaths : [String]? = [],
        jsPaths : [String]? = [],
        jsPathsPre : [String]? = [],
        googleIMA : Bool? = false,
        analytics : [AnalyticsDescription]? = [],
        pictureInPicture : Bool? = false,
        ads : AdsConfiguration? = nil,
        ui: UIConfiguration? = nil,
        cast: CastConfiguration? = nil
        )

    Parameters

    chromeless

    Set this to true to have a chromeless THEOplayer

    cssPaths

    An array of string paths of custom CSS files (e.g. from yourBundle.path(forResource:ofType:))

    jsPaths

    An array of string paths of custom JS files (e.g. from yourBundle.path(forResource:ofType:))

    googleIMA

    If set to true, the Google IMA SDK will be loaded.

    pictureInPicture

    If set to true, THEOplayer will use native picture-in-picture

    ads

    an advertisement configuration

    ui

    an UIconfiguration

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws