wx.chooseVideo没有限制时间,也获取不到时间
wx.chooseVideo没有限制时间提醒,也获取不到时间,没有进行压缩;
组件video ,controls不起作用;
wx.chooseVideo没有限制时间提醒,也获取不到时间,没有进行压缩;
组件video ,controls不起作用;
???
wx.chooseVideo({ sourceType: [ 'camera' ], maxDuration: 60, camera: 'back' , success: function (res) { that.setData({ tip: "正在上传视频..." }) if (res.duration > 60) { wx.showToast({ title: '视频最长支持60秒!' , icon: 'loading' , duration: 2000 }) } else { app.upload_file( '/Wxdynamic/upload_pic' , res.tempFilePath, '' , (err, data) => { if (data) { that.setData({ choose_video: data, tip: '' }) } }) } } }) |
WXOPEN Club 社区为国内最专业的微信小程序技术社区,致力于微信小程序的技术研究。
社区由 Nodeclub 驱动 | 服务器搭建在超友好的 | 存储赞助商为 | 站点运行状态监控由 强力驱动
© 2016 - 2024 WXOPEN Club