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
- 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!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
What exactly do I have to do?
I'm new to djs voice
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
Okey