---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/videoreader/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

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

## Declaration

```swift
func applied(to url: URL, eventHandler: EventHandler?) async throws -> VideoReader.AsyncFrames
```

## Parameters

- `url`: A video file URL.
- `eventHandler`: An event handler.

## Return Value

Return Value An async sequence of VideoFrames.
