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

silence play promise exception #100

Merged
merged 2 commits into from May 29, 2018
Merged

silence play promise exception #100

merged 2 commits into from May 29, 2018

Conversation

rtezera1
Copy link
Contributor

@rtezera1 rtezera1 commented May 10, 2018

Description

On Safari and Chrome a promise for play() throws an AbortError DOMException error if a pause() occurs before playback starts. No impact on player functionality but logs an annoying error to the console.

Specific Changes proposed

Just catch the exception and do nothing.

Requirements Checklist

  • [x ] Feature implemented / Bug fixed
  • Reviewed by Two Core Contributors

@rtezera1
Copy link
Contributor Author

More info on how the error is caused: https://waffle.io/brightcove/barracudagalaxy/cards/5ad7af855bd9e7001b5c3787

@incompl
Copy link
Contributor

incompl commented May 21, 2018

LGTM

@bcsdasneogi
Copy link

QA : LGTM

@rtezera1 rtezera1 merged commit c257d2b into master May 29, 2018
@rtezera1 rtezera1 deleted the silence-error branch May 29, 2018 18:22
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.

None yet

4 participants