Nygaming Posted May 10, 2018 Share Posted May 10, 2018 Google Chrome had an update and now html5 games have no sound. https://developers.google.com/web/up...policy-changes https://www.theverge.com/platform/am...nd-videos-mute https://www.dailydot.com/debug/chrom...y-block-games/ How can I fix this in html5 code? Quote Link to comment Share on other sites More sharing options...
mazoku Posted May 10, 2018 Share Posted May 10, 2018 The same as ios, you activate sound on touch event. Quote Link to comment Share on other sites More sharing options...
onlycape Posted May 10, 2018 Share Posted May 10, 2018 Phaser CE has already solved that problem in version 2.10.5. For other frameworks I dont know. Quote Link to comment Share on other sites More sharing options...
Nygaming Posted May 10, 2018 Author Share Posted May 10, 2018 My games are made in clickteam fusion. I can edit the html5 and js file. Can you show me the touch event that I can add to one of those files? Thanks Quote Link to comment Share on other sites More sharing options...
enpu Posted May 10, 2018 Share Posted May 10, 2018 @Nygaming There is example in the first link you posted: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio Quote Link to comment Share on other sites More sharing options...
Nygaming Posted May 10, 2018 Author Share Posted May 10, 2018 @enpu So just copy and paste this in my html5 file? I want to play sounds/music as soon as my game loads. https://gamenplay.netlify.com/ 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.