提交 c83c48d1 编写于 作者: M mahaifeng

[audio]修改音频示例

上级 291e0bad
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
</view> </view>
</block> </block>
<block v-if="!playing"> <block v-if="!playing">
<view class="page-body-button"></view>
<view class="page-body-button" @tap="play"> <view class="page-body-button" @tap="play">
<image class="image" src="/static/play.png"></image> <image class="image" src="/static/play.png"></image>
</view> </view>
...@@ -59,7 +58,6 @@ ...@@ -59,7 +58,6 @@
this.playing = false; this.playing = false;
}) })
bgAudioMannager.onEnded(() => { bgAudioMannager.onEnded(() => {
this.playing = false;
this.playing = false; this.playing = false;
// this.playTime = this.playTime = 0; // this.playTime = this.playTime = 0;
// thi.formatedPlayTime = this.formatedPlayTime // thi.formatedPlayTime = this.formatedPlayTime
...@@ -129,6 +127,7 @@ ...@@ -129,6 +127,7 @@
}, },
stop: function () { stop: function () {
this.bgAudioMannager?.stop(); this.bgAudioMannager?.stop();
this.playing = false
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册