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
- Version 14.4
- Fixed a problem with AVRecorder.AddPreviewWithControl positioning the layer for FileMaker 21.
- Version 13.5
- Fixed a problem with AVRecorder.AddPreviewWithControl and AVRecorder.StartRecording functions when they returned OK instead of the error.
- Fixed a problem with AVRecorder.AddPreviewWithControl picking wrong window if layout and window had same name.
- Version 11.2
- Fixed problem on Windows with AVRecorder.AddPreviewWithControl and AVRecorder.AddPreviewToWindow not using the FileMaker window, but a separate one.
- Version 10.5
- Fixed crash with AVRecorder.StartPreview, AVRecorder.AddPreviewWithControl and AVRecorder.AddPreviewToWindow if you call those twice.
- Version 10.3
- Added AVRecorder.AddPreviewWithControl function.
- Added rotation parameter for AVRecorder.AddPreviewWithControl function.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 14.4pr1
- MBS FileMaker Plugin, version 13.5pr6
- MBS FileMaker Plugin, version 11.2pr7
- MBS FileMaker Plugin, version 10.5pr6
- What is new in the MBS FileMaker Plugin Version 10.3
- MBS FileMaker Plugin, version 10.3pr10
- AVRecorder on iOS
- MBS FileMaker Plugin, version 10.3pr3
This function checks for a license.
Created 9th June 2020, last changed 24th February 2022