Player State = idle

Why does the track ends automatically after some time of starting. It's a live stream url. It plays fine for few secs/mins then track ends usually like idle.
5 Replies
d.js toolkit
d.js toolkit2mo ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Retro
Retro2mo ago
you might have to automatically reconnect the live stream because the services disconnect you sometimes which can lead to that. use a stream that actively pulls the next chunk instead of passing a url
Ishh
IshhOP2mo ago
What exactly do I have to do? I'm new to djs voice
Retro
Retro2mo ago
this is more related to general streams rathar than djs voice. what you need to do is create a ReadableStream that pulls the next chunk of the live stream instead of 1 big stream url that will be disconnected
Ishh
IshhOP2mo ago
Okey

Did you find this page helpful?