Live data from Hacker News

Firefox 66 to block automatically playing audible video and audio (2019)

hacks.mozilla.org

1–10 of 50 posts

Re: Firefox 66 to block automatically playing audible video and audio (2019)

#6
I recently made a really basic game engine for my dumb games[1] and discovered something interesting about this limitation: Ctrl does not count as a user interaction. I’m guessing because it’s a modifier key.

I wanted my game to have good UX so I cleverly required inputs before any sound would be made. Usually via the game selection screen. But if Ctrl is your “action” key, it doesn’t actually allow the Audio API to work, so you’ll miss some sounds.

I get why this restriction is in place but sometimes it makes good faith attempts at good UX a bit complicated.

[1] https://arcade.pointless.click/?game=bankrun

Re: Firefox 66 to block automatically playing audible video and audio (2019)

#8

I wish it had been ALL video, audible or not.

Would you rather websites keep using animated GIFs instead? Because I think this is why GIFs are still in active use despite being a terrible format in terms of compression/bandwidth: browsers impose all of these limitations on video, which don't apply to GIFs because they're images.

Re: Firefox 66 to block automatically playing audible video and audio (2019)

#10

I recently made a really basic game engine for my dumb games[1] and discovered something interesting about this limitation: Ctrl does not count as a user interaction. I’m guessing because it’s a modifier key. I wanted my game to have good UX so I cleverly required inputs before any sound would be made. Usually via the game selection screen. But if Ctrl is your “action” key, it doesn’t actually allow the Audio API to…

Interesting, I didn’t know that. I decided to standardize on “click to play”, and added some logic to try starting the audio engine again if it didn’t start the first time.
Post reply on HN