1
0
Fork 0
forked from 0x2620/oxjs

edit annotations

This commit is contained in:
j 2011-06-15 16:36:01 +02:00
commit 218eeaf47a
4 changed files with 24 additions and 11 deletions

View file

@ -268,8 +268,11 @@ Ox.VideoEditor = function(options, self) {
data.out = self.options.out;
that.triggerEvent('addAnnotation', data);
},
'delete': function(event, data) {
data.layer = layer.id;
remove: function(event, data) {
data = {
ids: [data],
layer: layer.id
};
that.triggerEvent('removeAnnotations', data);
},
select: function(event, data) {
@ -872,8 +875,8 @@ Ox.VideoEditor = function(options, self) {
setPoint('out', data.out);
}
function updateAnnotation(event, data) {
data['in'] = self.options.points[0];
data.out = self.options.points[1];
data['in'] = self.options['in'];
data.out = self.options.out;
that.triggerEvent('updateAnnotation', data);
}