trigger openlink

This commit is contained in:
j 2014-02-07 11:34:31 +00:00
parent 4004f4a247
commit ab3bb7bdcd

View file

@ -241,6 +241,18 @@ Ox.VideoEditPanel = function(options, self) {
muted: function(data) { muted: function(data) {
that.triggerEvent('muted', data); that.triggerEvent('muted', data);
}, },
open: function(data) {
var clip = Ox.clone(Ox.last(self.options.clips.filter(function(clip) {
return clip.position < self.options.position;
})));
that.triggerEvent('openlink', {
annotation: clip.annotation,
'in': clip['in'],
item: clip.item,
out: clip.out,
position: clip['in'] + self.options.position - clip['position'],
});
},
paused: function(data) { paused: function(data) {
self.options.paused = data.paused; self.options.paused = data.paused;
that.triggerEvent('paused', data); that.triggerEvent('paused', data);