Jump to content

Regarding autoplay-policy in Chrome October 2018


ftguy2018
 Share

Recommended Posts

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio

Will this be a problem to play sound using Panda2 sound engine in October ? Currently the console is saying :

 

audio.js:85 The Web Audio autoplay policy will be re-enabled in Chrome 70 (October 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu
staticInit @ audio.js:85
 

Link to comment
Share on other sites

I have added small check to mousedown and touchstart events, that's checks if the audio context state is suspended and will then try to resume it.

This would still mean that you have to have user-gesture in your game, before you can play any audio.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...