goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.74k stars 2.22k forks source link

sounds are not played at all in Version 70.0.3538.102 if users are checking other content in different tabs #1083

Closed tywang2006 closed 4 years ago

tywang2006 commented 5 years ago

Sound is not played in chrome not matter mute or unmute after opening and viewing other tabs in chrome for a while

themoonrat commented 5 years ago

If I go to https://howlerjs.com/ and run the basic functions test, they all seem to kick off ok even in another tab...

tywang2006 commented 5 years ago

I bet it might be related to chrome auto play policy, my machine is fine but my colleague doesn't have sounds

tywang2006 commented 5 years ago

I had this issue again and my colleague kept getting this issue, do you think it is related _autoSuspend() function? it suspends sounds after 30 seconds?

goldfire commented 5 years ago

@tywang2006 The auto suspend feature only suspends when no sounds have played for 30 seconds. I'm not seeing this either, we need a test case.