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
WebView.InstallUserMediaAccess
Enables user media access.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
WebView | 10.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes | Paid |
Parameters
Parameter | Description | Example |
---|---|---|
Devices | Which devices to enable. Pass 1 for microphone. Pass 2 for camera. Pass 4 for display. For multiple values, just add them together. |
1+2 |
Result
Returns OK or error.
Description
Enables user media access.For FileMaker Pro on macOS or FileMaker iOS SDK applications on iOS.
Call once on start of FileMaker to enable user media access.
See AVRecorder.AuthorizationStatusForMediaType to query status for camera/microphone access.
Examples
Installs it, enable in preferences and load an URL:
# Make sure it's installed
Set Variable [ $r ; Value: MBS("WebView.InstallMediaAccess"; 1+2+4) ]
# make sure you have a web viewer with about:blank as URL
# enable via preferences
Set Variable [ $r ; Value: MBS( "WebView.SetPreferences"; "web"; "mediaStreamEnabled"; 1 ) ]
Set Variable [ $r ; Value: MBS( "WebView.SetPreferences"; "web"; "mediaDevicesEnabled"; 1 ) ]
# load some website
Set Web Viewer [ Object Name: "web" ; URL: "https://test.webrtc.org" ]
See also
Release notes
- Version 10.2
- Added WebView.InstallUserMediaAccess function.
Example Databases
Blog Entries
- Neues MBS FileMaker Plugin 10.2
- MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin
- MBS FileMaker Plugin, version 10.2pr7
Created 6th May 2020, last changed 3th February 2022
WebView.InstallMultiFileOpenDialog - WebView.IsLoading
Feedback: Report problem or ask question.
