<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetResourceLoaderDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAssetResourceLoaderDelegate"
  },
  "title" : "AVAssetResourceLoaderDelegate"
}
-->

# AVAssetResourceLoaderDelegate

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

```
protocol AVAssetResourceLoaderDelegate : NSObjectProtocol
```

## Overview

A class should adopt this protocol when associated with the asset’s resource loader—that is, an instance of the [`AVAssetResourceLoader`](/documentation/AVFoundation/AVAssetResourceLoader) class. The resource loader works with your delegate to process the request.

## Topics

### Processing resource requests

[`resourceLoader(_:shouldWaitForLoadingOfRequestedResource:)`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate/resourceLoader(_:shouldWaitForLoadingOfRequestedResource:))

Asks the delegate if it wants to load the requested resource.

[`resourceLoader(_:shouldWaitForRenewalOfRequestedResource:)`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate/resourceLoader(_:shouldWaitForRenewalOfRequestedResource:))

Tells the delegate when assistance is required of the application to renew a resource.

[`resourceLoader(_:didCancel:)`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate/resourceLoader(_:didCancel:)-3nl51)

Informs the delegate that a prior loading request has been cancelled.

### Processing authentication challenges

[`resourceLoader(_:shouldWaitForResponseTo:)`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate/resourceLoader(_:shouldWaitForResponseTo:))

Tells the delegate that assistance is required of the application to respond to an authentication challenge.

[`resourceLoader(_:didCancel:)`](/documentation/AVFoundation/AVAssetResourceLoaderDelegate/resourceLoader(_:didCancel:)-1wqin)

Informs the delegate that a prior authentication challenge has been cancelled.



---

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)