This commit is contained in:
mm 2024-10-30 10:44:27 +05:00
parent 12cbcbf22b
commit e2905e0422

View File

@ -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);
)
}