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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software