3 ms·
> I would argue that you are misusing the web. It shouldn't matter. Even if auto-playing music is a terrible idea for most sites, there should be a way to ask
by nitwit005 7y ago
> I would argue that you are misusing the web.
It shouldn't matter. Even if auto-playing music is a terrible idea for most sites, there should be a way to ask the user for permission where it is reasonable.
There has been some efforts to create a permissions API, which included MIDI devices (last time I checked), which might be able to support this: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API https://developer.mozilla.org/en-US/docs/Web/API/Permissions...
> You're trying to shoehorn something to do something it wasn't intended
That applies to almost all web content. Even hacker news doesn't fall into the original document browsing usage.
- MR4D 7y ago> there should be a way to ask the user for permission where it is reasonable. Beware the law of unintended consequences - if you did that, every single add would pop up an annoying permission box. ( And before you say “no, ...” remember that there are more unscrupulous ad/malware companies that will prove you wrong. )
- nitwit005 7y agoThere are already a bunch of those pop ups that trigger when a script tries to access the microphone, USB, camera, etc. There just isn't any unified API for asking for permissions.
- bryanrasmussen 7y agoI was working on a SPA that needed to ask location information to tell the user service outages in their area, we spent a lot of time optimizing the permissions asking flow, making sure we didn't ask too often etc. So I think companies with scruples, not malware oriented, or just possessed of good common sense will ask only when necessary.