News for hackers. Stuff that matters.
Re:TIL: You can access a user’s camera with just HTML by cyral on Tuesday September 06, 2022 @12:21PM (#32739303)
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

Re:TIL: You can access a user’s camera with just HTML by lucideer on Tuesday September 06, 2022 @12:30PM (#32739473)
These are all Javascript APIs. I think what's particularly notable about the OP is that it's HTML.
Re:TIL: You can access a user’s camera with just HTML by cyral on Tuesday September 06, 2022 @01:14PM (#32740070)
Yes but the person I'm replying to is talking about JS APIs
Re:TIL: You can access a user’s camera with just HTML by spaghettiToy on Tuesday September 06, 2022 @03:08PM (#32741763)
I'm here for the JS comments.

I'm amazed at how quickly I can throw together a front end feature in JavaScript on my otherwise html site.

Really all of web impressed me over the desktop/app counterparts. I wrote and read to/from a php database with less than 2 hours of time. Laravel has me doing user authentication + useful coding in less than 40 hours after the tutorial.

Re:TIL: You can access a user’s camera with just HTML by naillo on Tuesday September 06, 2022 @12:49PM (#32739737)
Old enough to remember when the accelerometer didn't require permission to access.
Re:TIL: You can access a user’s camera with just HTML by codethief on Tuesday September 06, 2022 @01:48PM (#32740525)
Me too but I'm glad it does now and I don't have fear (web) apps that exploit the accelerometer as microphone.
Re:TIL: You can access a user’s camera with just HTML by adrr on Tuesday September 06, 2022 @02:57PM (#32741573)
It was useful an API to detect if a client was faking their user agent or was a bot. When I worked for a neo bank we abuse all the APIs to detect if client was a real person or not without having to use captchas.
Re:TIL: You can access a user’s camera with just HTML by dheera on Tuesday September 06, 2022 @12:56PM (#32739846)
Yeah you could use the vibration API and accelerometer API as a very low bitrate TX/RX system for devices on the same table and close enough.

No permissions required.

Re:TIL: You can access a user’s camera with just HTML by chrisweekly on Tuesday September 06, 2022 @01:25PM (#32740218)
I vaguely recall there being some early-days accelerometer-based webapps that absolutely destroyed batteries, because the high-resolution accelerometer checks required responsible throttling / debouncing. So gating it behind permissions makes some sense to me.
Re:TIL: You can access a user’s camera with just HTML by whywhywhywhy on Tuesday September 06, 2022 @02:32PM (#32741171)
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.
Re:TIL: You can access a user’s camera with just HTML by david12345 on Tuesday September 06, 2022 @04:52PM (#32743049)
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 by spaghettiToy on Tuesday September 06, 2022 @03:03PM (#32741697)
Is Bluetooth good yet?

I had issues as recent as last year's new products.

But otherwise I love the concept of hardware access with HTML. The embedded guy in me thinks the future is going to be crazy. I can't quite wrap my head around the possibilities.

Re:TIL: You can access a user’s camera with just HTML by autoexec on Tuesday September 06, 2022 @06:01PM (#32743775)
My guess is that hardware access with HTML will mostly bring about remote exploits and massive privacy problems. I disable all of it.

I also keep Bluetooth disabled on my mobile devices. It's used extensively to ID and track people and their devices. For things that don't move and are only ever paired to a single thing (like a speaker) it works fine. Most of the complaints I hear about bluetooth are from people who pair multiple devices to a single source and want to easily switch between them.

Re:TIL: You can access a user’s camera with just HTML by shusaku on Tuesday September 06, 2022 @12:25PM (#32739379)
Any former geocities member us surely aware of the MIDI capability!
Re:TIL: You can access a user’s camera with just HTML by monocasa on Tuesday September 06, 2022 @12:35PM (#32739529)
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 by andyhedges on Tuesday September 06, 2022 @12:31PM (#32739486)
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 by mattl on Tuesday September 06, 2022 @02:16PM (#32740919)
<bgsound>
Re:TIL: You can access a user’s camera with just HTML by tinus_hn on Tuesday September 06, 2022 @01:16PM (#32740091)
Unfortunately many of these leak identifying datapoints so due to abuse they are now blocked.
Re:TIL: You can access a user’s camera with just HTML by megous on Tuesday September 06, 2022 @12:36PM (#32739544)
Most of these are not available in chrome or firefox.
Re:TIL: You can access a user’s camera with just HTML by easrng on Tuesday September 06, 2022 @02:46PM (#32741398)
A lot of those are Chrome-only.