WebView with Audio/Video permissions

See original GitHub issue

Hey. We have a web-chat with video and audio communications. At the time of the call, permission requests occur. But just not in the web view. If you do the resolution of audio / video at the application level, then this of course will not help. If you call the method navigator.mediaDevices.getUserMedia ({audio: true, video: true}) through the injection of JS, then there is no result either (undefined). Does this library solve it somehow?

<CustomWebView
      originWhitelist={['*']}
      ref={webviewRef}
      allowsFullscreenVideo
      allowsInlineMediaPlayback
      heightDevice={height}
      source={{
        uri: 'https://webcamtoy.com/ru/',
      }}
    />

This is problem for Ios and Android, both platform

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

4reactions
afilpcommented, Feb 11, 2020

I cannot hear audio (HTML5) inside the WebView either. Is there a solution to this please? Thanks.

1reaction
amsimoescommented, Jun 3, 2020

@divy-work were you able to solve getUserMedia issue by asking CAMERA permission?

I’ve asked it using expo-permissions module to no avail, still appears this: MicrosoftTeams-image

Website is https://quagga2-react-example-hax72clwm.now.sh/ if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android webview camera and microphone permission granted ...
You can not use a microphone and camera directly with webView for that you need to add extra permissions MODIFY_AUDIO_SETTINGS and also ...
Read more >
Access camera and microphone in WKWebView
I am trying to access camera and microphone in WKWebView. I tried many ways but it didn't work. I tried injecting js in...
Read more >
Webview camera and microphone permissions : r/androidapps
Hi guys, anyone has resolved the problem to set the permissions to webview? In my webview I have a video call app that...
Read more >
WebRTC in WebView - Build Live Mobile with JavaScript
It will ask for permission to access the Camera and Microphone. Allow said permissions. The project should now run. It should operate as...
Read more >
BBB Audio and Video not working in webview app (Android)
We have created a webview app (android), and receiving audio-video permission on first use, but when user is starting a BBB meeting in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found