From 9c9d3a8e2ff5802523b8606c8c600af678bcd6ac Mon Sep 17 00:00:00 2001 From: j Date: Wed, 29 Apr 2020 14:18:18 +0200 Subject: [PATCH] one more playbackRate --- source/UI/js/Video/VideoTimelinePlayer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/UI/js/Video/VideoTimelinePlayer.js b/source/UI/js/Video/VideoTimelinePlayer.js index 7262cf76..2dd8583c 100644 --- a/source/UI/js/Video/VideoTimelinePlayer.js +++ b/source/UI/js/Video/VideoTimelinePlayer.js @@ -199,6 +199,11 @@ Ox.VideoTimelinePlayer = function(options, self) { key_enter: function() { scrollToPosition(); }, + key_k: function togglePlaybackRate() { + that.options({ + playbackRate: self.options.playbackRate == 1 ? 2 : self.options.playbackRate == 2 ? 0.5 : 1 + }); + }, key_left: function() { self.options.position -= self.videoWidth / self.fps; setPosition();