DRMTodayDRMConfiguration
@objc(THEOplayerDRMTodayDRMConfiguration)
public class DRMTodayDRMConfiguration : MultiplatformDRMConfiguration
The DRMtoday DRMConfiguration object provides a set of DRM parameters for FairPlay DRM streaming with DRMtoday integration.
-
The authentication token.
Remark
This attribute is required when you use the Up-front Authentication flow to make the license request.Declaration
Swift
@objc public var token: String?
-
The user ID.
Remark
This attribute is required when you use the User Authentication Callback flow to make the license request.Declaration
Swift
@objc public var userId: String?
-
The session ID.
Remark
This attribute is required when you use the User Authentication Callback flow to make the license request.Declaration
Swift
@objc public var sessionId: String?
-
The merchant ID.
Remark
This attribute is required when you use the User Authentication Callback flow to make the license request.Declaration
Swift
@objc public var merchant: String?
-
Constructs a DRMToday DRMConfiguration.
Declaration
Swift
@objc public init(token: String? = nil, userId: String? = nil, sessionId: String? = nil, merchant: String? = nil, keySystemConfigurations: KeySystemConfigurationCollection)
Parameters
token
The DRMToday token, defaults to nil.
userId
The DRMToday user ID, defaults to nil.
sessionId
The DRMToday session ID, defaults to nil.
merchant
The DRMToday merchant, default to nil.
licenseType
The type of license for FairPlay, defaults to
temporary
.keySystemConfigurations
the key system configurations (FairPlay, Widevide).
-
Constructs a DRMToday DRMConfiguration.
Declaration
Swift
@available(*, deprecated, message: "This initializer will be removed in the next major release. Please use init(token:userId:sessionId:merchant:keySystemConfigurations:﹚ instead.") @objc public convenience init(licenseAcquisitionURL: String, certificateURL: String, headers: [[String : String]]? = nil, token: String? = nil, userId: String? = nil, sessionId: String? = nil, merchant: String? = nil, licenseType: LicenseType = .temporary)
Parameters
licenseAcquisitionURL
The license aquisition URL for FairPlay.
certificateURL
The certificate URL for FairPlay.
headers
The DRMToday headers for FairPlay, defaults to nil.
token
The DRMToday token, defaults to nil.
userId
The DRMToday user ID, defaults to nil.
sessionId
The DRMToday session ID, defaults to nil.
merchant
The DRMToday merchant, default to nil.
licenseType
The type of license for FairPlay, defaults to
temporary
.