trigger openlink
This commit is contained in:
parent
4004f4a247
commit
ab3bb7bdcd
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue