html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

Compatibility - Android and IOS webview: Camera streaming is not supported in the browser

Open sajesh1985 opened this issue 2 years ago • 8 comments

I am using this plugin to scan qr codes ,everything works correctly in the desktop , android and ios mobile browsers, but when I invoke the website inside Android/IOS webview I get error “Camera streaming not supported in the browser” I am trying to show the camera in an iframe.

  • OS: Android/IOS webview

sajesh1985 avatar Sep 13 '22 00:09 sajesh1985

well, are you sure webview supports live camera?

ROBERT-MCDOWELL avatar Sep 13 '22 00:09 ROBERT-MCDOWELL

Same issue on WKWebView @ROBERT-MCDOWELL IOS 14.5+ already support webrtc, But I got live boardcast black screen when trigger getUserMedia

owen800q avatar Sep 18 '22 15:09 owen800q

Webrtc does not have to do with the OS but with the browser. I know that webview does not allow camera/mic access.

ROBERT-MCDOWELL avatar Sep 18 '22 17:09 ROBERT-MCDOWELL

I am able to get this working on Android by enabling the device access permission, this error was due to the weburl that I was invoking was hosted on local IIS, when I deployed to the sys server it worked. IOS is still a problem it shows black screen

sajesh1985 avatar Oct 18 '22 19:10 sajesh1985

I am able to get this working on Android by enabling the device access permission, this error was due to the weburl that I was invoking was hosted on local IIS, when I deployed to the sys server it worked. IOS is still a problem it shows black screen

Did you find a solution for this? I'm also having a blank screen on IOS webview. Asks for permission then no video.

caglarvarol avatar Nov 15 '22 12:11 caglarvarol

IOS display problem, you solved the code

burning110-lab avatar Nov 26 '22 15:11 burning110-lab

I am able to get this working on Android by enabling the device access permission, this error was due to the weburl that I was invoking was hosted on local IIS, when I deployed to the sys server it worked. IOS is still a problem it shows black screen

This error occurred when loading Android webview:tile memory limits exceeded, some content may not draw,Do you have this problem here?

burning110-lab avatar Nov 30 '22 09:11 burning110-lab

I had the same error. Turns out it seems to require a secure context (either localhost or https). I was testing on mobile but with a local ip (http://192.168.1.92:3000) so it was not working.

Errorname avatar Dec 03 '23 20:12 Errorname