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

Black screen on some mobile chrome and safari

Open yamaha252 opened this issue 4 years ago • 4 comments

Fix #95

yamaha252 avatar Nov 25 '20 10:11 yamaha252

Thanks for the fix @yamaha252 - we are facing the problem mentioned in #95 as well. @basst314 It would be great if you could merge this and release a new version of the library!

jmeinke avatar Dec 22 '20 09:12 jmeinke

@yamaha252 Could you explain what the problem was? Why are your code changes fixing the problem?

jmeinke avatar Dec 22 '20 09:12 jmeinke

It seems twice execution of navigator.mediaDevices.enumerateDevices causes this issue. I changed WebcamUtil.getAvailableVideoInputs method to avoid execution if there are already video inputs. That's the main change.

yamaha252 avatar Dec 22 '20 09:12 yamaha252

@basst314 Happy new year to you - it would be great if you could merge this sometime soon. Thanks!

jmeinke avatar Jan 08 '21 17:01 jmeinke