getRecorderManager的实例 iOS 真机 onStart、onStop监听不到了?
[图片] iOS:getRecorderManager实例的对象,监听不到onStart和onStop了,前两天还可以 const recorderManager = wx.getRecorderManager();
recorderManager.onStart(() => {
})
recorderManager.onStop((res) => {
})
/**
* 开始录制
* @param {*} e
*/
start: function(e) {
recorderManager.start({
duration: this.data.duration,
format: 'mp3'
});
},
/**
* 停止录音
* @param {*} e
*/
stop: function(e) {
recorderManager.stop();
},
<view bindtap="start" class="record-opt-btn">
<image src="{{images}}start.png"></image>
</view>
<view bindtap="stop" class="record-opt-btn">
<image src="{{images}}stop.png"></image>
</view>