wrap image urls in pandora.getMediaURL to add option to load image from another domain
This commit is contained in:
parent
7de2644eea
commit
522af49a73
22 changed files with 118 additions and 77 deletions
|
|
@ -1241,7 +1241,9 @@ pandora.getLargeClipTimelineURL = function(item, inPoint, outPoint, type, callba
|
|||
}
|
||||
})
|
||||
.attr({
|
||||
src: '/' + item + '/timeline' + type + '64p' + index + '.jpg'
|
||||
src: pandora.getMediaURL(
|
||||
'/' + item + '/timeline' + type + '64p' + index + '.jpg'
|
||||
)
|
||||
})[0];
|
||||
}, function() {
|
||||
callback(canvas.toDataURL());
|
||||
|
|
@ -1455,7 +1457,9 @@ pandora.getSmallClipTimelineURL = function(item, inPoint, outPoint, type, callba
|
|||
}
|
||||
})
|
||||
.attr({
|
||||
src: '/' + item + '/timeline' + type + '16p' + index + '.jpg'
|
||||
src: pandora.getMediaURL(
|
||||
'/' + item + '/timeline' + type + '16p' + index + '.jpg'
|
||||
)
|
||||
})[0];
|
||||
}, function() {
|
||||
callback(canvas.toDataURL());
|
||||
|
|
@ -1646,6 +1650,10 @@ pandora.getStatusText = function(data) {
|
|||
return parts.join(', ');
|
||||
};
|
||||
|
||||
pandora.getMediaURL = function(url) {
|
||||
return pandora.site.site.mediaprefix + url;
|
||||
};
|
||||
|
||||
pandora.getVideoURL = function(id, resolution, part) {
|
||||
var prefix = pandora.site.site.videoprefix
|
||||
.replace('{id}', id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue