Live data from Hacker News

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

austingil.com

181–190 of 240 posts

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

#181

A lot of totally valid opinions out there about this, but I personally _love_ how the browser is becoming a very well-featured sandbox for shipping applications. For personal fun and learning, I'm making a complete 2D video game in ideally less than 1MB. It has 60fps graphics, full spatial audio, and gamepad support, all because the browser has a lot of these APIs that didn't exist when I was starting out my career.…

>A lot of totally valid opinions out there about this, but I personally _love_ how the browser is becoming a very well-featured sandbox for shipping applications.

Unfortunately what's convenient for you as a developer is more often than not hostile and awful UX for me as a user.

Too often, developer convenience trumps good UX.

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

#182
Another cool website that I came across a few days ago is https://vdo.ninja/ (create reusable invite option) which also uses the HTML camera APIs to connect your mobile phone to OBS. Both the audio and video quality I get from my phone is at par or sometimes even superior to my laptop's webcam. This video tutorial(1) explains the setup really well.

Kudos to whoever made this free site and also the modern browser tech for making this possible.

(1) https://www.youtube.com/watch?v=ArVDKf2QK1s

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

#183

A lot of totally valid opinions out there about this, but I personally _love_ how the browser is becoming a very well-featured sandbox for shipping applications. For personal fun and learning, I'm making a complete 2D video game in ideally less than 1MB. It has 60fps graphics, full spatial audio, and gamepad support, all because the browser has a lot of these APIs that didn't exist when I was starting out my career.…

> I personally _love_ how the browser is becoming a very well-featured sandbox for shipping applications. Same. My latest project is a waveform generator for wavetable synthesizers [1]; there are visualizations, as well as handling audio (not real time but still). I was surprised that I could build that as a web app and achieve good UX and performance. [1]: https://merely.xyz/waves

you should talk/reference a bit more about the fourier transform aspect https://www.geogebra.org/m/t9uspumz

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

#184
This and the Web Speech API were quite unexpected things to discover lately. Even quite robust browser support, besides speech recognition missing on Firefox.

Didn't expect to have that easy access to TTS/Speech Synthesis.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...

https://www.google.com/intl/de/chrome/demos/speech.html

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

#185
post #184

This and the Web Speech API were quite unexpected things to discover lately. Even quite robust browser support, besides speech recognition missing on Firefox. Didn't expect to have that easy access to TTS/Speech Synthesis. https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_... https://www.google.com/intl/de/chrome/demos/speech.html

I suspect we're still waiting on Firefox's multi-language speech database in Common Voice to get processed into some useful offline learning models. We can't be that far away from a googleless speech input world.

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

#186
post #95
post #78

Earlier quoted context omitted.

HTML should be a document language, yet it has barely improved in that in the last 20 years and is still missing really basic features (e.g. long-form document support). I'm not sure what features you mean. Most things I can think of for long form content are right there in HTML. Instead it can talk to my Bluetooth devices and my camera. Something went very wrong in the evolution of HTML. That's not HTML though. That…

> I'm not sure what features you mean. Most things I can think of for long form content are right there in HTML. If you publish a book as plain HTML scrolling becomes impossible, as any tiny movement will catapult you numerous pages forward. You can't bookmark a scroll position either and neither can you link it. If you split the document into multiple HTML files, you complete break the ability to search across the w…

Those are all flaws in browsers, not HTML. In the case of bookmarks that's not even a part of HTML.

There's nothing stopping browser vendors solving the problems you're talking about but then you'll probably worry that browsers are becoming operating systems or something.

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

#187
post #35

Earlier quoted context omitted.

And theres a LOT more APIs than people realize: https://developer.mozilla.org/en-US/docs/Web/API Some interesting ones: - Screen recording/capture - Battery status - Barcode Detection - Bluetooth - Sensors (e.g. Accelerometer) - Wake/screen lock - Color picker - Vibration - MIDI - USB - Contacts picker - Presentation (AirPlay, Chromecast) - Virtual reality

USB/Bluetooth is underrated because it means you can ship hardware products that can have their firmware updated or connect and sync with a web service without having to build/ship/maintain a whole app for it that will eventually stop working after an OS update.

Hell, you can even root an android phone via the browser! https://protonaosp.org/install/web

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

#188
post #102
post #97

Anyone else denied access to the page due to rate limiting?? >> Check back later once traffic has gone down.

Yeah, looks like it's been slashdotted. (Or whatever the appropriate verbing of an aggregation site is in 2022).

I think its "hugged to death" nowdays

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

#189
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 blank screen on Firefox for Android :(

Agreed! Don't see anything.

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

#190

I can't get over the fact, that he is using "a public internet URL" to tunnel the traffic to his local server, just to watch it on his phone. What he should have done: - Make his local server listen on his local ip like >:3000 instead of just 127.0.0.1:3000 - Connect his cellphone to his local lan with wifi. - Look at the site on >:3000 on his cellphone. I would never make a connection from a public Domain to my loca…

Same. It's very weird that he did that. It is even more work and doesn't bring him any benefit.

I want to know if he had any reason to do so.

Post reply on HN