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 {
|
} else {
|
||||||
if (window.speechSynthesis.paused) {
|
if (window.speechSynthesis.paused) {
|
||||||
window.speechSynthesis.resume()
|
window.speechSynthesis.resume()
|
||||||
|
this.statusList[index] = AudioStatus.PLAY_INT
|
||||||
} else {
|
} else {
|
||||||
// 如果不是暂停状态,取消当前播放并重新开始
|
// 如果不是暂停状态,取消当前播放并重新开始
|
||||||
if (window.speechSynthesis.speaking) {
|
if (window.speechSynthesis.speaking) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user