From ae12acda2ae47df66a11e97d4a9e7348e0e41dc8 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 28 Apr 2020 21:39:51 +0200 Subject: [PATCH] pass playbackRate in Ox.VideoTimelinePlayer --- source/UI/js/Video/VideoTimelinePlayer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/UI/js/Video/VideoTimelinePlayer.js b/source/UI/js/Video/VideoTimelinePlayer.js index 73887e92..7262cf76 100644 --- a/source/UI/js/Video/VideoTimelinePlayer.js +++ b/source/UI/js/Video/VideoTimelinePlayer.js @@ -34,6 +34,7 @@ Ox.VideoTimelinePlayer = function(options, self) { muted: false, out: 0, paused: false, + playbackRate: 1, position: 0, showMilliseconds: false, smallTimelineURL: '', @@ -52,6 +53,9 @@ Ox.VideoTimelinePlayer = function(options, self) { self.options.paused = !self.options.paused; togglePaused(); }, + playbackRate: function() { + self.$video.options({playbackRate: self.options.playbackRate}); + }, position: setPosition, timeline: function() { self.$menuButton.checkItem('timelines_' + self.options.timeline);