I tried to play ogg but it doesn't play
although I can participate in the VC, the music does not play. There are no errors.
17 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!Can you please log the statechanges? also what intents are you using currently?
I checked the console.log for state changes
For some reason the sound isn't playing
pretty sure you have yo create an audio player for this iirc
let me check
got it. thank you.
👍
yea you need an audio player to play audio over the connection,
Would you like to know more?
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
I will check it. thank you.
I changed the code like this, but it still doesn't play;
😢
console.log('Idle state detected. Playing audio...');
will not be displayed forever
can you try removing the ?v= query parameter from the ogg url? just copy it until the .ogg
thank you for your reply
It doesn't play even if I change the code as below
😢
do you have ffmpeg and other dependencies installed? can you show your package.json file?
dont install ffmpeg through npm
ok
- npm:
npm install ffmpeg-static
- Install: Download | chocolatey | homebrew | your distributions package manager
- Tutorial: YouTube
- ffmpeg-binaries is deprecated, uninstall it with npm rm ffmpeg-binaries
or use a FFmpeg installation
Prefferably create a HTTP stream without djs/voice and pipe to djs/voice
If anything, log the state changes once again and send them here