<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetResourceLoader",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetResourceLoader"
  },
  "title" : "AVAssetResourceLoader"
}
-->

# AVAssetResourceLoader

An object that mediates resource requests from a URL asset.

```
class AVAssetResourceLoader
```

## Overview

You do not create resource loader objects yourself. Instead, you retrieve a resource loader from the [`resourceLoader`](/documentation/AVFoundation/AVURLAsset/resourceLoader) property of an [`AVURLAsset`](/documentation/AVFoundation/AVURLAsset) object and use it to assign your custom delegate object.

The delegate you associate with this object must adopt the [`AVAssetResourceLoaderDelegate`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate) protocol. For more information, see [`AVAssetResourceLoaderDelegate`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate).

## Topics

### Accessing the delegate

[`setDelegate(_:queue:)`](/documentation/AVFoundation/AVAssetResourceLoader/setDelegate(_:queue:))

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

[`delegate`](/documentation/AVFoundation/AVAssetResourceLoader/delegate)

The delegate object to use when handling resource requests.

[`AVAssetResourceLoaderDelegate`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate)

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

[`delegateQueue`](/documentation/AVFoundation/AVAssetResourceLoader/delegateQueue)

The dispatch queue to use when handling resource requests.

### Loading content keys

[`preloadsEligibleContentKeys`](/documentation/AVFoundation/AVAssetResourceLoader/preloadsEligibleContentKeys)

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

### Supporting Common Media Client Data

[`sendsCommonMediaClientDataAsHTTPHeaders`](/documentation/AVFoundation/AVAssetResourceLoader/sendsCommonMediaClientDataAsHTTPHeaders)

A Boolean value that indicates whether to enable attaching Common Media Client Data as HTTP request headers.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)