react-webcam
react-webcam copied to clipboard
Return an error when there are no video sources
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.
@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.