dev
This commit is contained in:
parent
12cbcbf22b
commit
e2905e0422
@ -84,9 +84,11 @@ async function playAudio(audioUrl) {
|
||||
console.error('Ошибка при воспроизведении:', error);
|
||||
});
|
||||
|
||||
await delay(5000);
|
||||
audio.pause();
|
||||
audio.remove();
|
||||
setTimeout(() => {
|
||||
audio.pause();
|
||||
audio.remove()
|
||||
console.log('Воспроизведение остановлено');
|
||||
}, 5000);
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user