苹果手机视频保存相册失败
发布于 6 年前 作者 tshen 7016 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

苹果可以保存成功

  • 复现路径
  • 提供一个最简复现 Demo

wx.downloadFile({

url:‘https://vapi.show160.com:444/Content/Video/1457/132030682987323315.mp4,

success: function(res) {

console.log(“下载文件:success”);

console.log(res.tempFilePath);

// 保存图片到系统相册

wx.saveVideoToPhotosAlbum({

filePath: res.tempFilePath,

success(res) {

console.log(res);

wx.hideLoading();

wx.showToast({

title: “保存成功”

});

},

fail(res) {

console.log(res);

wx.hideLoading();

wx.showToast({

title: “保存失败”

});

}

});

},

fail: function(res) {

wx.hideLoading();

console.log(“下载文件:fail”);

console.log(res);

}

});

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部