Ar.js through WebView

android

#1

Hi guys!

I’m trying to output via the WebView example of script ar.js (https://github.com/jeromeetienne/AR.js/blob/master/README.md)

Here link to this example - https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html
In Chrome on my device (Android 8) works fine, but via WebView i get error
Webcam Error
Name: NotAllowedError
Message: Permission denied

On console i get this error
chromium: [ERROR:web_contents_delegate.cc(179)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.

Based on the information that I found on the Internet, I guess that this indicates a problem with webrtc.

Does anyone have any idea what I might have a problem with?


#2

Try implementing WebChromeClient on your WebView.