pass playbackRate in Ox.VideoTimelinePlayer

This commit is contained in:
j 2020-04-28 21:39:51 +02:00
parent b017ba5ba1
commit ae12acda2a

View file

@ -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);