-AAG- Posted May 3, 2018 Share 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 Link to comment Share on other sites More sharing options...
terransage Posted May 4, 2018 Share 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 Link to comment Share on other sites More sharing options...
-AAG- Posted May 4, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
-AAG- Posted May 4, 2018 Author Share 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); } labrat.mobi 1 Quote Link to comment Share on other sites More sharing options...
Nygaming Posted May 10, 2018 Share Posted May 10, 2018 Is there a way to do this in html5 code? Quote Link to comment Share on other sites More sharing options...
Slicks Posted May 13, 2018 Share 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 Link to comment Share on other sites More sharing options...
Nygaming Posted May 16, 2018 Share Posted May 16, 2018 @Slicks Could you post an example for me? Thank you Quote Link to comment Share on other sites More sharing options...
alex_h Posted May 16, 2018 Share 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 Link to comment Share on other sites More sharing options...
atkman Posted March 2, 2019 Share Posted March 2, 2019 I had to add a "Click to play" button before the game starts...ugg Quote Link to comment Share on other sites More sharing options...
TMD_Studios Posted March 17, 2019 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.