mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update audio playback status to PLAY_INT when resuming speech synthesis
--bug=1058601 --user=刘瑞斌 【应用】浏览器播放-点击暂停&继续播放-连续两次相同操作-第二次未继续播放,而是重新播放了 https://www.tapd.cn/62980211/s/1729699
This commit is contained in:
parent
41ad2eeef2
commit
58db4ed901
|
|
@ -466,6 +466,7 @@ class AudioManage {
|
|||
} else {
|
||||
if (window.speechSynthesis.paused) {
|
||||
window.speechSynthesis.resume()
|
||||
this.statusList[index] = AudioStatus.PLAY_INT
|
||||
} else {
|
||||
// 如果不是暂停状态,取消当前播放并重新开始
|
||||
if (window.speechSynthesis.speaking) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue