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.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  

AVRecorder.AddPreviewWithControl

Adds a preview area to the window using placeholder control.

Component Version macOS Windows Linux Server iOS SDK License
AVRecorder 10.3 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes Paid
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

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


AVRecorder.AddPreviewToWindow - AVRecorder.AudioDeviceCount

Feedback: Report problem or ask question.


Start Chat