in video player, separate playing event from position event, so controls that need live updates can bind to playing, while others can safely bind to position
This commit is contained in:
parent
d152c4b48b
commit
291b75c43b
4 changed files with 22 additions and 3 deletions
|
|
@ -204,7 +204,14 @@ Ox.VideoEditor = function(options, self) {
|
|||
muted: function(data) {
|
||||
that.triggerEvent('muted', data);
|
||||
},
|
||||
position: changePlayer,
|
||||
paused: function(data) {
|
||||
that.triggerEvent('paused', data);
|
||||
},
|
||||
playing: changePlayer,
|
||||
position: function(data) {
|
||||
changePlayer(data);
|
||||
that.triggerEvent('position', data);
|
||||
},
|
||||
size: toggleSize,
|
||||
volume: function(data) {
|
||||
that.triggerEvent('volume', data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue