1
0
Fork 0
forked from 0x2620/oxjs

video editor resolution toggle

This commit is contained in:
j 2011-12-20 19:15:24 +05:30
commit 87ba2a10ab
2 changed files with 20 additions and 5 deletions

View file

@ -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});
}
}
})