basst314 / ngx-webcam

A simple Angular webcam component / pure & minimal, no flash-fallback
https://basst314.github.io/ngx-webcam/?
MIT License
228 stars 104 forks source link

Camera switch issues and black screen #178

Open swatisinha-mis opened 10 months ago

swatisinha-mis commented 10 months ago

We are facing some issues related to the camera device list when we try to get it. The problem is that when we try to get the video source list it sometimes gives us half the device (Web Chrome, Android Chrome and on iPhone Safari and Chrome) or sometimes empty data in the object (on iPhone Safari and Chrome) returns. We are also facing camera switch issues during live demo that is when I do not select camera from camera list it automatically opens back camera for streaming or when I select any camera option it opens back camera by default in Android but it shows up black Screen in iOS and sometimes even in Android but streaming is perfectly fine in background with back camera on.

I am using following version mentioned below:

Angular : version 14.2.0 ngx-webcam : ^0.4.1

How to resolve this? Please help us.