<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMediaDataStorage/init(url:options:)-5cv8s",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMediaDataStorage(im)initWithURL:options:"
  },
  "title" : "init(url:options:)"
}
-->

# init(url:options:)

Creates a media data storage object associated with a file URL.

```
init(url URL: URL, options: [String : Any]? = nil)
```

## Parameters

`URL`

The URL specifying where sample data added to a movie or track is written.

`options`

A dictionary object containing keys for specifying initialization options. No keys are currently defined.

## Return Value

An `AVMediaDataStorage` object.

## 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)