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,9 +334,15 @@ chrome.extension.sendMessage({}, function(response) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var oldSpeed = 1.0;
|
||||||
function playVideoAtFastSpeed(video) {
|
function playVideoAtFastSpeed(video) {
|
||||||
|
if(video.playbackRate == tc.settings.fastSpeed) {
|
||||||
|
video.playbackRate = oldSpeed;
|
||||||
|
} else {
|
||||||
|
oldSpeed = video.playbackRate;
|
||||||
video.playbackRate = tc.settings.fastSpeed;
|
video.playbackRate = tc.settings.fastSpeed;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function handleDrag(video, controller) {
|
function handleDrag(video, controller) {
|
||||||
const parentElement = controller.parentElement,
|
const parentElement = controller.parentElement,
|
||||||
|
Reference in New Issue
Block a user