Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

AVRecorder.AddPreviewWithControl

Adds a preview area to the window using placeholder control.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 10.3 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "AVRecorder.AddPreviewWithControl"; AVSession; WindowRef; ControlName )   More

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0
ControlName The name of the control on your FileMaker form.
e.g. you can place a rectangle there to define the position.
"mymedia"

Result

Returns OK or error.

Description

Adds a preview area to the window using placeholder control.

Examples

Add preview to our layout:

# go to the right layout
Go to Layout [ “Webcam” (LiveStream) ; Animation: None ]
New Record/Request
# pause to actually show the new layout
Pause/Resume Script [ Duration (seconds): ,3 ]
# place preview on the control
Set Variable [ $r ; Value: MBS( "AVRecorder.AddPreviewWithControl"; $$SessionID; 0; "Preview" ) ]
# Start video stream
Set Variable [ $r ; Value: MBS( "AVRecorder.StartPreview"; $$sessionID ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 9th June 2020, last changed 24th February 2022


AVRecorder.AddPreviewToWindow - AVRecorder.AudioDeviceCount