camera组件,调用stopRecord在安卓手机success和fail的回调同时执行吗?
camera组件,调用stopRecord在安卓手机success和fail的回调会同时执行,并且success回调中的tempVideoPath为null?安卓手机好多都有这个问题而且复现的次数很多。

以下是代码片段:

stopShootVideo() {
this.setData({
flag: false,
title: false
})
this.ctx.stopRecord({
compressed: true, //压缩视频
success: (res) => {
console.log(‘成功-----’, res)
this.setData({
duration: res.duration,
videoFile: res.tempVideoPath
})
this.uploadVideo(res.tempThumbPath, 0)
},
fail(err) {
console.log(‘失败-----’, err)
wx.showToast({
title: ‘录像失败,请重试’,
icon: ‘none’,
duration: 4000
})
}
})
},
