mozmorris / react-webcam

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

Some versions of macbook m1 when i start recording It only shows the loader. #266

Closed ehsantekgenisys closed 3 years ago

ehsantekgenisys commented 3 years ago

Some versions of macbook m1 when i start recording all i can see is loading icon.

it is working fine for safari(if i enable media recorder from experimental feature) But for chrome and safari its showing loader icon.

I am adding a screen recording here to better explain the problem i am facing

https://user-images.githubusercontent.com/34641203/106059024-e473cf80-6113-11eb-8b3c-f73e8a024b98.mov

mozmorris commented 3 years ago

@ehsantekgenisys can you share some of your code?

ehsantekgenisys commented 3 years ago

@mozmorris I figured out the issue I had epocam installed.

The problem with react-webcam is, it selects a third-party webcam by default when I starts recording.

I tried uninstalling epocam and it worked.

This may happen with other users as well when they have a third-party library installed.

I am adding a link for epocam. In case you want to investigate it. https://www.elgato.com/en

mozmorris commented 3 years ago

@ehsantekgenisys I suggest giving your users a list of devices to select from. react-webcam doesn't make any choices or default to a device here - it simply does what getUserMedia does.