收藏
回答

音频播放不完整

只有一个音频播放不完整。。。。

wx.playBackgroundAudio({

dataUrl: thatData.imgServer + thatData.pages[thatData.current - 1].mp3Url,

title: thatData.pages[thatData.current - 1].songname,

coverImgUrl: thatData.songImg,

success: function (res) {

that.setData({

isok: true

})

console.log(thatData.imgServer + thatData.pages[thatData.current - 1].mp3Url)

wx.onBackgroundAudioStop(function () {

console.log("thatData.isStop---" + thatData.isStop);

//console.log("thatData.isSomeRead---" + thatData.isSomeRead);

if (!thatData.isStop) {

if (!thatData.isSomeRead) {

//setTimeout(function () {

that.turnpage();

// }, 2000)

}

}

})

}

})


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容