提交 1a4c13f3 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817

调整背景音频播放示例。

上级 12314b70
...@@ -1526,7 +1526,7 @@ ...@@ -1526,7 +1526,7 @@
} }
}, },
// #endif // #endif
// #ifdef APP-ANDROID || MP-WEIXIN // #ifdef APP || MP-WEIXIN
{ {
"path": "pages/API/get-background-audio-manager/get-background-audio-manager", "path": "pages/API/get-background-audio-manager/get-background-audio-manager",
"group": "1,7,10", "group": "1,7,10",
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
}) })
this.bgAudioMannager = bgAudioMannager; this.bgAudioMannager = bgAudioMannager;
this.playing = !bgAudioMannager.paused this.playing = !bgAudioMannager.paused
this.isCanplay = this.bgAudioMannager.duration > 0
}, },
methods: { methods: {
play: function () { play: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册