LocalAssetsManager
Manage local (downloaded) assets.
-
Create a new LocalAssetsManager for DRM-protected content. Uses the default data-store.
-
Create a new LocalAssetsManager for DRM-protected content.
-
Create a new LocalAssetsManager for non-DRM content.
-
Create a PKMediaEntry for a local asset. This is a convenience function that wraps the result of
createLocalMediaSource(for:localURL:)
with a PKMediaEntry. -
Get the preferred PKMediaSource for download purposes. This function takes into account the capabilities of the device.
-
-
-
Check Downloaded Asset status
-
Renew Downloaded Asset
-
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.