4 ms·
> ALS, “ambient light events”, would let browsers respond to the light level the laptop, phone or desktop is exposed to if anybody used it. Can someone give me
by pavel_lishin 10y ago
> ALS, “ambient light events”, would let browsers respond to the light level the laptop, phone or desktop is exposed to if anybody used it.
Can someone give me a good, non-gimmicky example of what this would be used for?
- unlinker 10y agoUse a white letters on black background theme in case the user is browsing your site in bed with his lights off? ^_^
- reicher89 10y agoHmm, perhaps a text-heavy site could switch between "night" and "day" modes for ease of reading
- mcdoh 10y agoJust last night I was happy to find that Safari Books Online had a 'night' feature, automatically switching would have saved me thirty minutes of burned retinas.
- marssaxman 10y agoOh god. No no no. I cannot hate this idea hard enough to overcome my fear that someday this kind of thing might actually happen! This would be the browser's job, under user control, not ever the site's job. My computer, my choice, no you don't get to decide that for me just because you are a web page designer.
- TheCowboy 10y agoIt's difficult to pull this off with every website and keep it readable, without any hint from the site. This is why we have CSS for different screen sizes, rather than relying on mobile browsers to make all the decisions, along with an option to view the site in "desktop mode". I do agree that it would be annoying if sites made this decision for users. But I think the more promising use for this could be enabling aesthetically pleasing color palettes that are power consumption optimized. Picture a HN that switches to darker tones of the current colors when you're on a mobile device.
- marssaxman 10y agoI'm already constantly using "readability mode" to strip away as much of the custom styling as I can, because letting designers run riot - and building browsers that obey their wishes - has turned the web into such a mess. Tighter limits and more end-user control would be better. Different people have different preferences about their browsing experience and should be able to control that without having to rely on every last web designer to make helpful choices, because they really just don't.
- dredmorbius 10y agoMy vapourware web browser is tentatively titled "fuck your web designer". It will ignore site-provided CSS. Interested?
- marssaxman 10y agoHa! I would like to give that a try.
- vonklaus 10y agoessentially something like f.lux presumably.
- iambateman 10y agoYeah. Spotify would stop ads if the audio got too low. In the same way, ambient light could be used to make sure an ad is watched. Not saying it's the most important case ever, but it would be important if you needed it
- benologist 10y agoDo you need an example right now or can you wait until someone does something cool with it that's only enabled because the option exists? If we stopped adding new capabilities to JavaScript even as new sensors and w/e go mainstream we'd start needing Flash all over again.
- zghst 10y agoBefore we add any new APIs we need a permissions interface for the web. Many new APIs add creepy data points that the user be aware that they are providing.
- zghst 10y agoMore advanced analytics, tracking your battery + ambient lights + other capabilities...
- gene-h 10y agoProvided one can access sensor data fast enough, cross device tracking[0]. Display an ad that lights up the room in such a way that you can read it with the sensor. Communication across an airgap. If you have two devices with screens and said sensors in a dark room, they might be able to communicate by turning screens on and off. Most speculatively, imaging the environment with compressive imaging[1]. One might be able to flash some patterns on the screen and look at light sensor output to take a picture. Giving web browsers access to sensors on our devices is sort of scary. [0] http://arstechnica.com/tech-policy/2015/11/beware-of-ads-that-use-inaudible-sound-to-link-your-phone-tv-tablet-and-pc/ http://arstechnica.com/tech-policy/2015/11/beware-of-ads-tha... [1] http://arxiv.org/pdf/1305.7181.pdf http://arxiv.org/pdf/1305.7181.pdf
- coroutines 10y agoI like how you ripped out any positivity around the topic :D You are my hero