---
title: "captureView(_:startRecordingTo:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avcaptureviewdelegate/captureview(_:startrecordingto:)"
---

# captureView(_:startRecordingTo:)

Tells the delegate that the user has made a request to start a new recording.

## Declaration

```swift
func captureView(_ captureView: AVCaptureView, startRecordingTo fileOutput: AVCaptureFileOutput)
```

## Parameters

- `captureView`: The capture view.
- `fileOutput`: The capture file output.

## Discussion

Discussion If the capture file output is an instance of AVCaptureMovieFileOutput, you start recording by calling startRecording(to:recordingDelegate:) on the capture file output.
