THEOplayerConfiguration

@objc
public class THEOplayerConfiguration : NSObject, Encodable

The configuration for a THEOplayer instance.

  • Constructs a THEOplayerConfiguration.

    • licenseUrl: The url to fetch the license for the player
      • pip: a PiPConfiguration. (picture-in-picture configuration)
      • ui: a UIconfiguration, defaults to nil.
  • Constructs a THEOplayerConfiguration.
    
    - Parameters:
       - chromeless: Whether the chromeless player, without UI, is used, defaults to false.
       - defaultCSS: Whether the default THEOplayer css is used, defaults to true.
       - cssPaths: An array of string paths of custom CSS files, defaults to an empty array. (e.g. from yourBundle.path(forResource:ofType:))
       - jsPaths: An array of string paths of custom JS files, defaults to an empty array. (e.g. from yourBundle.path(forResource:ofType:))
       - jsPathsPre: The paths to javascript files which are loaded before the player is constructed, defaults to an empty array.
       - analytics: The configurations for pre-integrated analytics services, defaults to an empty array.
       - pip: The configuration for picture-in-picture.
       - ads: The additional advertisement configuration, defaults to nil.
       - ui: The additional UI configuration, defaults to nil.
       - cast: The additional cast configuration, defaults to nil.
       - hlsDateRange: Whether the logic to expose date ranges parsed from HLS manifests is enabled, defaults to nil.
        - verizonMedia: The configuration for the Verizon Media services, defaults to nil.
    
    • license: the license for the player, defaults to nil.
      • licenseUrl: the url to fetch the license for the player, defaults to nil.

    Declaration

    Swift

    public init(
        chromeless: Bool = false,
        defaultCSS: Bool = true,
        cssPaths: [String] = [],
        jsPaths: [String] = [],
        jsPathsPre: [String] = [],
        analytics: [AnalyticsDescription] = [],
        pip: PiPConfiguration? = nil,
        ads: AdsConfiguration? = nil,
        ui: UIConfiguration? = nil,
        cast: CastConfiguration? = nil,
        hlsDateRange: Bool? = nil,
        license: String? = nil,
        licenseUrl: String? = nil,
        verizonMedia: VerizonMediaConfiguration? = nil
        )
  • :nodoc

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws