Commit Graph
5 Commits
Author SHA1 Message Date
George Ogata ed79c8e860 Apply controller to videos in all accessible iframes. 2016-01-18 04:14:30 -05:00
George Ogata 0fde1a3cc9 Extract videoController definition, scope to video's ownerDocument. 2016-01-18 04:14:20 -05:00
George Ogata f1827ba630 Fix variable name. 2016-01-18 04:08:27 -05:00
George Ogata e75f4f0c60 Don't update our video speed setting before the video is loaded.
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.
2015-05-31 03:54:57 -04:00
George Ogata 7031049819 Update our speed setting when the speed is changed externally.
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.
2015-05-24 03:26:53 -04:00