4 ms·
I think sites should simply have to ask for audio permissions like they already do for camera, location or microphone. The browser trying to figure out if I in
by donatj 9y ago
I think sites should simply have to ask for audio permissions like they already do for camera, location or microphone.
The browser trying to figure out if I intended to play audio is way too error prone versus me just asking.
I work on an audiobook player as a developer have been fighting this junk on iOS for years, it’s nothing but trouble. If I could just secure a permission to play audio worry free it’d make my life so much easier. Right now we need to ensure that all our audio is triggered by a click event, and if it gets too many steps away from the click event itself, everything breaks. It’s literally defined and limited how we can abstract our code.
- MrMember 9y agoMore granular permissions would be great. I would love to have a whitelist for audio, video, any sort of animation, etc.
- pietroglyph 9y agoThis seems to be the right way to go... Chrome's current approach[0] is all heuristic and no user input. I think a quick "Allow" with an optional "Remember Me" would be both easier to implement and less confusing than what they have (also not a huge pain for web developers.) [0]: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes https://developers.google.com/web/updates/2017/09/autoplay-p...
- digi_owl 9y agoGoogle's ongoing approach is to remove the human from the loop. And more and more human facing projects seems to follow suit.
- bsimpson 9y ago"Any sort of animation"? =( That would make most good UIs unusable. UI animation and audio aren't remotely the same category of interruption.
- firmgently 9y agoMaybe they aren't the same category but there is an indirect link (for me) in that they are both often superfluous and have negative effects on my subjective experience (eg audio: annoyance/data usage, animation: annoyance/slowdown). I enjoy animation, in art and film. I don't want it in my UIs and always turn it off completely when I have the option. I hated it when Photoshop introduced animated zoom, inertia panning etc, but thankfully could turn those off. It's like a surgeons scalpel with a springy handle, it adds a level of abstraction and indirectness that I don't enjoy. I also prefer to use a Bic Orange razor rather than an over-engineered, sprung, 5-bladed one, because I get direct rather than fuzzy feedback. The animations in MacOS are honestly a large reason why I don't like it and only use it when I have to. One of the arguments that is often used to justify UI animation is that it helps relate one component to another. Ok so if for some reason I'm unable to work out that the icon I just clicked in the dock caused the application it represents to open, maybe seeing the animation would help. Once. Then I know, so why do I need to see it tens of thousands of times after that, forever re-educating me on this complex relationship of interface components. When I click a button, I just want it to do its job. Not do a little dance for me first. I'm trying to get stuff done. One of the first things I do with any new Android phone or ROM (after enabling Developer Options) is to turn off all interface animations. Any of us who have worked with designers or worked as designers ourselves (me, both - and I've made the egotistical mistake I am calling others out for, sure) know that far too often, animations are made because some people think they look 'cool'. Then they come up with back-justifications for them. I may not be representative of the majority but "That would make most good UIs unusable" couldn't be less true for me.
- robin_reala 9y agoYou can disable animations in macOS and iOS too though, and that also sets the prefers-reduced-motion media query to true in Safari. Bootstrap has just added support for that, but it’s simple to add the same to any web app you’re building (typically you’d use a CSS variable for your default animation speed, and set it to 0 inside the media query).
- justwalt 9y agoI think most of the animations in MacOS are informative and there aren’t many I can think of that are needlessly lengthy or intrusive. The bouncing application icon lets you know the know your app’s status as it opens, and it doesn’t delay your access to a program. The window spread shows you exactly where each window will be placed so that you can quickly find the one you want, and so on. What animations aren’t you a fan of?
- Buge 9y agoWhen I click the upvote button in Hacker News, and the upvote button disappears, would that be considered an animation?
- lsh 9y agoI don't think so. Definitely a state transition though. If on click it went grey then disappeared it miiight be considered animated.
- chatmasta 9y agoNo because there is nothing like -WebKit-transition on it.
- pilif 9y agoThen people would go back to doing their animations with JS at the cost of more CPU usage, worse frame rate and worse battery life. Finding out whether JS is currently animating an element is about as hard as solving the halting problem.
- nitrogen 9y agoJS timers and element modifications could be rate limited. Far far far cry from the halting problem.
- Ajedi32 9y agoSound is already a permission: chrome://settings/content/sound Video is, oddly enough, not, even though "images" are. "Any sort of animation" seems kinda tough to implement without completely breaking just about every modern site. Enforcing it would require, at the very least, disabling JavaScript and crippling CSS.
- jasonkostempski 9y agoA whitelist assumes you'll always want all media on a domain to autoplay all the time, which is very likely not the case. I have autoplay disabled in Firefox, even animated gifs have to be started manually, which is exactly what I want, it's the only way to completely avoid surprises. I've heard this is not currently possible in Chrome which seems crazy to me.
- angel_j 9y agoA Web Permissions API would be sweet, and only a decade behind mobile...
- pjmlp 9y agoEverything on the Web is a couple of decades behind native development. Given the failures of Web based OSes, where even ChromeOS had to reach for Android native apps, it shows we will never get there.
- angel_j 9y agoMobile didn't become "native" until the big players dropped their "open web" promise to throw billions at mobile. They could very easily have synthesized the two, but the profit motive and control of OS/Browser specs was too much for them. The "open web" was ahead of "native" mobile until the point of apostasy. Still, Mozilla could have long ago pushed a permissions API that put all web app permissions in a single modal. Instead, of course, Mozilla chased mobile (fail) and an endless sort of silly projects nobody asked for (remember web identity?).
- yAnonymous 9y agoThe very last thing we need is even more permission popups.
- oneeyedpigeon 9y agoIt would be OK if handled with a preference where the user could choose between 'always autoplay', 'never autoplay', 'ask me whether to autoplay each and every time'. Plus the ability to vary that setting on a site-by-site basis.
- logicallee 9y agoThis isn't really related but can I set Chrome somewhere to send a header to all servers saying "Yes I agree to get cookies" so that sites won't waste 10 seconds of my life making me click OK on an overlay on top of whatever I was trying to read? (If 1 billion people spend 10 seconds 100 times over the course of a year or two - a reasonable guess for how many sites they might visit over 2 years which use cookies - this is 277,777,778 hours spent on annoying busy work. We might dollarize this to $2.7 billion in wasted user time / annoyance.)
- esnard 9y agoEach website has its own implementation for the cookie notice, so it's unlikely to be possible for Chrome. I guess a Chrome extension listing all implementations for major websites could work though.
- moqster 9y agotheres a list available in ublock. just activate it in the settings.
- logicallee 9y agoI don't use ublock. Anyway I request that Chrome as a first party allow me to select "I agree to all cookies" and then have it sent that as a header or something else. This really is something that only Chrome and Firefox etc can do. Preferably in the same way :)
- swebs 9y agoOr even better, an option to select "I don't consent to non-exempt[1] cookies. Serve me the cookie-less page" [1] http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm
- deleted 9y ago[deleted]