wx.playBackgroundAudio(OBJECT)
wx.playBackgroundAudio({
dataUrl: “http://www.youbus.com.cn/voice/exchangeFail.mp3”,
title: ‘’,
coverImgUrl: ‘’,
success: function(res) {
console.log(“playBackgroundAudio success”);
},
fail: function (res) {
console.log(“playBackgroundAudio fail”);
console.log(res);
}
});
wx.stopBackgroundAudio();
只能播放一次,再次调用就播放不了
报错
playBackgroundAudio:fail jsapi has no permission
10 回复