-AAG- 78 Report post Posted May 3, 2018 I was just checking on my games yesterday and realize that no sound or music is playing on Chrome for desktop. Firefox and Edge are working fine. IE never worked. On Chrome for Android sound and music will start playing after the first user input. Firefox works just fine. Did I miss something? Windws, Android, and browsers are all up to date. I'm on the latest version of GameMaker: Studio 1.4 now and having this issues but the games on my catalog where made on 1.4.1763 and still the same thing. Quote Share this post Link to post Share on other sites
terransage 0 Report post Posted May 4, 2018 I have the same problem, using Construct 2. My projects' audio worked in Chrome a few days ago, but now--nothing (unless I press F5; then the sound returns). I tried my games out on other peoples' computers, using Chrome, and had the same result, although all of the other browsers worked fine. It seems something in Chrome changed during an upgrade process, perhaps. At least two other people complained about it in the Scirra (Construct) forum. Quote Share this post Link to post Share on other sites
-AAG- 78 Report post Posted May 4, 2018 I think I figured it out: https://www.theverge.com/platform/amp/2018/5/3/17251104/google-chrome-66-autoplay-sound-videos-mute Frustrating Quote Share this post Link to post Share on other sites
-AAG- 78 Report post Posted May 4, 2018 Here is a a little hack that worked for me. Just ad that anywhere on your game.js. I put it on the very beginning. if(typeof AudioContext != "undefined" || typeof webkitAudioContext != "undefined") { var resumeAudio = function() { if(typeof g_WebAudioContext == "undefined" || g_WebAudioContext == null) return; if(g_WebAudioContext.state == "suspended") g_WebAudioContext.resume(); document.removeEventListener("click", resumeAudio); }; document.addEventListener("click", resumeAudio); } 1 labrat.mobi reacted to this Quote Share this post Link to post Share on other sites
Nygaming 8 Report post Posted May 10, 2018 Is there a way to do this in html5 code? Quote Share this post Link to post Share on other sites
Slicks 0 Report post Posted May 13, 2018 I hit this problem as well. I fixed it by calling resume() when the user presses a button: audioCtx.resume(); If you look at your Chrome console, it will tell you that it created AudioContext in a suspended state, and give you instructions on how to resume it. Quote Share this post Link to post Share on other sites
Nygaming 8 Report post Posted May 16, 2018 @Slicks Could you post an example for me? Thank you Quote Share this post Link to post Share on other sites
alex_h 114 Report post Posted May 16, 2018 They are now temporarily reverting the change.... until October https://bugs.chromium.org/p/chromium/issues/detail?id=840866#c103 Quote Share this post Link to post Share on other sites
atkman 3 Report post Posted March 2, 2019 I had to add a "Click to play" button before the game starts...ugg Quote Share this post Link to post Share on other sites
TMD_Studios 0 Report post Posted March 17, 2019 I've been having the same issue with mobile devices and Safari on my laptop. Chrome, Firefox, and IE seem to be fine... Can this be solved in HTML5? Quote Share this post Link to post Share on other sites