cross domain canvas is hard

This commit is contained in:
j 2014-02-02 19:50:33 +00:00
parent ef6b5e7071
commit a7d11d04f2

View file

@ -1254,9 +1254,7 @@ pandora.getLargeClipTimelineURL = function(item, inPoint, outPoint, type, callba
} }
}) })
.attr({ .attr({
src: pandora.getMediaURL( src: '/' + item + '/timeline' + type + '64p' + index + '.jpg'
'/' + item + '/timeline' + type + '64p' + index + '.jpg'
)
})[0]; })[0];
}, function() { }, function() {
callback(canvas.toDataURL()); callback(canvas.toDataURL());
@ -1469,9 +1467,7 @@ pandora.getSmallClipTimelineURL = function(item, inPoint, outPoint, type, callba
} }
}) })
.attr({ .attr({
src: pandora.getMediaURL( src: '/' + item + '/timeline' + type + '16p' + index + '.jpg'
'/' + item + '/timeline' + type + '16p' + index + '.jpg'
)
})[0]; })[0];
}, function() { }, function() {
callback(canvas.toDataURL()); callback(canvas.toDataURL());