in video editor, pass position along with in and out when triggering a point event

This commit is contained in:
rlx 2012-04-22 08:54:44 +00:00
parent 96d5e4a856
commit bdab9b8a7d

View file

@ -74,7 +74,9 @@ Ox.VideoEditor = function(options, self) {
key_alt_shift_right: function() {
},
key_b: function() {
self.annotations.length && selectAnnotation(getNextAnnotation('annotation', -1));
self.annotations.length && selectAnnotation(
getNextAnnotation('annotation', -1)
);
},
key_backslash: function() {
self.annotations.length && selectAnnotation();
@ -118,7 +120,9 @@ Ox.VideoEditor = function(options, self) {
});
},
key_g: function() {
self.results.length && selectAnnotation(getNextAnnotation('result', 1));
self.results.length && selectAnnotation(
getNextAnnotation('result', 1)
);
},
key_h: showKeyboardShortcuts,
key_i: function() {
@ -131,7 +135,9 @@ Ox.VideoEditor = function(options, self) {
self.$player[0].changeVolume(-0.1);
},
key_n: function() {
self.annotations.length && selectAnnotation(getNextAnnotation('annotation', 1));
self.annotations.length && selectAnnotation(
getNextAnnotation('annotation', 1)
);
},
key_o: function() {
setPoint('out', self.options.position);
@ -153,7 +159,9 @@ Ox.VideoEditor = function(options, self) {
self.options.videoSize == 'small' && toggleSize();
},
key_shift_g: function() {
self.results.length && selectAnnotation(getNextAnnotation('result', -1));
self.results.length && selectAnnotation(
getNextAnnotation('result', -1)
);
},
key_shift_left: function() {
movePositionBy(-1);
@ -1123,7 +1131,8 @@ Ox.VideoEditor = function(options, self) {
});
that.triggerEvent('points', {
'in': self.options['in'],
out: self.options.out
out: self.options.out,
position: self.options.position
});
if (self.editing && self.options.selected[0] != '_') {
that.triggerEvent('editannotation', {