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

    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, returns nil otherwise
  • Returns the failure reason of the download.

    • This field applies only if the state is error, returns nil otherwise
  • 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.
  • Setup PRM for a download OTVPRMAVURLAsset.

    Note

    • The OTVPersistenceAsset object MUST be in one state from notDownloaded, prepared or preparing, otherwise calling this function has no effect.
  • Current state of the asset

  • The local URL to access the offline asset from

  • Extends OTVPersistenceAsset to define a number of values to use as keys in dictionary lookups.

    See more