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: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  

AVRecorder.SetVideoDevice

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 { ; DesiredWidth; DesiredHeight } )   More

Parameters

Parameter Description Example Flags
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Device The device name, ID or index. 0
DesiredWidth The pixel width you like to have.
Only used on Windows to pick a specific resolution if available.
Otherwise we usually pick highest available resolution.
1920 Optional
DesiredHeight The pixel height you like to have.
Only used on Windows to pick a specific resolution if available.
Otherwise we usually pick highest available resolution.
1080 Optional

Result

Returns OK or error.

Description

Sets the video device to use.

Examples

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 2nd December 2021


AVRecorder.SetScreenInput - AVRecorder.SetVideoMirrored

Feedback: Report problem or ask question.


Start Chat