Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open phone camera in reactjs

I am using 'react-webcam' component in my application. For web it is working for me but in mobile device it is not working. And My client needs that he immediately get to the phone's camera if he click take camera button in mobile device. please anyone help me to fix this issue

Thanks

like image 762
Navaneethan Arun Avatar asked Oct 29 '22 22:10

Navaneethan Arun


1 Answers

There is an rpm package which can be used to open the camera. I have not used this yet.

Just try yourself.

npm package

Thanks

like image 190
dush88c Avatar answered Nov 15 '22 07:11

dush88c