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

Update our speed setting when the speed is changed externally. #46

Merged
merged 2 commits into from
Jun 2, 2015

Conversation

oggy
Copy link
Contributor

@oggy oggy commented May 24, 2015

e.g. Coursera videos have their own speed controls. If the speed
is changed from A to B via their controls, then the video is
paused & resumed, our play callback would reset the speed to A.

We now ensure our speed setting is accurate by updating it in the
ratechange callback, which happens no matter how the speed is
updated.

e.g. Coursera videos have their own speed controls. If the speed
is changed from A to B via their controls, then the video is
paused & resumed, our play callback would reset the speed to A.

We now ensure our speed setting is accurate by updating it in the
ratechange callback, which happens no matter how the speed is
updated.
@igrigorik
Copy link
Owner

Hmm, this is counter to: 2e7308c - the ratechange logic was causing issues with some other players (if memory serves, Khan Academy..).

In this state, the playback rate is always 1, as we haven't had a chance
to update it yet (which currently happens in the play callback).

Fixes speed setting when jumping between YouTube videos.
@oggy
Copy link
Contributor Author

oggy commented May 31, 2015

@igrigorik Interesting. This second change seems to fix the issue for me on YouTube/KA, and feels like a cleaner solution.

@igrigorik
Copy link
Owner

@oggy hmm, can't reproduce the earlier error.. which is good news. Merging, thanks!

igrigorik added a commit that referenced this pull request Jun 2, 2015
Update our speed setting when the speed is changed externally.
@igrigorik igrigorik merged commit 88d3c28 into igrigorik:master Jun 2, 2015
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