fix #2319 (Player View: When navigating with cursor keys, timeline may get out of sync with video)
This commit is contained in:
parent
6dfaf38341
commit
6a84785b5a
2 changed files with 13 additions and 1 deletions
|
@ -302,6 +302,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
key_l: toggleLoop,
|
||||
key_left: function() {
|
||||
setPosition(self.options.position - self.secondsPerFrame);
|
||||
that.triggerEvent('position', {
|
||||
position: self.options.position
|
||||
});
|
||||
},
|
||||
key_minus: function() {
|
||||
changeVolume(-0.1);
|
||||
|
@ -309,6 +312,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
key_p: playInToOut,
|
||||
key_right: function() {
|
||||
setPosition(self.options.position + self.secondsPerFrame);
|
||||
that.triggerEvent('position', {
|
||||
position: self.options.position
|
||||
});
|
||||
},
|
||||
key_shift_f: function() {
|
||||
self.options.enableFullscreen && toggleFullscreen();
|
||||
|
@ -318,9 +324,15 @@ Ox.VideoPlayer = function(options, self) {
|
|||
},
|
||||
key_shift_left: function() {
|
||||
setPosition(self.options.position - 1);
|
||||
that.triggerEvent('position', {
|
||||
position: self.options.position
|
||||
});
|
||||
},
|
||||
key_shift_right: function() {
|
||||
setPosition(self.options.position + 1);
|
||||
that.triggerEvent('position', {
|
||||
position: self.options.position
|
||||
});
|
||||
},
|
||||
key_space: togglePaused,
|
||||
key_up: function() {
|
||||
|
|
|
@ -171,7 +171,7 @@ Ox.VideoPlayerPanel = function(options, self) {
|
|||
},
|
||||
key_p: playInToOut,
|
||||
key_right: function() {
|
||||
movePositionBy(self.options.fps);
|
||||
movePositionBy(1 / self.options.fps);
|
||||
},
|
||||
key_shift_down: function() {
|
||||
movePositionBy(self.options.duration);
|
||||
|
|
Loading…
Reference in a new issue