wx.playBackgroundAudio 问题

发布于 7 年前作者 pingqiao15709 次浏览最后编辑 7 年前来自 ask

【在web开发者工具中一切正常,很66,在终端会有问题,目前好像 iOS Android都有出现】

play () {

   if (audioStatus === ‘play’) {
       wx.pauseBackgroundAudio();
   } else {
       wx.playBackgroundAudio({
           dataUrl: currentBgAudio.audioUrl,
           title: currentBgAudio.cTitle,
           coverImgUrl: currentBgAudio.topicPic
       })
   }
},

在暂定的时候点击playBackgroundAudio继续播放,在一定概率上不会进入onBackgroundAudioPlay钩子,是我调用问题还是确实存在bug?

0 回复
暂无回复