画面录制器的MediaRecorder.stop()回调报错?
发布于 6 年前 作者 xiayong 11100 次浏览 来自 问答

wxml:

<view class="containerid="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

1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部