<!--
{
  "availability" : [
    "iOS: 4.0.0 - 18.0.0",
    "iPadOS: 4.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.7.0 - 15.0.0",
    "tvOS: 9.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 1.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAsset/init(url:)-42gl8",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAsset(cm)assetWithURL:"
  },
  "title" : "init(url:)"
}
-->

# init(url:)

Creates an asset that models the media at the specified URL.

```
convenience init(url URL: URL)
```

## Parameters

`URL`

A URL to a local, remote, or HTTP Live Streaming media resource.

## Discussion

---

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)