wx.stopRecord¶
- wx.stopRecord()¶
- 1.6.0 版后已移除: 请使用 - wx.getRecorderManager()代替- 停止录音。 - 示例代码
 - wx.startRecord({ success(res) { const tempFilePath = res.tempFilePath } }) setTimeout(function () { wx.stopRecord() // 结束录音 }, 10000) 
1.6.0 版后已移除: 请使用 wx.getRecorderManager() 代替
停止录音。
wx.startRecord({
  success(res) {
    const tempFilePath = res.tempFilePath
  }
})
setTimeout(function () {
  wx.stopRecord() // 结束录音
}, 10000)