DownloadRequest
Represents a download request.
-
Unique idenfier
-
The content url of the asset to be downloaded
-
The title of the asset to be downloaded. The same is listed with Settings app.
-
The preferred video bitrate that must be downloaded
-
Preferred audio tracks to download
-
Preferred text tracks to download
-
The metadata associated with the downloaded content
-
Expiration date time of content on successful download after which the content would be purged automatically. Default value is
Date.distantFuturemeaning no expiry. -
The duration after the first playback attempt before the downloaded DRM content expires (in seconds).
-
The identifier used for DRM license updates. If provided, it will be used to update the new license from
avcontentkeysession. If not provided,contentIdwill be assigned toskdfor the download. -
init(contentId:contentUrl: title: preferredVideoBitrate: preferredAudioTracks: preferredTextTracks: metadata: expiration: playbackExpiryDuration: skd: )