本帖最后由 mosou 于 2019-9-17 20:51 编辑
搭建以及修改视频教程:
https://www.lanzouj.com/i6806ni密码:mosou
douyindownload-miniapp
解析接口是普通接口只能解析短视频(如有好的免费的接口可以直接留言或者私信我)
其中用到了读取剪辑版数据和相册保存 手机上一定要记得开调试模式!!!(如果不知道的讲到我之前发的抖音美女视频小程序里面有讲到)
剪辑版数据
wx.getClipboardData({
// 剪辑版
success: res => {
var str = res.data.trim()
if (str) {
that.setData({
defaultUrl: str
})
}
}
})
wx.setClipboardData({
data: '',
})
保存相册视频
wx.saveVideoToPhotosAlbum({
filePath: file.tempFilePath,
success: function (o) {
t.showToast('保存成功', 'success'), setTimeout(function () {
wx.setClipboardData({
data: '',
})
that.goBack()
}, 1000)
},
fail: function (o) {
that.showToast('保存失败')
}
})
mosou_首页图
|