wx.playBackgroundAudio({
dataUrl: https://images.hylpz.cn/data/audio/1517537224702.mp3?Expires=1832897216&OSSAccessKeyId=LTAIjwk8GeovHGrk&Signature=kGIs8w28Y3cb3BvKdnuKYlr%2B%2BGg%3D,
title:"",
success:function(){
console.log("播放成功")
},
fail:function(){
console.log("播放失败")
}
})
this.time()
然后还调用了一个计时,结果计时也没有启动....
time: function () {
//计时
var that = this;
var sec = this.data.sec;
int = setInterval(function () {
//逻辑
sec++;
// 设置秒
if (sec > 0 && sec < 10) {
that.setData({
sec: "0" + sec
})
} else {
that.setData({
sec: sec
})
}
}, 1000)
},
之前还能播放,但是这两天突然就不能播放了,安卓都好使,返回值返回了 “播放成功” ,但IOS就是无法播放,请问是什么问题!