fix video widget listeners and triggers

This commit is contained in:
rlx 2011-09-26 19:45:36 +00:00
parent f2c8644001
commit ef9040ba24
2 changed files with 12 additions and 1 deletions

View file

@ -997,6 +997,11 @@ Ox.VideoEditor = function(options, self) {
function togglePaused() {
self.$player[0].togglePaused();
/* fixme
self.$player[0].options('paused') && that.triggerEvent('position', {
});
*/
}
function toggleSize() {

View file

@ -163,6 +163,7 @@ Ox.VideoPanelPlayer = function(options, self) {
function changeTimeline(data) {
self.options.position = data.position;
self.$video.options({position: self.options.position});
that.triggerEvent('position', {position: self.options.position});
}
function getPlayerHeight() {
@ -252,7 +253,12 @@ Ox.VideoPanelPlayer = function(options, self) {
height: getPlayerHeight()
});
} else if (key == 'position') {
self.$video.position(value);
self.$video.options({
position: value
});
self.$timeline.options({
position: value
});
} else if (key == 'width') {
self.$video.options({
width: getPlayerWidth()