in edits, support different resolutions

This commit is contained in:
rolux 2013-07-14 17:05:04 +00:00
parent c547b6e877
commit e020941705

View file

@ -30,9 +30,13 @@ pandora.ui.editPanel = function() {
} }
function getVideos() { function getVideos() {
return Ox.flatten(edit.clips.map(function(clip) { var videos = {};
return pandora.getClipVideos(clip); pandora.site.video.resolutions.forEach(function(resolution) {
videos[resolution] = Ox.flatten(edit.clips.map(function(clip) {
return pandora.getClipVideos(clip, resolution);
})); }));
});
return videos;
} }
function render() { function render() {