fix video widget listeners and triggers
This commit is contained in:
parent
f2c8644001
commit
ef9040ba24
2 changed files with 12 additions and 1 deletions
|
@ -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() {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue