forked from 0x2620/pandora
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
|
|
@ -51,17 +51,21 @@ pandora.ui.embedTimeline = function() {
|
|||
duration: video.duration,
|
||||
followPlayer: ui.followPlayer,
|
||||
getFrameURL: function(position) {
|
||||
return '/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg';
|
||||
return pandora.getMediaURL(
|
||||
'/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg'
|
||||
);
|
||||
},
|
||||
getLargeTimelineURL: function(type, i) {
|
||||
return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg';
|
||||
return pandora.getMediaURL(
|
||||
'/' + ui.item + '/timeline' + type + '64p' + i + '.jpg'
|
||||
);
|
||||
},
|
||||
height: sizes.innerHeight,
|
||||
muted: ui.videoMuted,
|
||||
paused: options.paused,
|
||||
position: options.position,
|
||||
resolution: Ox.min(pandora.site.video.resolutions),
|
||||
smallTimelineURL: '/' + ui.item + '/timeline16p.jpg',
|
||||
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
|
||||
subtitles: video.subtitles,
|
||||
timeline: ui.videoTimeline,
|
||||
timelines: pandora.site.timelines,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue