---
title: "requestAVAsset(forVideo:options:resultHandler:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phimagemanager/requestavasset(forvideo:options:resulthandler:)"
---

# requestAVAsset(forVideo:options:resultHandler:)

Requests AVFoundation objects representing the video asset’s content and state, to be loaded asynchronously.

## Declaration

```swift
func requestAVAsset(forVideo asset: PHAsset, options: PHVideoRequestOptions?, resultHandler: @escaping (AVAsset?, AVAudioMix?, [AnyHashable : Any]?) -> Void) -> PHImageRequestID
```

## Parameters

- `asset`: The video asset for which video objects are to be loaded.
- `options`: Options specifying how Photos should handle the request and notify your app of progress or errors. For details, see doc://com.apple.photokit/documentation/Photos/PHVideoRequestOptions.
- `resultHandler`: A block that Photos calls after loading the asset’s data. The block takes the following parameters:

## Return Value

Return Value A numeric identifier for the request. If you need to cancel the request before it completes, pass this identifier to the cancelImageRequest(_:) method.

## Discussion

Discussion When you call this method, Photos downloads the video data (if necessary) and creates AVFoundation objects. It then calls your resultHandler block to provide the requested video. Use this method when you want to work with the arrangement of audio and video tracks that an asset contains. If you plan to use the asset only for playback, call the requestPlayerItem(forVideo:options:resultHandler:) method. If you plan to export the asset data, call the requestExportSession(forVideo:options:exportPreset:resultHandler:) method.

## See Also

### Requesting Video Objects

- [requestPlayerItem(forVideo:options:resultHandler:)](photos/phimagemanager/requestplayeritem(forvideo:options:resulthandler:).md)
- [requestExportSession(forVideo:options:exportPreset:resultHandler:)](photos/phimagemanager/requestexportsession(forvideo:options:exportpreset:resulthandler:).md)
