Skip to content

Fix race condition when calling play() just right after pause() on iOS #1761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xuanduc987
Copy link

Issue/Feature

Fix race condition when calling play() just right after pause() on iOS

On iOS, a looping sound with html5:true fails to loop intermittently.

Related Issues

Solution

Calling play() in next macro task by wrapping playHtml5 in setTimeout

Reproduction/Testing

I can reproduce the bug pretty frequently with somewhat long audio file.

Breaking Changes

N/A

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.

1 participant