setFeaturePermission()
The function allows to permit or deny features within a WebView EWO.
Synopsis
bool setFeaturePermission(string url, string feature, bool granted)
Parameters
| Parameter | Description |
|---|---|
url |
URL for which the permission should be set. |
feature |
The requested feature. |
granted |
Defines if the permission is granted (true) or revoked
(false) |
Return Value
The function return false in case of an error.
Details
The function is most useful when it is called from the ../Native_GEDI/ewo_webview_general.html#ewo_webview_general__featurePermissionRequested event of the WebView EWO.
Restriction:
Currently, only requests for
MediaVideoCapture are officially supported. Other features may
exist but are untested. For more information, see Qt - WebEngine Feature Permissions