Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cyral
on Sept 6, 2022
|
parent
|
context
|
favorite
| on:
TIL: You can access a user’s camera with just HTML
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)
lelandfe
on Sept 6, 2022
[–]
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...
anamexis
on Sept 6, 2022
|
parent
[–]
OP's approach doesn't display the camera image on-page at all.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: