You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when you manually suspend audioContext using its native method: 'suspend()', the Howler state is still 'running'.
Thus when we try to play it again, it doesn't work.
After a while, Howler state will be set to 'suspended'. As so, it will work again. I don't know why.
On iOs, when you unplug headphones, its policy will suspend any audioContext. But here, our Howler state will remain 'running'. Therefore, you cannot play any sound while Howler state is still running.
Regards,
The text was updated successfully, but these errors were encountered:
Same issue.
In the _autoResume function, AudioContext is only resumed when Howler state is 'suspended' or Howler state is 'running' and ctx.state is 'interrupted'.
It loses the case: Howler state is 'running' and ctx.state is 'suspended'. Because when you unplug the headphones on IOS, ctx.state will change to 'suspended' not 'interrupted'.
If we add the condition: self.ctx.state === suspended to the judgement, we can play audio again after unplugging the headphones.
Hi there !
It seems that when you manually suspend audioContext using its native method: 'suspend()', the Howler state is still 'running'.
Thus when we try to play it again, it doesn't work.
https://jsfiddle.net/ykczmoux/15/
After a while, Howler state will be set to 'suspended'. As so, it will work again. I don't know why.
On iOs, when you unplug headphones, its policy will suspend any audioContext. But here, our Howler state will remain 'running'. Therefore, you cannot play any sound while Howler state is still running.
Regards,
The text was updated successfully, but these errors were encountered: