Class

AVAssetResourceLoadingRequest

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

Declaration

@interface AVAssetResourceLoadingRequest : NSObject

Overview

When an AVURLAsset object needs help loading a resource, it asks its AVAssetResourceLoader object to assist. The resource loader encapsulates the request information by creating an instance of this object, which it then hands to its delegate object for processing. The delegate uses the information in this object to perform the request and report on the success or failure of the operation.

Topics

Accessing the Request Data

request

The URL request object for the resource.

requestor

The asset resource requestor that made the request.

AVAssetResourceLoadingRequestor

An object that contains information about the originator of a loading request.

- streamingContentKeyRequestDataForApp:contentIdentifier:options:error:

Obtains key request data for a specific combination of application and content.

- persistentContentKeyFromKeyVendorResponse:options:error:

Obtains a persistable content key from a context.

AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey

Specifies whether the content key request requires a persistable key to be returned from the key vendor.

contentInformationRequest

The information for a requested resource.

dataRequest

The range of requested resource data.

redirect

An URL request instance if the loading request was redirected.

Reporting the Result of the Request

response

The URL response for the loading request.

- finishLoadingWithResponse:data:redirect:

Causes the receiver to finish loading a resource for which a resource loader’s delegate took responsibility .

Deprecated
- finishLoading

Causes the receiver to treat the processing of the request as complete.

cancelled

A Boolean value that indicates whether the request has been cancelled.

- finishLoadingWithError:

Causes the receiver to handle the failure to load a resource for which a resource loader’s delegate took responsibility.

finished

A Boolean value that indicates whether loading of the resource has finished.

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.

AVAssetResourceLoader

An object that mediates resource requests from a URL asset.

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.