Almost every title will have to be updated.
When Google updated Chrome to automatically block autoplay videos last week, it was seen as a victory for internet-goers who long endured annoying advertisements. But what most people didn’t consider is how the changes would affect other content. It now appears the Chrome 66 update has had some unintended consequences that threaten web-based games.
Prior to the update, game audio would either start when a webpage loaded, or more commonly, after the user pressed “play.” With the latest version of Chrome, games created using any HTML5 engine—Pico-8, GameMaker, Unity, or Phaser—don’t play sound. In many cases, audio won’t even play even when a game requires users to “click to play.”
Most web games already have a ‘click to play’ button (to gain keyboard focus) but Chrome won’t allow those game to play audio unless their click method specifically resumes the AudioContext (and few do, because until now there was little reason to).
— Bennett (@bfod) May 7, 2018
Foddy told the Daily Dot the updates required aren’t difficult, but he suspects most developers don’t have the components needed to make them.
He explained updating the code won’t take much work, provided that, “one, you have access to all the servers the game is hosted on; two, you still have your source code; three, you made the game either using raw JS/HTML or an engine that has been recently updated to respect this new policy (and the updates didn’t break your game in some other way; and four, you have time to go through all your projects and update them.”
“Naturally, this means only a tiny minority of existing games will be updated, even if it is not much of an issue for developers of future games on contemporary engines and libraries,” he added.
While we don’t know how many games are affected, Foddy says it’s “probably millions.” His immensely popular and undoubtedly frustrating ragdoll game QWOP was affected by the update. But Foddy was lucky. He built the title on his own server and was able to fix it with little effort. Others aren’t so fortunate.
Several prominent video game developers took to Twitter to voice their frustrations about the new Chrome update. Among those is Terry Cavanagh, who has created more than two dozen games including the hit titles VVVVVV and Super Hexagon. He says Chrome 66 “broke” his in-browser creations.
Chrome’s audio update broke my html5 stuff too. I miss flash 🙁 https://t.co/oQdqOuNm6N
— Terry (@terrycavanagh) May 7, 2018
The creator of the critically acclaimed title Stephen’s Sausage Roll, Stephen Lavelle, also noted his games had been affected by the update.
Ah fuuck sake. I had just in the last year started to begin to trust that I could reliably use audio in the browser (after years of reticence). So much for that…looks like the chrome update broke all of the audio in my html5 games as well. https://t.co/gT6n9pz0VT
— Stephen Lavelle (@increpare) May 7, 2018
Indie video game hosting site itch.io was forced to post instructions on how to enable its “click to play” feature so audio would play on its titles.
Are you having trouble with HTML5 game audio not working from the recent Chrome update? You can enable "Click to play" across all games from your account settings: https://t.co/tEq3G5ttMS
— itch.io (@itchio) May 7, 2018
Even specific video game accounts are being forced to address concerns from gamers.
We're looking into to sound issues across King games – hopefully you'll be able to enjoy the sounds soon. The issue should only be on Google Chrome so if you want to get to the sounds right away, consider changing browser types.1/2
— Pet Rescue Saga (@PetRescueSaga) May 7, 2018
Influential blogger and former Kickstarter Chief Technology Officer Andy Baio hit out at Google and urged the company to reconsider how it blocks autoplay audio.
— Andy Baio (@waxpancake) May 7, 2018
The developers affected by the update aren’t necessarily opposed to Google preventing autoplay videos from blaring audio—they just want the tech giant to come up with another solution. Foddy suggests a mute button in tabs that is enabled by default (you can already manually mute individual tabs on Chrome) or by adjusting code to make it more friendly for games that already have a “click to play” button.
“Or they could allow annoying ads to be blacklisted, the way actual adblockers work,” Foddy said. “I’m sure there are dozens of options that would preserve our cultural heritage while muting annoying ads.”
“The reason this change is objectionable is that when we make games for the web, which is built on international open standards, we expect them to remain playable for a long time (if not forever),” he continued. “All this work exists on independently-run servers and complies with open web standards, and Google does not have the moral right to unilaterally kill it… Especially not when the only reason for it is that there are some annoying ads out there.”
UPDATE: I said in this thread that I'd realized Google posted autoplay-block documentation of Sept 2017 and I just didn't see it. I checked https://t.co/KaGiKR9Aoz and ACTUALLY NO. THE WEBAUDIO BITS WEREN'T THERE IN SEPTEMBER THEY WERE EDITED IN LATER https://t.co/olqys9YT0E
— mcc (@mcclure111) May 7, 2018
It’s unclear when Google first warned developers about how the changes would impact games on its browser. Video game developer Andi McClure pointed out on Twitter that information about WebAudio API was not originally included in the company’s post about blocking autoplay videos. It appears those details were added later with code to make the necessary changes.
A very interesting thing about the policy is how it's carefully tailored in such a way it will not affect *Google's* audiovisual content site—YouTube—but *will* affect my site (https://t.co/z3QZrUzGd6). The Chrome autoplay now constitutes a market barrier to entry for AV content pic.twitter.com/b0dvN4a5uY
— mcc (@mcclure111) May 7, 2018
It’s important to note that Chrome doesn’t block autoplay videos on all websites. The company said it allows autoplay for “over 1,000 sites where we see that the highest percentage of visitors play media with sound.” This exception will likely have little impact on indie game developers.
Google does say it will start enabling sound by learning people’s preferences. So if someone enables audio on an autoplay video from the same site multiple times, Chrome will enable audio on that site by default. Of course, developers will still need to make adjustments to their code to benefit.
Update 6:26pm CT, May 7: A Google spokesperson confirmed in a statement to the Daily Dot that the most recent version of Chrome can present problems for game developers.
“With Chrome’s new autoplay policies, developers shouldn’t assume that audio can be played before a user gesture,” the statement said. “With gaming in Chrome, this may affect Web Audio. We have shared details on how developers can do to address this, and the design for the policy was published last year.”