wx.saveVideoToPhotosAlbum¶
- wx.saveVideoToPhotosAlbum({stringfilePath[,success][,fail][,complete]})¶
 1.2.0 新版功能: 低版本需做 兼容处理 。
调用前需要 用户授权
scope.writePhotosAlbum- Label
 保存视频到系统相册。支持mp4视频格式。
- 参数
 stringfilePath – 视频文件路径,可以是临时文件路径也可以是永久文件路径
success (
function()) – 接口调用成功的回调函数fail (
function()) – 接口调用失败的回调函数complete (
function()) – 接口调用结束的回调函数(调用成功、失败都会执行)
- 示例
 wx.saveVideoToPhotosAlbum({ filePath: 'wxfile://xxx', success(res) { console.log(res.errMsg) } })