AVRecorder.ClosePreview
-----------------------

Closes the preview view.

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

MBS( "AVRecorder.ClosePreview"; AVSession ) 

**MBS**( **"AVRecorder.ClosePreview";** /\* Closes the preview view. \*/  
**$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

Closes the preview view.  
### Examples

Close preview:

 MBS ( "AVRecorder.ClosePreview"; $AVSession )  
### See also

- [AVRecorder.Init](AVRecorderInit.md)
- [AVRecorder.StartPreview](AVRecorderStartPreview.md)

This function checks for a license.

Created 18th February 2016 , last changed 18th October 2016

  
[AVRecorder.CaptureStillPhoto](AVRecorderCaptureStillPhoto.md) - [AVRecorder.CurrentQRCode](AVRecorderCurrentQRCode.md)

[HTML Version](AVRecorderClosePreview.shtml)