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: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

WebView.InstallUserMediaAccess

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

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.
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

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.




Links
MBS Xojo tutorial videos