<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/VideoReader/read(contentsOf:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents11VideoReaderV4read10contentsOfAC11AsyncFramesV10Foundation3URLV_tYaKFZ"
  },
  "title" : "read(contentsOf:)"
}
-->

# read(contentsOf:)

Reads a video file as an async sequence of video frames.

```
static func read(contentsOf url: URL) async throws -> VideoReader.AsyncFrames
```

## Parameters

`url`

A video file URL.

## Return Value

An async sequence of `VideoFrames`.

---

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)