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

Handle setPlaybackRate error #1223

Merged
merged 1 commit into from
Oct 26, 2021
Merged

Handle setPlaybackRate error #1223

merged 1 commit into from
Oct 26, 2021

Conversation

korywka
Copy link
Contributor

@korywka korywka commented Apr 27, 2021

setPlaybackRate can throw error:

DOMException: Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided playback rate (20) is not in the supported playback range.

For now this exception is unhandled.

It needs to be inside try / catch:

https://googlechrome.github.io/samples/media/playback-rate-exception

@cookpete cookpete merged commit 060c328 into cookpete:master Oct 26, 2021
@cookpete
Copy link
Owner

Published in 2.10.0

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