uni.chooseVideo({
sourceType: ['camera'],
camera: 'front',
maxDuration: 10,
success: res => {
console.log(res.tempFilePath)
let reader = new FileReader()
reader.onload = (e) => {
var videoSrc = e.target.result
}
let rs = reader.readAsDataURL(res.tempFilePath)
}
})
}
会返回 Uncaught (in promise) TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'. 错误
请问各位大大是如何在H5中 将BLOB转BASE64的
1***@qq.com
安卓机失败
2020-09-21 10:09
1***@qq.com
blob 对象为空
2020-09-21 10:58