mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 00:49:37 +08:00
1
This commit is contained in:
parent
77765a6215
commit
4a7ca87407
@ -161,10 +161,15 @@ Page({
|
||||
innerAudioContext.src = _this.data.files.voice[0].url
|
||||
innerAudioContextIsPlay = false
|
||||
innerAudioContext.onEnded(() => {
|
||||
console.log('innerAudioContext.onEnded', _this.data.files.voice[0].url);
|
||||
_this.setData({
|
||||
innerAudioContextIsPlay: false
|
||||
})
|
||||
})
|
||||
innerAudioContext.onError((errMsg, errCode) => {
|
||||
console.log('innerAudioContext.onError', errMsg, errCode);
|
||||
})
|
||||
|
||||
}
|
||||
if (innerAudioContextIsPlay) { // 播放中
|
||||
innerAudioContext.stop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user