Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Enables user media access.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 10.2 Yes No No No Yes
MBS( "WebView.InstallUserMediaAccess"; Devices )   More


Parameter Description Example value
Devices Which devices to enable.
Pass 1 for microphone.
Pass 2 for camera.
Pass 4 for display.
For multiple values, just add them together.


Returns OK or error.


Enables user media access.
Call once on start of FileMaker to enable user media access.

See AVRecorder.AuthorizationStatusForMediaType to query status for camera/microphone access.


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: "" ]

See also

Example Databases

Blog Entries

Release notes

Created 6th May 2020, last changed 11st May 2020

WebView.InstallMultiFileOpenDialog   -   WebView.IsLoading

Feedback: Report problem or ask question.

MBS FileMaker blog