Hacker News new | past | comments | ask | show | jobs | submit login

Note that this uses the JavaScript MediaDevices API to stream the camera, which is different from OP's link (which is a file picker input that launches the mobile camera instead of going to the photo gallery)



However, ‘filter: invert(1)’ on top of the OP’s approach should do the same.

https://developer.mozilla.org/en-US/docs/Web/CSS/filter-func...


OP's approach doesn't display the camera image on-page at all.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: