Audio Resources immediately goes from "playing" to "idle" despite having NoSubscriberBehavior.Play
It doesn't do this locally and only does it on my hosted server.
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!are you absolutely sure that that's a valid url for an audio stream?
the
Opus
stream type is for opus streams (in object mode)
if you were looking to play an ogg file, you'd want OggOpus
but are you sure that a website named mp3stream
would provide something other than mp3?I just removed url, but I am 100% sure the stream works, (I've tried with OggOpus and the ogg streaming link).
The implementation actually works fine locally (and on a different hosted server), but for some reason on my new host doesn't work.
My only thoughts is it could be something to do with the firewall, but I am not seeing anything suggesting that in the debug/errors
Here is the exact code which runs locally fine, but on a hosted server does not play anything.
The voice channel joining code is here (it does join the channel fine)
I've disabled the firewall on the server to rule that out.
I am able to use
ffmpeg -i http://radio.truckers.fm/radio-ogg -c copy test.ogg
to output the stream to an ogg file. Its also accesible via ssh by just typing 'ffmpeg'. Unless it needs to be put anywhere special for discordjs to pick it up
For future reference whoever may come across this, I was having issue with the implementation of
and ended up subsituting it for
Both impl worked locally but something in the server environment must of been having issues.