选择的视频文件
blob:http://localhost:8080/47b8cbf6-e031-42b0-b171-61509e0fa0a9
转换base64提示错误
[system] TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.
uni.chooseVideo({
count: 1,
sourceType: ['album'],
compressed: true,
success: function(res) {
let src = res.tempFilePath;
console.log(src);
var reader = new FileReader();
var rs = reader.readAsDataURL(src);
reader.onload = (e) => {
var videoSrc = e.target.result;
console.log(videoSrc)
}
return;
}
});
Javim
input 在ios可以用吗
2019-12-24 15:15