How to open phone camera in reactjs

Viewed 12718

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

2 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

As mentioned here, Your service should be served secure, either from localhost or an https connection.

AND in ios>=11 Apple restricts WebRTC to Safari only!

Related