[bug]wx.chooseVideo参数sourceType在部分安卓下不生效
发布于 5 年前 作者 jinghu 3684 次浏览 来自 问答

sourceType设置成camera 在华为 honor 9 Lite下 仍然可以从相册选择视频。

代码

wx.chooseVideo({
      sourceType: ['camera'],
      maxDuration: 5,
      camera: 'front',
      success: function(res) {
        console.log('开始上传...');
 
        console.log('res.tempFilePath:', res.tempFilePath)
        const v_filePath = res.tempFilePath;

 

2 回复

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

https://developers.weixin.qq.com/s/8jFmugm87h9r

具体机型: Honor 9 lite

微信版本号: 7.0.4

系统版本号: 8.0.0

回到顶部