react-webcam icon indicating copy to clipboard operation
react-webcam copied to clipboard

Return an error when there are no video sources

Open allomorphy opened this issue 4 years ago • 1 comments

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 avatar Jan 18 '20 00:01 allomorphy

@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.

mozmorris avatar Jan 18 '20 09:01 mozmorris