Skip to content
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

Fix InvalidStateError on IE11 when playing sound #1052

Merged
merged 1 commit into from
Dec 10, 2018

Conversation

jgranick
Copy link
Contributor

In our use of howler.js, IE11 is throwing an InvalidStateError, but the problem is resolved by making sure we can set currentTime on this line

In our use of howler.js, IE11 is throwing an `InvalidStateError`, but the problem is resolved by making sure we can set `currentTime` on this line
@goldfire
Copy link
Owner

Do you have a sample of what leads to that error? I haven't been able to reproduce this and want to make sure there isn't another issue further up the chain.

@jgranick
Copy link
Contributor Author

jgranick commented Oct 15, 2018

I believe this sample did it:

PlayingSound.zip

The howler included should be patched, but it's separate (under "lib") so it should be possible to experiment with another version of the library

Thank you 😄

@goldfire goldfire merged commit fb72894 into goldfire:master Dec 10, 2018
@goldfire
Copy link
Owner

I still can't reproduce this on my end, but I also don't see any issue with adding that check, so I've merged this.

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.

2 participants