Class

AVURLAsset

A concrete subclass of AVAsset that's used to initialize an asset from a local or remote URL.

Declaration

@interface AVURLAsset : AVAsset

Topics

Creating a URL Asset

- initWithURL:options:

Initializes an asset that models the media resource found at the specified URL.

+ URLAssetWithURL:options:

Returns an asset that models the media resource found at the specified URL.

Accessing the URL

URL

The URL with which the asset was initialized.

Assisting with Resource Loading

resourceLoader

The resource loader associated with the asset.

Finding Compatible Tracks

- compatibleTrackForCompositionTrack:

Returns an asset track from which any time range can be inserted into a given composition track.

Getting Supported Media Types

+ audiovisualMIMETypes

Returns an array of the MIME types the AVURLAsset class supports.

+ audiovisualTypes

Returns an array of the file types the AVURLAsset class supports.

+ isPlayableExtendedMIMEType:

Returns a Boolean value that indicates whether the asset is playable with the given codec(s) and container type.

Working with Offline Assets

assetCache

The asset’s associated asset cache, if it exists.

Working with Encrypted Content

mayRequireContentKeysForMediaDataProcessing

Allows a URL asset to be added as a content key recipient to a content key session.

Relationships

Inherits From

See Also

Asset Retrieval

AVAssetDownloadURLSession

A URL session used to support the creation and execution of asset download tasks.

AVAssetResourceLoader

An object that mediates resource requests from a URL asset.

AVAssetResourceLoadingRequest

An object that encapsulates information about a resource request issued by a resource loader object.

response

The URL response for the loading request.

AVAssetResourceRenewalRequest

An object that encapsulates information about a resource request issued by a resource loader to renew a previously issued request.

AVAssetResourceLoadingContentInformationRequest

A query used to get essential information about a resource referenced by an asset resource loading request.

AVAssetResourceLoadingDataRequest

An object used to request data from a resource referenced by an asset resource loading request.

AVAssetDownloadStorageManager

A manager of policies used to automatically purge downloaded assets.

AVAssetDownloadStorageManagementPolicy

A set of properties that defines a policy to automatically purge downloaded assets.

AVMutableAssetDownloadStorageManagementPolicy

A mutable set of properties that defines a policy to automatically purge downloaded assets.