Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


Sets the video device to use.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 6.1 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "AVRecorder.SetVideoDevice"; AVSession; Device )   More


Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Device The device name, ID or index. 0


Returns OK or error.


Sets the video device to use.


Sets to use first video device:

Set Variable [$r; Value:MBS("AVRecorder.SetVideoDevice"; AVRecorder::Session; 0)]

Use video device with name "FaceTime HD Camera":

Set Variable [$r; Value:MBS("AVRecorder.SetVideoDevice"; AVRecorder::Session; "FaceTime HD Camera")]

See also

Release notes

Example Databases

Blog Entries

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

AVRecorder.SetScreenInput - AVRecorder.SetVideoMirrored

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat