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
|
innerAudioContext.src = _this.data.files.voice[0].url
|
||||||
innerAudioContextIsPlay = false
|
innerAudioContextIsPlay = false
|
||||||
innerAudioContext.onEnded(() => {
|
innerAudioContext.onEnded(() => {
|
||||||
|
console.log('innerAudioContext.onEnded', _this.data.files.voice[0].url);
|
||||||
_this.setData({
|
_this.setData({
|
||||||
innerAudioContextIsPlay: false
|
innerAudioContextIsPlay: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
innerAudioContext.onError((errMsg, errCode) => {
|
||||||
|
console.log('innerAudioContext.onError', errMsg, errCode);
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
if (innerAudioContextIsPlay) { // 播放中
|
if (innerAudioContextIsPlay) { // 播放中
|
||||||
innerAudioContext.stop()
|
innerAudioContext.stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user