---
title: "read(contentsOf:)"
framework: createmlcomponents
role: symbol
role_heading: Type Method
path: "createmlcomponents/videoreader/read(contentsof:)"
---

# read(contentsOf:)

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

## Declaration

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

## Parameters

- `url`: A video file URL.

## Return Value

Return Value An async sequence of VideoFrames.

## See Also

### Reading

- [read(_:)](createmlcomponents/videoreader/read(_:).md)
- [readCamera(configuration:)](createmlcomponents/videoreader/readcamera(configuration:).md)
- [VideoReader.AsyncFrames](createmlcomponents/videoreader/asyncframes.md)
- [VideoReader.CameraAsyncBuffers](createmlcomponents/videoreader/cameraasyncbuffers.md)
- [VideoReader.CameraConfiguration](createmlcomponents/videoreader/cameraconfiguration.md)
