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:
rlx 2011-11-05 16:03:13 +00:00
commit 291b75c43b
4 changed files with 22 additions and 3 deletions

View file

@ -101,6 +101,12 @@ Ox.VideoPanelPlayer = function(options, self) {
muted: function(data) {
that.triggerEvent('muted', data);
},
paused: function(data) {
that.triggerEvent('paused', data);
},
position: function(data) {
that.triggerEvent('position', data);
},
scale: function(data) {
that.triggerEvent('scale', data);
},