wx.playBackgroundAudio 问题
发布于 5 年前 作者 pingqiao 15635 次浏览 来自 问答

【在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?

回到顶部