wx.chooseVideo()安卓手机maxDuration无效的问题
发布于 4 年前 作者 slin 8566 次浏览 来自 问答

wx.chooseVideo({

maxDuration:15,

      success : function(res) {

var videoDuration = res.duration;

if (videoDuration &&videoDuration>15){

wx.showToast({

title: ‘视频时长不能超过15秒’,

icon: ‘none’,

duration: 2000

});

}else{

that.setData({

video: res.tempFilePath,

addVideShow: 0

})

that.formSubmit();

}

 

      },

      fail : function® {

        console.log®;

      }

    })

(安卓手机)目前效果:无法自动停止拍摄

1 回复

已知问题哈

回到顶部