Live data from Hacker News

TIL: You can access a user’s camera with just HTML

austingil.com

1–10 of 240 posts

Re: TIL: You can access a user’s camera with just HTML

#3
That is pretty cool. Been wanting to create a site with a blurred backdrop effect around text, but a camera background to simulate an augmented reality style. Wish something like this could work on desktop as well though. It is a shame really that more features don't get encapsulated into elements recently and everything is some JS API that then companies use some bloated framework to utilize.

Re: TIL: You can access a user’s camera with just HTML

#7

That is pretty cool. Been wanting to create a site with a blurred backdrop effect around text, but a camera background to simulate an augmented reality style. Wish something like this could work on desktop as well though. It is a shame really that more features don't get encapsulated into elements recently and everything is some JS API that then companies use some bloated framework to utilize.

You can't do what you're describing with just HTML, but it's only a handful of lines of js to get a media stream from getUserMedia and pipe it into a video element. In fact, it's probably more HTML than js.

Re: TIL: You can access a user’s camera with just HTML

#8
Actually a pity it doesn't work on the non-mobile; many of my computers have webcams now and it is kinda convenient to have this (and of course, you ought to always be able to bypass the camera as a user. really perhaps it should be part of the file picker itself but lol those things are so overloaded already)

Re: TIL: You can access a user’s camera with just HTML

#9
This is a site that shows the camera feed full screen and inverts in with css

https://nega.radioac.dev/

I hacked it together in half an hour to give people a way to look at the uninverted version of my inverted analogue photos with their phones at exhibitions. most people were more excited to play with it on their phone than by the photos I took days making. :'(

[edit oops this javascript ]

Post reply on HN