Class

AVAssetDownloadTask

A session used to download HTTP Live Streaming assets.

Declaration

class AVAssetDownloadTask : URLSessionTask

Overview

AVAssetDownloadTask is an URLSessionTask subclass used to download HTTP Live Streaming assets. Instances of this class are created using the makeAssetDownloadTask(asset:assetTitle:assetArtworkData:options:) method of AVAssetDownloadURLSession.

Topics

Accessing Task Information

var urlAsset: AVURLAsset

The asset supplied to the download task upon initialization.

var loadedTimeRanges: [NSValue]

A collection of time ranges for which the download task has media data already downloaded and playable.

var options: [String : Any]?

The options supplied to the download task upon initialization.

var destinationURL: URL

The file URL supplied to the download task upon initialization.

Deprecated

Relationships

Inherits From

Conforms To

See Also

Creating a Download Task

let AVAssetDownloadTaskMinimumRequiredMediaBitrateKey: String

The key used by the options dictionary indicating the lowest media bitrate to be used that is greater than or equal to this value.

let AVAssetDownloadTaskMediaSelectionKey: String

The key used by the options dictionary indicating the media selection for a new download selection.

class AVAggregateAssetDownloadTask

A single task that downloads multiple media selections for a single asset.