editPanel: add getClipImageURL option

This commit is contained in:
rolux 2013-07-15 11:32:36 +00:00
parent ac66d29812
commit 1e4dae0fbc
2 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,7 @@
pandora.ui.clipList = function(videoRatio) { pandora.ui.clipList = function(videoRatio) {
var ui = pandora.user.ui, var ui = pandora.user.ui,
// FIXME: don't hardcode 16/9
fixedRatio = !ui.item ? 16/9 : videoRatio, fixedRatio = !ui.item ? 16/9 : videoRatio,
isClipView = !ui.item ? ui.listView == 'clip' : ui.itemView == 'clips', isClipView = !ui.item ? ui.listView == 'clip' : ui.itemView == 'clips',
isEmbed = pandora.isEmbedURL(), isEmbed = pandora.isEmbedURL(),

View file

@ -60,6 +60,10 @@ pandora.ui.editPanel = function() {
editable: edit.editable, editable: edit.editable,
enableSubtitles: ui.videoSubtitles, enableSubtitles: ui.videoSubtitles,
fullscreen: false, fullscreen: false,
getClipImageURL: function(id, width, height) {
var clip = Ox.getObjectById(edit.clips, id);
return '/' + clip.item + '/' + height + 'p' + clip['in'] + '.jpg';
},
getLargeTimelineURL: function(type, i, callback) { getLargeTimelineURL: function(type, i, callback) {
pandora.getLargeEditTimelineURL(edit, type, i, callback); pandora.getLargeEditTimelineURL(edit, type, i, callback);
}, },