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 called from within the featurePermissionRequested(string url, string feature) event of the WebView EWO.
Restriction: At the moment only the request for
MediaVideoCapture
is officially supported. Further, untested features can be found under
Qt - WebEngine Feature Permissions