无法保存到手机
uni.downloadFile({
url: this.videoList[v].videoUrl, //下载视频路径
filepath: filepath,
success: (res) => {
console.log(res);
if (res.statusCode === 200) {
uni.saveFile({
tempFilePath: res.tempFilePath,
success: (data) => {
uni.saveVideoToPhotosAlbum({
filePath: data.savedFilePath, //视频地址
success: function () {
uni.showToast({
title: "下载成功",
icon: "success",
duration: 1500,
});
},
});
},
});
}
},
fail: (fail) => {
console.log(fail, "failll");
},
})
1***@qq.com (作者)
谢谢您,已经解决
2023-01-10 09:05