KeySystemConfiguration

@objc(THEOplayerKeySystemConfiguration)
public class KeySystemConfiguration : NSObject, Codable

Key system configuration.

  • Specifies the URL of the licensing server.

    Declaration

    Swift

    @objc
    public var licenseAcquisitionURL: URL?
  • Specifies the URL of the FairPlay certificate server.

    Declaration

    Swift

    @objc
    public var certificateURL: URL?
  • Specifies the license type.

    Declaration

    Swift

    public var licenseType: LicenseType?
  • Optionally specifies request headers that should be sent with any license requests to the DRM server. This is a plain object where the keys of the object are header names and corresponding values are header values.

    Declaration

    Swift

    public var headers: [String : String]?
  • Constructs a KeySystemConfiguration.

    Declaration

    Swift

    public init(licenseAcquisitionURL: String? = nil, certificateURL: String? = nil, licenseType: LicenseType? = nil, headers: [String : String]? = nil)

    Parameters

    licenseAcquisitionURL

    The URL of the licensing server, defaults to nil.

    certificateURL

    The URL of the certificate server, defaults to nil.

    licenseType

    The type of license, defaults to nil.