Closed cannawen closed 1 year ago
At the point the audio stops working, the following logs are generated:
Playing ./audio/bounty_runes.wav
Connection transitioned from ready to ready
Audio player transitioned from buffering to playing
Audio player transitioned from playing to idle
Playing ./audio/bounty_runes.wav
Connection transitioned from ready to ready
Audio player transitioned from buffering to playing
Connection transitioned from ready to connecting
Audio player transitioned from playing to autopaused
Connection transitioned from connecting to signalling
Playing ./audio/bounty_runes.wav
Connection transitioned from signalling to signalling
Audio player transitioned from buffering to playing
Audio player transitioned from playing to autopaused
It looks like the VoiceConnection is getting changed from connecting
to signalling
for unknown reasons
See documentation https://discordjs.guide/voice/voice-connections.html#cheat-sheet
Looks like a known issue in the library
https://github.com/discordjs/discord.js/issues/9185
Investigating workarounds
Steps to reproduce
Play an audio file on repeat on discord and wait for a while (a couple minutes)
setInterval(() => announce("BOUNTY_RUNES"), 3000)
Expected
You will hear audio file every 3 seconds indefinitely
Actual
After a couple minutes, the audio stops playing