收藏
回答

录音调用失败,返回值startRecord:fail:auth denied

问题模块
API和组件

startRecord:fail:auth denied


调用录音失败,fail里面返回这个,为啥?


//音频录制开始 
 recordStartTest: function () {
   var _this = this;
   wx.startRecord({
     success: function (res) {
       var tempFilePath = res.tempFilePath
       console.log(tempFilePath)
     },
     fail: function (res) {
       console.log(res.errMsg)
       //录音失败
       wx.showModal({
         title: '提示',
         content: '录音的姿势不对!',
         showCancel: false,
         success: function (res) {
           if (res.confirm) {
             return
           }
         }
       })
     }
   })
 },


<button bindtap="recordStartTest">开始录音</button>


最后一次编辑于  2017-09-07  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答