also toggle playbackRate in timeline

This commit is contained in:
j 2020-04-28 21:34:23 +02:00
parent bd7aedb116
commit b017ba5ba1

View file

@ -106,6 +106,11 @@ Ox.VideoTimelinePanel = function(options, self) {
key_equal: function() {
self.$video.changeVolume(0.1);
},
key_k: function togglePlaybackRate() {
that.options({
playbackRate: self.options.playbackRate == 1 ? 2 : self.options.playbackRate == 2 ? 0.5 : 1
});
},
key_minus: function() {
self.$video.changeVolume(-0.1);
},