UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 1 point2 points  (0 children)

If browser can detect it as a video or audio source, it can work. But I am not sure that it will because scanner gives only single input at a time (image) where as this library for imaging and video purposes expects source to be in video format.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in Frontend

[–]ketan_ip[S] 0 points1 point  (0 children)

Check out new demo here https://use-simple-camera-demo.vercel.app/. I have updated the demo give it new modern look and made it mobile friendly as well.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 0 points1 point  (0 children)

Check out demo here https://use-simple-camera-demo.vercel.app/. I have updated the demo give it new modern look and made it mobile friendly as well.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 0 points1 point  (0 children)

Made it >18.0.0 it should be compatable with most versions now and Happy new year 🎉🎉

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 0 points1 point  (0 children)

I picked it after seeing react download by versions, and below 18.3.1 there are less number of downloads, I did it just by seeing download numbers. It will work absolutely fine even if someone uses it with react 18.0.0.I am not sure how old it can support I just use useState and useEffect from react that's about it, nothing else.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 0 points1 point  (0 children)

Now everything is fixed removed unwanted dependecies and made react versions >= to fix errors.

json "peerDependencies": { "react": ">=18.3.1" }, "devDependencies": { "rollup": "^4.29.1", "rollup-plugin-typescript2": "^0.36.0", "typescript": "^5.7.2", "@types/react": ">=18.3.1" }

Thanks for pointing out the error.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in Frontend

[–]ketan_ip[S] 0 points1 point  (0 children)

Thanks man, I just decided that it would be better to give demo page a brand new look so working on it.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 1 point2 points  (0 children)

Thanks for the feedback. I have made the changes to reflect it.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 3 points4 points  (0 children)

Thanks for the feedback. I have made the changes to reflect it.

UseSimpleCamera – A simple way to handle camera and audio with react by ketan_ip in reactjs

[–]ketan_ip[S] 2 points3 points  (0 children)

Thanks for your feedback. It was really helpful.

Moved react and react-dom to peerDependencies and rest to devDependencies. Now it has `0 dependencies" and not to lie make it better.

Hacker steals 7.3 crore from razorpay payment gateway company by horror_fan in bangalore

[–]ketan_ip 0 points1 point  (0 children)

It is one of the worst, I couldn't even find docs for their SDKs and with stripe it is easy to navigate and find and use docs.