6 ms·
And theres a LOT more APIs than people realize: https://developer.mozilla.org/en-US/docs/Web/API https://developer.mozilla.org/en-US/docs/Web/API Some interest
by cyral 4y ago
And theres a LOT more APIs than people realize: https://developer.mozilla.org/en-US/docs/Web/API 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
- shusaku 4y agoAny former geocities member us surely aware of the MIDI capability!
- andyhedges 4y agoCouldn't you play a WAV too? But they were too massive at the time for most peoples bandwidth.
- mattl 4y ago<bgsound>
- monocasa 4y agoNot just playing MIDI files, but interfacing with MIDI controllers (including ones that weren't designed to be accessible over the web leading to RCE).
- lucideer 4y agoThese are all Javascript APIs. I think what's particularly notable about the OP is that it's HTML.
- cyral 4y agoYes but the person I'm replying to is talking about JS APIs
- spaghettiToy 4y agoI'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.
- megous 4y agoMost of these are not available in chrome or firefox.
- naillo 4y agoOld enough to remember when the accelerometer didn't require permission to access.
- dheera 4y agoYeah 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.
- chrisweekly 4y agoI 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.
- codethief 4y agoMe too but I'm glad it does now and I don't have fear (web) apps that exploit the accelerometer as microphone.
- adrr 4y agoIt 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.
- tinus_hn 4y agoUnfortunately many of these leak identifying datapoints so due to abuse they are now blocked.
- whywhywhywhy 4y agoUSB/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.
- spaghettiToy 4y agoIs 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.
- autoexec 4y agoMy 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.
- david12345 4y agoHell, you can even root an android phone via the browser! https://protonaosp.org/install/web https://protonaosp.org/install/web
- easrng 4y agoA lot of those are Chrome-only.