Camera not working in Webview
-
Using a webview in QML, testing with sites like: https://webcamtests.com/ the camera does not appear.
Trying the same site on the regular morph browser works as expected.
I've already set "camera" as one of the policy_groups.
What am I missing?
-
Finally figured it out. Well... kind of.
The solution is to not use the Webview, but instead WebEngineView, and make sure to include the onFeaturePermissionRequested method.
In conclusion, just steal the code from the discord app. -
@ari said in Camera not working in Webview:
Using a webview in QML
What exactly are you using when you say "webview" here?
-
@dobey I'm using the Ubuntu.Web WebView in a clickable qml project. But actually importing "Morph .Web" as... well actually its because you said so.
-
-
Finally figured it out. Well... kind of.
The solution is to not use the Webview, but instead WebEngineView, and make sure to include the onFeaturePermissionRequested method.
In conclusion, just steal the code from the discord app. -