Live data from Hacker News

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

austingil.com

11–20 of 240 posts

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

#11

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)

Works on my desktop, using Firefox 104.0.1.

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

#13
post #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 ]

I'm getting a cert error. Subject is *.fortinet.com, not nega.radioac.dev.

Edit, the second: Disregard. It's definitely a corporate middlebox on my end.

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

#14
post #5

Reason #368 why I cover all cameras and disable mics by default, and only uncover/enable when in use.

You cover your phone camera? This only works on mobile and pops up the native Android/iOS camera which requires you to actually take the picture (and at least on iOS, asks you to confirm you would like to use the photo before going back to the website)

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

#15
post #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 ]

I'm getting a cert error. Subject is *.fortinet.com, not nega.radioac.dev. Edit, the second: Disregard. It's definitely a corporate middlebox on my end.

Works for me.

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

#16
Hyper Text Markup Language

...why is a markup language for hypertext able to control my device's camera? Why have all the relevant standards bodies associated with this language and protocol gotten on board with turning a markup display language into a full-blown OS?

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

#17

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)

Works on my desktop, using Firefox 104.0.1.

Did you by chance click the JavaScript demo that totetsu posted? That demo uses the JavaScript MediaDevices API to stream the camera, which is different than the original post that is a file picker that opens the camera on mobile.

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

#18
post #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 ]

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)

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

#19
post #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 ]

I'm getting a cert error. Subject is *.fortinet.com, not nega.radioac.dev. Edit, the second: Disregard. It's definitely a corporate middlebox on my end.

Maybe you're behind a firewall with some filtering, and it doesn't like the domain name or something? browsers treat '.dev' domains a bit more strictly than the norm, so the browser doesn't like the redirect?? that's just my guess sorry.

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

#20

Hyper Text Markup Language ...why is a markup language for hypertext able to control my device's camera? Why have all the relevant standards bodies associated with this language and protocol gotten on board with turning a markup display language into a full-blown OS?

Because it's the easiest way to distribute software.

The alternative to standards is every browser vendor doing their own thing, and "this website only works on IE". Remember the bad old days of the web where every bank required Windows because their UI was implemented with ActiveX? Standards killed that and now you can view your bank account on Linux.

WebRTC has its security downsides, but probably better than running a binary from the Chinese government as root so you can video call someone.

Post reply on HN