mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
#217 - Reverting Preferred Speed
This commit is contained in:

committed by
Ilya Grigorik

parent
d6f4c3415a
commit
735785fd06
@@ -334,8 +334,14 @@ chrome.extension.sendMessage({}, function(response) {
|
||||
});
|
||||
}
|
||||
|
||||
var oldSpeed = 1.0;
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user