Skip to content

Conversation

xiaobao66
Copy link

@xiaobao66 xiaobao66 commented Jan 20, 2022

Fixes #1355
On iOS, when you unplug headphones, its policy will suspend any AudioContext and Howler.ctx.state is changed to 'suspended'.
But In the _autoResume function, AudioContext can only be resumed when Howler state is 'suspended' or Howler state is 'running' and Howler.ctx.state is 'interrupted':

} else if (self.state === 'suspended' || self.state === 'running' && self.ctx.state === 'interrupted') {

Originally posted in #1355 (comment)

@paulfernandes
Copy link

paulfernandes commented Feb 15, 2022

@goldfire, is there any plan to merge this into master any time soon? This would be useful to solve a currently known issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Howler state is still 'running' while AudioContext state is 'suspended'
2 participants