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
|
|
@ -95,19 +95,19 @@ pandora.ui.embedPlayer = function() {
|
|||
paused: options.paused,
|
||||
playInToOut: options.playInToOut,
|
||||
position: options.position,
|
||||
poster: '/' + options.item + '/' + '96p' + (
|
||||
poster: pandora.getMediaURL('/' + options.item + '/' + '96p' + (
|
||||
options.position !== void 0 ? options.position
|
||||
: options['in'] !== void 0 ? options['in']
|
||||
: video.posterFrame
|
||||
) +'.jpg',
|
||||
) +'.jpg'),
|
||||
resolution: ui.videoResolution,
|
||||
scaleToFill: ui.videoScale == 'fill',
|
||||
subtitles: video.subtitles,
|
||||
timeline: options.playInToOut ? function(size, i) {
|
||||
return '/' + options.item
|
||||
return pandora.getMediaURL('/' + options.item
|
||||
+ '/timelineantialias'
|
||||
+ size + 'p' + i + '.jpg'
|
||||
} : '/' + options.item + '/' + 'timeline16p.png',
|
||||
+ size + 'p' + i + '.jpg');
|
||||
} : pandora.getMediaURL('/' + options.item + '/' + 'timeline16p.png'),
|
||||
/*
|
||||
timeline: options.playInToOut ? getSmallTimelineURL()
|
||||
: '/' + options.item + '/' + 'timeline16p.png',
|
||||
|
|
@ -173,7 +173,7 @@ pandora.ui.embedPlayer = function() {
|
|||
disabled: isFrame,
|
||||
duration: video.duration,
|
||||
getImageURL: function(type, i) {
|
||||
return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg';
|
||||
return pandora.getMediaURL('/' + ui.item + '/timeline' + type + '64p' + i + '.jpg');
|
||||
},
|
||||
position: options.position,
|
||||
showInToOut: options.playInToOut && options['in'] < options.out,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue