downloadframe event

This commit is contained in:
j 2018-09-12 19:58:00 +02:00
parent 6618809eb5
commit 63501ebe96

View file

@ -13,6 +13,7 @@ Ox.VideoAnnotationPanel <f> VideoAnnotationPanel Object
censored <!> censored
define <!> define
downloadselection <!> downloadselection
downloadframe <!> downloadframe
downloadvideo <!> downloadvideo
editannotation <!> editannotation
editannotation <!> editannotation
@ -670,6 +671,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
{id: 'setPosterFrame', title: Ox._('Set Poster Frame'), disabled: !self.options.enableSetPosterFrame},
{},
{id: 'downloadVideo', title: Ox._('Download Video...'), disabled: !self.options.enableDownload },
{id: 'downloadFrame', title: Ox._('Download Frame...'), disabled: !self.options.enableDownload },
{id: 'downloadSelection', title: Ox._('Download Selection...'), disabled: !self.options.enableDownload},
{id: 'embedSelection', title: Ox._('Embed Selection...')},
{id: 'linkToSelection', title: Ox._('Link to Selection...')},
@ -698,6 +700,10 @@ Ox.VideoAnnotationPanel = function(options, self) {
});
} else if (id == 'downloadVideo') {
that.triggerEvent('downloadvideo');
} else if (id == 'downloadFrame') {
that.triggerEvent('downloadframe', {
'position': self.options.position
});
} else if (id == 'downloadSelection') {
that.triggerEvent('downloadselection', {
'in': self.options['in'],