menu entry to import annotations

This commit is contained in:
j 2012-02-14 19:06:51 +00:00
parent 5173bf62fe
commit 5f1e21f7e2

View file

@ -433,6 +433,9 @@ Ox.VideoEditor = function(options, self) {
{id: 'downloadVideo', title: 'Download Video...', disabled: !self.options.enableDownload }, {id: 'downloadVideo', title: 'Download Video...', disabled: !self.options.enableDownload },
{id: 'downloadSelection', title: 'Download Selection...', disabled: !self.options.enableDownload}, {id: 'downloadSelection', title: 'Download Selection...', disabled: !self.options.enableDownload},
{id: 'embedSelection', title: 'Embed Selection...'}, {id: 'embedSelection', title: 'Embed Selection...'},
{},
{id: 'importAnnotations', title: 'Import Annotations...'},
], ],
self.options.posterFrameControls ? [ self.options.posterFrameControls ? [
{}, {},
@ -466,6 +469,8 @@ Ox.VideoEditor = function(options, self) {
'in': self.options['in'], 'in': self.options['in'],
out: self.options.out, out: self.options.out,
}); });
} else if (id == 'importAnnotations') {
that.triggerEvent('importannotations');
} else if (id == 'gotoPosterFrame') { } else if (id == 'gotoPosterFrame') {
setPosition(self.options.posterFrame); setPosition(self.options.posterFrame);
} else if (id == 'setPosterFrame') { } else if (id == 'setPosterFrame') {