用安卓版微信小程序上传视频失败(腾讯云点播)。iOS正常上传。
用的云点播sdk https://cloud.tencent.com/document/product/266/18177 VodUploader.start({
mediaFile: videoFile, //必填,把chooseVideo回调的参数(file)传进来
getSignature: getSignature, //必填,获取签名的函数
mediaName: fileName, //选填,视频名称,强烈推荐填写(如果不填,则默认为“来自微信小程序”)
coverFile: coverFile, // 选填,视频封面
success: function(result) {
console.log('success');
console.log(result);
},
error: function(result) {
console.log('error');
console.log(result);
wx.showModal({
title: '上传失败',
content: JSON.stringify(result),
showCancel: false
});
},
progress: function(result) {
console.log('progress');
console.log(result);
},
finish: function(result) {
console.log('finish');
console.log(result);
wx.showModal({
title: '上传成功',
content: 'fileId:' + result.fileId + '\nvideoName:' + result.videoName,
showCancel: false
});
}
});
[图片]