去除音频超时保护
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m57s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m57s
This commit is contained in:
parent
ea3841a690
commit
ef45abd19e
@ -123,13 +123,13 @@ function playAudioData(audioData) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 超时保护
|
// 超时保护
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
if (isPlaying) {
|
// if (isPlaying) {
|
||||||
console.log('音频播放超时,强制结束');
|
// console.log('音频播放超时,强制结束');
|
||||||
isPlaying = false;
|
// isPlaying = false;
|
||||||
resolve();
|
// resolve();
|
||||||
}
|
// }
|
||||||
}, (audioData.duration + 0.5) * 1000);
|
// }, (audioData.duration + 0.5) * 1000);
|
||||||
|
|
||||||
source.start(0);
|
source.start(0);
|
||||||
console.log(`开始播放音频片段,时长: ${audioData.duration}秒`);
|
console.log(`开始播放音频片段,时长: ${audioData.duration}秒`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user