AVContentKeySession
extension AVContentKeySession
-
Prefetch license
Declaration
Swift
@objc public func requestLicense(identifier: String, license options: [String : Any]? = nil)Parameters
identifierlicense identifier. Usually comes from playlist. For FairPlay, it should be
skd://.....optionskey request option. refer
OTVDRMManager.Keys.OTVLicenseOptionOffline -
Erase the license persistence on the local storage.
Declaration
Swift
@objc public func eraseOfflineLicense(identifier: String) -> BoolParameters
identifierlicense identifier. same format when used in
requestLicense.Return Value
true- the license has successfully been erased from local system.false- the license does not exist.
AVContentKeySession Extension Reference