# StartRecordingAsync(string, OnStartedRecordingVideoCallback)

> Asynchronously records a video from the web camera to the file system.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windows.WebCam](/engine/6000.0/script-reference/unityengine/windows/webcam.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void StartRecordingAsync(string filename, VideoCapture.OnStartedRecordingVideoCallback onStartedRecordingVideoCallback)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the video to be recorded to.**** (\[OnStartedRecordingVideoCallback]\(/engine/6000.0/script-reference/unityengine/windows/webcam/videocapture/onstartedrecordingvideocallback)): Invoked as soon as the video recording begins.
