|
@@ -208,6 +208,16 @@
|
|
|
let _this = this
|
|
|
innerAudioContext.src = url
|
|
|
console.log(url);
|
|
|
+ var music = wx.setInnerAudioOption({
|
|
|
+ obeyMuteSwitch: false,
|
|
|
+ success: function(res) {
|
|
|
+ console.log("开启静音模式下播放音乐的功能");
|
|
|
+ },
|
|
|
+ fail: function(err) {
|
|
|
+ console.log(err);
|
|
|
+ console.log("静音设置失败");
|
|
|
+ },
|
|
|
+ });
|
|
|
console.log(this.playStatus);
|
|
|
if (this.playStatus == 0) {
|
|
|
innerAudioContext.play()
|