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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
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 |
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" |
Returns OK or error.
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 ) ]
This function checks for a license.
Created 9th June 2020, last changed 24th February 2022