OTVDRMManager
public class OTVDRMManager : NSObject
The OTVDRMManager class sets up an instance of DRM based upon OTVLicenseDelegate.
-
The shared
OTVDRMManagerinstance.Declaration
Swift
@objc public static let shared: OTVDRMManager -
Set the license delegate for
OTVDRMManagerbased onOTVLicenseDelegate.Note
The delegate is held using a zeroing-weak reference, so it have a value of nil after it has been deallocated outside. Ensure the delegate is retained until it is not need by player.
Declaration
Swift
@objc public func setLicenseDelegate(_ delegate: OTVLicenseDelegate)Parameters
delegateAn instance of
OTVLicenseDelegate. -
Declaration
Swift
@objc public func requestLicense(identifier: String, license options: [String : Any]? = nil) -
Declaration
Swift
@objc public func eraseOfflineLicense(identifier: String) -> Bool
OTVDRMManager Class Reference