AVContentKeySession

extension AVContentKeySession
  • Prefetch license

    Declaration

    Swift

    @objc
    public func requestLicense(identifier: String, license options: [String : Any]? = nil)

    Parameters

    identifier

    license identifier. Usually comes from playlist. For FairPlay, it should be skd://.....

    options

    key request option. refer OTVDRMManager.Keys.OTVLicenseOptionOffline

  • Erase the license persistence on the local storage.

    Declaration

    Swift

    @objc
    public func eraseOfflineLicense(identifier: String) -> Bool

    Parameters

    identifier

    license 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.