AVRecorder.SetVideoOrientation
------------------------------

Sets the video orientation for iOS.

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

MBS( "AVRecorder.SetVideoOrientation"; AVSession; Value ) 

**MBS**( **"AVRecorder.SetVideoOrientation";** /\* Sets the video orientation for iOS. \*/  
**$AVSession**; /\* The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). \*/   
**$Value**) /\* Pass the new orientation.  
Value can be PortraitUpsideDown, Portrait, LandscapeLeft, or LandscapeRight.e.g. "LandscapeLeft" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVSession | The ID for the AVRecorder session as returned by [AVRecorder.Init](AVRecorderInit.md). | $AVSession |
| Value | Pass the new orientation.   Value can be PortraitUpsideDown, Portrait, LandscapeLeft, or LandscapeRight. | "LandscapeLeft" |

### Result

Returns OK or error.

### Description

Sets the video orientation for iOS.  
If the device is rotated, you may need to adjust the orientation of the camera view.  
### See also

- [AVRecorder.GetVideoOrientation](AVRecorderGetVideoOrientation.md)
- [AVRecorder.Init](AVRecorderInit.md)

### Release notes

- **Version 14.1**
    - Added [AVRecorder.GetVideoOrientation](https://www.mbsplugins.eu/AVRecorderGetVideoOrientation.shtml) and [AVRecorder.SetVideoOrientation](https://www.mbsplugins.eu/AVRecorderSetVideoOrientation.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 14.1](https://www.mbsplugins.de/archive/2024-03-19/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 14.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2024-03-12/Neues_MBS_Plugin_141_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 14.1 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-03-12/MBS_Plugin_141_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.1pr6](https://www.mbsplugins.de/archive/2024-03-07/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 1st March 2024 , last changed 1st March 2024

  
[AVRecorder.SetVideoMirrored](AVRecorderSetVideoMirrored.md) - [AVRecorder.ShowPropertyDialog](AVRecorderShowPropertyDialog.md)

[HTML Version](AVRecorderSetVideoOrientation.shtml)