提交 a1ac1ee4 编写于 作者: M mahaifeng

[backgroundaudio] 修改示例

上级 12314b70
...@@ -44,8 +44,7 @@ ...@@ -44,8 +44,7 @@
bgAudioMannager.coverImgUrl = 'https://web-assets.dcloud.net.cn/unidoc/zh/Alice.jpeg'; bgAudioMannager.coverImgUrl = 'https://web-assets.dcloud.net.cn/unidoc/zh/Alice.jpeg';
bgAudioMannager.onCanplay(() => { bgAudioMannager.onCanplay(() => {
console.log("音频进入可以播放状态事件"); console.log("音频进入可以播放状态事件");
this.isCanplay = true this.isCanplay = true
this.bgAudioMannager!.play()
}) })
bgAudioMannager.onPlay(() => { bgAudioMannager.onPlay(() => {
console.log("开始播放"); console.log("开始播放");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册