wxml:
<view class="container" id="aaa">
adfasdfasdf
<button bindtap="startVideo">录制</button>
</view>
js:
startVideo(){
let query = wx.createSelectorQuery()
let el = query.select("#aaa")
let video = wx.createMediaRecorder(el,{duration: 7200})
video.on('stop',function (e){
console.log(e)
})
video.on('start',function (){
console.log('aaaaaaaaaaaaa')
})
video.start()
console.log(video)
setTimeout(() => {
video.stop()
},5000)
}
})
start的回调没问题 stop的回调报错code:601
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。