OTVPersistenceAsset
Downloads are represented by the objects of the class OTVPersistenceAsset
.
They have a OTVDownloadState
to reflect their lifecycle.
-
Unique identifier for the asset
-
Title of the asset
-
URL of the asset
-
Progress of the asset download
-
Returns the error details of the failure.
- This field applies only if the
downloadError
is not.noError
, returnsnil
otherwise
- This field applies only if the
-
Returns the failure reason of the download.
- This field applies only if the state is
error
, returnsnil
otherwise
- This field applies only if the state is
-
Current state of the asset
-
The asset ID
-
The total size downloaded for the downloaded/downloading asset in bytes
-
The DRM type of the asset
-
The OTVMediaInfo for the asset
-
The OTVPersistLicenseInfo for the asset
-
-
Setup FPS license delegate.
Note
- The
OTVPersistenceAsset
object MUST be in state `prepared, otherwise calling this function has no effect.
- The
-
Setup PRM for a download
OTVPRMAVURLAsset
.Note
- The
OTVPersistenceAsset
object MUST be in one state fromnotDownloaded
,prepared
orpreparing
, otherwise calling this function has no effect.
- The
-
Current state of the asset
-
The local URL to access the offline asset from
-
Extends
See moreOTVPersistenceAsset
to define a number of values to use as keys in dictionary lookups.