mozmorris / react-webcam

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

The webcam is not displayed in debug mode on IOS #304

Open MaxNicks opened 3 years ago

MaxNicks commented 3 years ago

Hello!

There was a problem with the fact that in debug mode when connecting an IOS device, the webcam is simply not displayed. At the same time, everything works well from the computer. Has anyone come across a similar one?

heyman333 commented 3 years ago

Are you testing on localhost(http://)? Make sure you are using https

akesh-1997 commented 3 years ago

Hi.. I've faced same issue. I'm using this library for react web app. camera is working perfectly on Android devices. But in IOS devices not showing camera and can not recording. any one know to solve this? & how to debug this.?

errorinc0de commented 2 years ago

Facing the same issue, doesn't work in iOS. Tried granting the permissions even, didn't work.

mozmorris commented 2 years ago

Can someone explain the debug mode? I can successfully connect three different iPhone versions to my Mac and debug via Safari. This has never been an issue. Is this the debug mode being referred to here?

rakhahidayat commented 2 years ago

Hi, i've faced same issue, on android with Chrome and Firefox its work well, but on iOS i've try using Firefox, Chrome and Safari the permission already popup and im granted it, and the light indicator to open cam is turn on. I've try to scan a barcode and got the return value, but why it is not showing the camera image on the page. Anyone know to fix this ?

theelbowclaps commented 2 years ago

If you are testing on localhost, make sure you have the Allow Media Capture on Insecure Sites enabled. It's located at the top lefthand corner of the Web inspector. Once the option is checked, reload the page.