---
title: "init(url:options:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avmediadatastorage/init(url:options:)-5cv8s"
---

# init(url:options:)

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

## Declaration

```swift
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

Return Value An AVMediaDataStorage object.
