fix a bug with toggling paused state
This commit is contained in:
parent
8521eb36ba
commit
53f57939ec
1 changed files with 6 additions and 2 deletions
|
@ -79,7 +79,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
||||||
self.options.position += 1 / self.fps;
|
self.options.position += 1 / self.fps;
|
||||||
setPosition();
|
setPosition();
|
||||||
},
|
},
|
||||||
key_space: togglePaused,
|
key_space: function() {
|
||||||
|
togglePaused()
|
||||||
|
},
|
||||||
key_up: function() {
|
key_up: function() {
|
||||||
self.options.position -= self.contentWidth / self.fps;
|
self.options.position -= self.contentWidth / self.fps;
|
||||||
setPosition();
|
setPosition();
|
||||||
|
@ -97,7 +99,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
||||||
float: 'left'
|
float: 'left'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: togglePaused
|
click: function() {
|
||||||
|
togglePaused();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.appendTo(self.$bottomBar);
|
.appendTo(self.$bottomBar);
|
||||||
self.$muteButton = Ox.Button({
|
self.$muteButton = Ox.Button({
|
||||||
|
|
Loading…
Add table
Reference in a new issue