AVRecorder.StartRecording
-------------------------

Starts recording.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVRecorder](component_AVRecorder.md) | [6.1](newinversion61.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "AVRecorder.StartRecording"; AVSession ) 

**MBS**( **"AVRecorder.StartRecording";** /\* Starts recording. \*/  
**$AVSession**) /\* The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVSession | The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). | $AVSession |

### Result

Returns OK or error.

### Description

Starts recording.  
Please call [AVRecorder.SetFilePath](AVRecorderSetFilePath.md) before to define where to put file.   
### Examples

Start Recording:

 Set Variable \[$r ; Value:MBS ("[AVRecorder.SetFilePath](AVRecorderSetFilePath.md)"; AVRecorder::Session ; AVRecorder::FilePath )\]  
If \[MBS ("IsError")\]  
 Show Custom Dialog \["Error"; $r \]  
 Exit Script \[\]  
End If  
Set Variable \[$r ; Value:MBS ("AVRecorder.StartRecording"; AVRecorder::Session )\]  
If \[MBS ("IsError")\]  
 Show Custom Dialog \["Error"; $r \]  
 Exit Script \[\]  
End If  
### See also

- [AVRecorder.Init](AVRecorderInit.md)
- [AVRecorder.IsRecording](AVRecorderIsRecording.md)
- [AVRecorder.SetEncoder](AVRecorderSetEncoder.md)
- [AVRecorder.SetFilePath](AVRecorderSetFilePath.md)
- [AVRecorder.StopRecording](AVRecorderStopRecording.md)
- [IsError](IsError.md)

### Release notes

- **Version 13.5**
    - Fixed a problem with [AVRecorder.AddPreviewWithControl](https://www.mbsplugins.eu/AVRecorderAddPreviewWithControl.shtml) and [AVRecorder.StartRecording](https://www.mbsplugins.eu/AVRecorderStartRecording.shtml) functions when they returned OK instead of the error.

### Example Databases

- [AVRecorder/AV Recorder Record Dictation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AV%20Recorder%20Record%20Dictation.shtml#1ScriptAnchor_)
- [AVRecorder/AVRecorder iOS Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AVRecorder%20iOS%20Test.shtml#2ScriptAnchor_)
- [AVRecorder/AVRecorder](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/AVRecorder/AVRecorder.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 13.5pr6](https://www.mbsplugins.de/archive/2023-10-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Audio and Video Recording for FileMaker](https://www.mbsplugins.de/archive/2016-02-21/Audio_and_Video_Recording_for_/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 9th February 2016 , last changed 19th February 2016

  
[AVRecorder.StartQRCodeDetection](AVRecorderStartQRCodeDetection.md) - [AVRecorder.StopQRCodeDetection](AVRecorderStopQRCodeDetection.md)

[HTML Version](AVRecorderStartRecording.shtml)