no upscaling, uploadUrl has to be https
This commit is contained in:
parent
d3a2f42a64
commit
84e6cfdec3
2 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,9 @@ pandora.ui.upload = function(oshash, file) {
|
|||
maxRetry = response.maxRetry;
|
||||
}
|
||||
chunkUrl = response.uploadUrl;
|
||||
if (document.location.protocol == 'https:') {
|
||||
chunkUrl = chunkUrl.replace(/http:\/\//, 'https://');
|
||||
}
|
||||
if (chunkUrl) {
|
||||
that.status = 'uploading';
|
||||
that.progress = 0.0;
|
||||
|
|
|
@ -281,7 +281,7 @@ pandora.ui.uploadDialog = function(data) {
|
|||
options.noUpscaling = true;
|
||||
|
||||
if((!info.video.length || (info.video[0].codec == options.videoCodec
|
||||
&& info.video[0].height == options.height))
|
||||
&& info.video[0].height <= options.height))
|
||||
&& (!info.audio.length || info.audio[0].codec == options.audioCodec)) {
|
||||
options = {
|
||||
passthrough: true
|
||||
|
|
Loading…
Reference in a new issue