主动调用停止录音。
示例代码:
wx.startRecord({ success: function (res) { var tempFilePath = res.tempFilePath }, fail: function (res) { //录音失败 } }) setTimeout(function () { //结束录音 wx.stopRecord() }, 10000)
主动调用停止录音。
示例代码:
wx.startRecord({ success: function (res) { var tempFilePath = res.tempFilePath }, fail: function (res) { //录音失败 } }) setTimeout(function () { //结束录音 wx.stopRecord() }, 10000)