mozmorris / react-webcam

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

Return an error when there are no video sources #187

Open allomorphy opened 4 years ago

allomorphy commented 4 years ago

When attempting to run in an "installed" PWA, getUserMedia returns no video input devices in UIWebView or WKWebView and therefore https://github.com/mozmorris/react-webcam/commit/a53efc0ae24001fdc6d894cea5b4c9d70fb3dc4b#diff-d8078d1b576441b8631d4990ed3f8390 does not return any error.

mozmorris commented 4 years ago

@allomorphy thank for posting this issue and your detailed email.

I will take a look at returning an error when video sources are not detected, which will help your use case.