video editor resolution toggle
This commit is contained in:
parent
6e0ff7158c
commit
87ba2a10ab
2 changed files with 20 additions and 5 deletions
|
@ -113,18 +113,30 @@ Ox.MenuButton = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
/*@
|
||||
checkItem <f>
|
||||
@*/
|
||||
that.checkItem = function(id) {
|
||||
self.$menu.checkItem(id);
|
||||
};
|
||||
|
||||
/*@
|
||||
disableItem <f>
|
||||
@*/
|
||||
that.disableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: true});
|
||||
};
|
||||
|
||||
/*@
|
||||
enableItem <f>
|
||||
@*/
|
||||
that.enableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: false});
|
||||
};
|
||||
|
||||
/*@
|
||||
remove <f>
|
||||
@*/
|
||||
self.superRemove = that.remove;
|
||||
that.remove = function() {
|
||||
self.$menu.remove();
|
||||
|
|
|
@ -396,7 +396,10 @@ Ox.VideoEditor = function(options, self) {
|
|||
{id: 'toggleSize', title: 'Large Player', selected: self.options.playerSize == 'large', keyboard: 'shift +'},
|
||||
{}
|
||||
],
|
||||
self.resolutions,
|
||||
{
|
||||
'id': 'resolution', title:'Resolution',
|
||||
items: [ { group: 'resolution', min: 1, max: 1, items: self.resolutions } ]
|
||||
},
|
||||
[
|
||||
{},
|
||||
{id: 'largeTimeline', title: 'Hide Large Timeline', disabled: true},
|
||||
|
@ -431,9 +434,9 @@ Ox.VideoEditor = function(options, self) {
|
|||
title: 'Keyboard Shortcuts',
|
||||
width: 256
|
||||
}).open();
|
||||
} else if (Ox.getObjectById(self.resolutions, id)) {
|
||||
//FIXME: uncheck previous resolution
|
||||
self.$player[0].options({resolution: id});
|
||||
} else if (id == 'resolution') {
|
||||
self.options.resolution = parseInt(data.checked[0].id);
|
||||
self.$player[0].options({resolution: self.options.resolution});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue