Manage local (downloaded) assets.

  • Prepare an AVURLAsset for download via AVAssetDownloadTask. Note that this is only relevant for FairPlay assets, and does not do anything otherwise.

    • asset: an AVURLAsset, ready to be downloaded
    • mediaSource: the original source for the asset. mediaSource.contentUrl and asset.url should point at the same file.
  • Prepare a PKMediaEntry for download using AVAssetDownloadTask.