fix: add self check to resume speech synthesis in ChatOperationButton
--bug=1058777 --user=刘瑞斌 【应用】开启语音自动播放,浏览器播放,暂停第一次对话的播放后,进行第二次对话,自动播放会先继续播放上一次对话 https://www.tapd.cn/62980211/s/1731474
This commit is contained in:
parent
95263d147b
commit
21c8f6ffbf
@ -464,7 +464,7 @@ class AudioManage {
|
|||||||
this.statusList[index] = AudioStatus.ERROR
|
this.statusList[index] = AudioStatus.ERROR
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (window.speechSynthesis.paused) {
|
if (window.speechSynthesis.paused && self) {
|
||||||
window.speechSynthesis.resume()
|
window.speechSynthesis.resume()
|
||||||
this.statusList[index] = AudioStatus.PLAY_INT
|
this.statusList[index] = AudioStatus.PLAY_INT
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user