AVAssetResourceLoadingContentInformationRequest
A query for retrieving essential information about a resource that an asset resource-loading request references.
Declaration
class AVAssetResourceLoadingContentInformationRequestOverview
When a resource loading delegate, which must implement the AVAssetResourceLoaderDelegate protocol, receives an instance of AVAssetResourceLoadingRequest when the resourceLoader(_:shouldWaitForLoadingOfRequestedResource:) is invoked and accepts responsibility for loading the resource, it must check whether the contentInformationRequest property of the AVAssetResourceLoadingRequest is not nil. Whenever the value is not nil, the request includes a query for the information that AVAssetResourceLoadingContentInformationRequest encapsulates. In response to such queries, the resource loading delegate should set the values of the content information request’s properties appropriately before invoking the AVAssetResourceLoadingRequest method finishLoading().
When finishLoading() is invoked, the values of the properties of its contentInformationRequest property will, in part, determine how the requested resource is processed. For example, if the requested resource’s URL is the URL of an AVURLAsset and contentType is set by the resource loading delegate to a value that the underlying media system doesn’t recognize as a supported media file type, operations on the AVURLAsset, such as playback, are likely to fail.