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

调整背景音频示例。

上级 17c60ea2
...@@ -59,6 +59,8 @@ ...@@ -59,6 +59,8 @@
bgAudioMannager.singer = '歌手:暂无' + this.count; bgAudioMannager.singer = '歌手:暂无' + this.count;
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.src = this.dataUrl; bgAudioMannager.src = this.dataUrl;
this.currentTime = bgAudioMannager.currentTime
this.duration = bgAudioMannager.duration
bgAudioMannager.onCanplay(() => { bgAudioMannager.onCanplay(() => {
console.log("音频进入可以播放状态事件"); console.log("音频进入可以播放状态事件");
this.buffered = bgAudioMannager.buffered; this.buffered = bgAudioMannager.buffered;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册