in video editor, rename 'posterFrameControls' option to 'enableSetPosterFrame', always include 'Go to Poster Frame' menu entry, and correctly enable/disable 'Set Poster Frame' menu entry
This commit is contained in:
parent
771b15c25a
commit
c0c4031825
1 changed files with 3 additions and 5 deletions
|
@ -32,6 +32,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
duration: 0,
|
duration: 0,
|
||||||
enableDownload: false,
|
enableDownload: false,
|
||||||
enableImport: false,
|
enableImport: false,
|
||||||
|
enableSetPosterFrame: false,
|
||||||
enableSubtitles: false,
|
enableSubtitles: false,
|
||||||
find: '',
|
find: '',
|
||||||
fps: 25,
|
fps: 25,
|
||||||
|
@ -45,7 +46,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
out: 0,
|
out: 0,
|
||||||
position: 0,
|
position: 0,
|
||||||
posterFrame: 0,
|
posterFrame: 0,
|
||||||
posterFrameControls: false,
|
|
||||||
resolution: 0,
|
resolution: 0,
|
||||||
selected: '',
|
selected: '',
|
||||||
showAnnotations: false,
|
showAnnotations: false,
|
||||||
|
@ -482,12 +482,10 @@ Ox.VideoEditor = function(options, self) {
|
||||||
{},
|
{},
|
||||||
{id: 'importAnnotations', title: 'Import Annotations...'}
|
{id: 'importAnnotations', title: 'Import Annotations...'}
|
||||||
] : [],
|
] : [],
|
||||||
self.options.posterFrameControls ? [
|
[
|
||||||
{},
|
{},
|
||||||
{id: 'gotoPosterFrame', title: 'Go to Poster Frame'},
|
{id: 'gotoPosterFrame', title: 'Go to Poster Frame'},
|
||||||
{id: 'setPosterFrame', title: 'Set Poster Frame'}
|
{id: 'setPosterFrame', title: 'Set Poster Frame', disabled: !self.options.enableSetPosterFrame},
|
||||||
] : [],
|
|
||||||
[
|
|
||||||
{},
|
{},
|
||||||
{id: 'keyboard', title: 'Keyboard Shortcuts...', keyboard: 'h'}
|
{id: 'keyboard', title: 'Keyboard Shortcuts...', keyboard: 'h'}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue