Live data from Hacker News

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

austingil.com

51–60 of 240 posts

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

#51
post #40
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

Any former geocities member us surely aware of the MIDI capability!

Couldn't you play a WAV too? But they were too massive at the time for most peoples bandwidth.

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

#53
post #46
post #28

Earlier quoted context omitted.

I find it incredible that people still think HTML, a spec first published in 1990 when we were using 386s with CGA monitors, shouldn't have evolved to utilise some of the modern features available on today's computers and phones. Why wouldn't we want to be able to do useful things on the web with our devices?

I'm not arguing that the trend is a bad one, but it does come with downsides that are significant for some. For instance, I certainly don't want every random website I might visit to have access to these abilities. It just strikes me as an unnecessary security risk.

It's a shim on top of a file picker dialog. Instead of taking a picture and picking the file from its saved location, it skips a step and lets you directly supply the file from the OS's camera app.

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

#54
post #40
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

Any former geocities member us surely aware of the MIDI capability!

Not just playing MIDI files, but interfacing with MIDI controllers (including ones that weren't designed to be accessible over the web leading to RCE).

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

#55
post #35

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.…

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

Most of these are not available in chrome or firefox.

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

#56

Earlier quoted context omitted.

> 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’re down. I want to see your site! When can I see it? And your domain is really cool too. I presume it’s like a self deprecating math joke.

I had a typo in url (wrote .xys instead of .xyz, fixed now), thanks for letting me know.

The .xyz pun was not intended, but it does make a lot of sense for a math related app. Thanks for spotting that too!

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

#57

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.…

Why would anyone want, or let, a webpage assume full control of their keyboard?

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

#58

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 used to think the browser could be a sandbox, but its evolution to one has been mighty slow- decades to pick up some basic features any desktop application developer has been able to take advantage of, easily, for decades.

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

#60

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.…

One thing I miss about adobe flash was the software available to create flash games and animations. It was relatively easy to use and felt like it had a good combination of graphical tools and scripting to allow you to create what you wanted I wish there was something similar for but for modern browsers, taking advantage of HTML5 and all the browser API's available now which previously required a plugin like adobe fl…

The Adobe Flash authoring software has a successor called Adobe Animate. I’ve only ever exported to MP4 video files with Animate, but I know Animate has some HTML5 export options. But I don’t know how comfortable it would be to use for creating graphics and animations for actual JavaScript games and/or web applications.
Post reply on HN