<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetDownloadDelegate/urlSession(_:assetDownloadTask:didResolve:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAssetDownloadDelegate(im)URLSession:assetDownloadTask:didResolveMediaSelection:"
  },
  "title" : "urlSession(_:assetDownloadTask:didResolve:)"
}
-->

# urlSession(_:assetDownloadTask:didResolve:)

Tells the delegate that a download task resolved the media selection to download, including any automatic selections.

```
optional func urlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, didResolve resolvedMediaSelection: AVMediaSelection)
```

## Parameters

`session`

The session the asset download task is on.

`assetDownloadTask`

The task that resolved the media selection.

`resolvedMediaSelection`

The media selection the task resolved.

## Discussion

For the best chance of playing back downloaded content without further network I/O, set this selection on the associated [`AVPlayerItem`](/documentation/AVFoundation/AVPlayerItem).

---

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)