mainHandler: function () {
var that = this;
console.log(that.audioCtx);
if (that.audioCtx.paused) {
that.audioCtx.play();
that.setData({
playIcon: ‘…/…/images/pause.png’
})
} else {
that.audioCtx.pause();
that.setData({
playIcon: ‘…/…/images/play.png’
})
}
},
小程序如何用一个按钮来控制音频播放和停止
最新推荐文章于 2023-02-27 16:22:00 发布