recorderManager.start()调用之后为什么没有反应? |
您所在的位置:网站首页 › 微信健康码没反应 › recorderManager.start()调用之后为什么没有反应? |
mikestart() { const recorderManager = wx.getRecorderManager() const innerAudioContext = wx.createInnerAudioContext() const recordOptions = { duration: 6000, // 录音的时长,单位 ms,最大值 60000(1 分钟) sampleRate: 44100, // 采样率 numberOfChannels: , // 录音通道数 encodeBitRate: 192000, // 编码码率 format: 'aac'// 音频格式,选择此格式创建的音频消息,可以在即时通信 IM 全平台(Android、iOS、微信小程序和 Web)互通 }; // 3. 开始录音 // wx.showLoading({ // title: '开始录音', // mask: true // }) console.log(recordOptions) recorderManager.start(recordOptions); recorderManager.onStart(() => { console.log('recorder start' }) }, recordOptions可以打印,监听函数内的不打印 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |