Skip to content
New issue

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

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

Already on GitHub? # to your account

Update to "Handle promise rejection for sound.play() in preload" #1959

Merged
merged 7 commits into from
Jul 1, 2019
Merged

Update to "Handle promise rejection for sound.play() in preload" #1959

merged 7 commits into from
Jul 1, 2019

Conversation

mathiassoeholm
Copy link

Since my colleague Michael is on vacation, I added the requested changes to his pull request.

Resolves

audio play() called before user interaction Blockly fix

Proposed Changes

Handle promise rejection for sound.play() in preload.

Reason for Changes

This removes the error, "play() failed because the user didn't interact with the document first."
This is good in itself, but that exception turned out to be the reason for a several seconds delay after the first interaction on iOS.

Test Coverage

None

Copy link
Contributor

@paulkaplan paulkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@paulkaplan paulkaplan merged commit a9a9502 into scratchfoundation:develop Jul 1, 2019
@epicfaace
Copy link
Contributor

Should we make a PR for a similar change into blockly to resolve the issues created by google/blockly#2162?

@mathiassoeholm
Copy link
Author

@epicfaace I think that would be a good idea, I can see that a similar change has already been proposed in the PR you linked.

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

Successfully merging this pull request may close these issues.

4 participants