mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.63k stars 281 forks source link

Permissions popup is not shown if `audio=true` #394

Open chalagashvili opened 6 months ago

chalagashvili commented 6 months ago

Please follow the general troubleshooting steps first:

Bug reports:

Minimal reproduceable example: https://codepen.io/iraklindor/pen/JjzdPRL

Currently we see following:

GIVEN we have simple case like this:

<Webcam audio />

AND user has microphone permission on the system turned off for google chrome WHEN user goes to the camera page THEN the permissions popup is not shown AND camera is not working

Tested on iphone and android devices with chrome, both behave same way as described above. Had couple of desktop complaints too.

My question is, is this an intended behavior or should permissions popup be always shown?

mozmorris commented 6 months ago

@chalagashvili if permissions are switched off at a system level, a popup will not appear.

I have just tested this on an iPhone running the latest iOS. If I "Deny" audio and camera, no popup. If I set to "Ask", the permissions popup appears.

Note, this is not something react-webcam specific but related to any application using the getUserMedia api.