Play audio from URL (mp3 stream)

Hey, I'm currently using djs v14 and djs voice to create an Audio Player playing audio from a mp3 stream. Works fine in general. However, after several minutes of playing the audio the Audio Player switches to Idle/disconnects without any error. When I try reconnecting to the stream when it switches to the Idle state it works for another few minutes. Any ideas?
4 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
lupus
lupusOP3y ago
Relevant versions are [email protected] @discordjs/[email protected] [email protected] Also I currently call .play like this: <Player>.play(createAudioResource('https://link.com/to/stream.mp3', { silencePaddingFrames: 0 }));
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
lupus
lupusOP3y ago
I'm currently doing exactly that, just wanted to know if there was a better solution. Thanks tho c:
Want results from more Discord servers?
Add your server