html52.com
我爱小程序-开发者交流社区

关于企业微信调用jssdk录音?

  1. 我在vue项目中,created函数中,调用接口返回了企业微信id等参数,然后通过wx.config注入,打印wx.config,都能看见wx.startRecord(),wx.stopRecord(),为什么在调wx.stopRecord({
  2. success: function (res) {
  3. var localId = res.localId;
  4. }
  5. });

停止录音的时候,报 Cannotation read property 'success' of underfined .而且我发现。wx.config,注入后, wx.ready() 和 wx.error()两个函数都会执行,弄的我都不知道,wx.config到底注入成功了,还是失败了

网友回复

维她命系:

wx.stopRecord 函数停止维护了,建议使用 wx.getRecorderManager

https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.getRecorderManager.html

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付