Skip to content

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

Open
xuanduc987 wants to merge 1 commit intogoldfire:masterfrom
xuanduc987:push-rxxyqupszrqx
Open

Fix race condition when calling play() just right after pause() on iOS#1761
xuanduc987 wants to merge 1 commit intogoldfire:masterfrom
xuanduc987:push-rxxyqupszrqx

Conversation

@xuanduc987
Copy link
Copy Markdown

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