Class

AVAssetResourceLoader

An object that mediates resource requests from a URL asset.

Declaration

@interface AVAssetResourceLoader : NSObject

Overview

You do not create resource loader objects yourself. Instead, you retrieve a resource loader from the resourceLoader property of an AVURLAsset object and use it to assign your custom delegate object.

The delegate you associate with this object must adopt the AVAssetResourceLoaderDelegate protocol. For more information, see AVAssetResourceLoaderDelegate.

The AVARLDelegateDemo demonstrates using this class in a streaming environment.

Topics

Accessing the Delegate

- setDelegate:queue:

Sets the delegate and dispatch queue to use with the resource loader.

delegate

The delegate object to use when handling resource requests.

AVAssetResourceLoaderDelegate

Methods you can implement to handle resource loading requests coming from a URL asset.

Getting the Dispatch Queue

delegateQueue

The dispatch queue to use when handling resource requests.

Loading Content Keys

preloadsEligibleContentKeys

A Boolean value that indicates whether content keys will be loaded as quickly as possible.

Relationships

Inherits From

See Also

Asset Retrieval

AVURLAsset

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

AVAssetDownloadURLSession

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

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.