---
title: resourceLoader
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avurlasset/resourceloader
---

# resourceLoader

The resource loader for the asset.

## Declaration

```swift
var resourceLoader: AVAssetResourceLoader { get }
```

## Discussion

Discussion During loading, the system may ask the resource loader to assist loading the resource. For example, a resource that requires decryption may require the resource loader to provide the appropriate decryption keys. You can assign a delegate object to the resource loader object and use your delegate to intercept these requests and provide appropriate responses.

## See Also

### Assisting with resource loading

- [mayRequireContentKeysForMediaDataProcessing](avfoundation/avurlasset/mayrequirecontentkeysformediadataprocessing.md)
