OTVDRMManager
The OTVDRMManager
class sets up an instance of DRM based upon OTVLicenseDelegate
.
-
The shared
OTVDRMManager
instance. -
Set the license delegate for
OTVDRMManager
based onOTVLicenseDelegate
.Note
The delegate is held using a zeroing-weak reference, so it has a value of nil after it has been deallocated outside. Ensure the delegate is retained until it is no longer needed by player. -
Prefetch license This function is called to prefetch license for one stream download at one time. Call
OTVPersistenceManager.startDownload(urlAsset:title:licenseDelegate:artwork:options:)
to request multiple licenses and download multiple streams in parallel.Note
Ensure to callsetLicenseDelegate(delegate)
before calling this method. -
Check is license is persisted This function is called to determing if a license is persisted or not.
-
Erase the license persistence on the local storage.
-
-
Extends
See moreOTVDRMManager
to define a number of values to use as keys in dictionary lookups.