#217 - Reverting Preferred Speed

This commit is contained in:
canarslan12 authored and Ilya Grigorik committed 2017-05-25 20:48:00 -04:00
1 parent d6f4c3415a
commit 735785fd06
1 file changed
+7 -1
+7 -1
View File
@@ -334,8 +334,14 @@ chrome.extension.sendMessage({}, function(response) {
}); });
} }
var oldSpeed = 1.0;
function playVideoAtFastSpeed(video) { function playVideoAtFastSpeed(video) {
video.playbackRate = tc.settings.fastSpeed; if(video.playbackRate == tc.settings.fastSpeed) {
video.playbackRate = oldSpeed;
} else {
oldSpeed = video.playbackRate;
video.playbackRate = tc.settings.fastSpeed;
}
} }
function handleDrag(video, controller) { function handleDrag(video, controller) {