discord-player: Bot won't play any songs/Song ending early
Describe the bug When I run the bot on my local Windows 11 machine, everything works fine.
But when the bot runs on Ubuntu 22, the bot will skip playing and directly go to the finish state. I host my bot in Heroku (running on Ubuntu 22.04 stack). This issue doesn’t exist in Ubuntu 20 (As a workaround downgrading heroku stack to 20 fixes this issue).
Current list of affected Linux distro :
- Ubuntu 22.04
- Arch 5.15.79.1-microsoft-standard-WSL2
- CentOS Stream release 8
- 6.1.1-arch1-1
index.js
....
const { Player } = require("discord-player");
const player = new Player(client);
....
play.js
....
const query = interaction.options.getString("query");
const searchResult = await player.search(query);
if (!searchResult.hasTracks()) {
await interaction.editReply(`We found no tracks for ${query}!`);
return;
} else {
await player.play(interaction.member.voice.channel, searchResult, {
nodeOptions: {
metadata: interaction.channel,
bufferingTimeout: 15000,
leaveOnStop: true,
leaveOnStopCooldown: 5000,
leaveOnEnd: true,
leaveOnEndCooldown: 15000,
leaveOnEmpty: true,
leaveOnEmptyCooldown: 300000,
skipOnNoStream: true,
},
});
}
await interaction.followUp({content: `⏱ | Loading your ${searchResult.playlist ? "playlist" : "track"}`,});
....
Attaching debug event to the player below :
Ubuntu 22.04
[DEBUG] Discord Player Debug Event
Preparing final stream config: {
"disableBiquad": false,
"disableEqualizer": false,
"disableVolume": false,
"disableFilters": false,
"disableResampler": false,
"sampleRate": 48000,
"eq": [],
"defaultFilters": [],
"volume": 100,
"transitionMode": false,
"ffmpegFilters": "",
"seek": 0
}
[DEBUG] Discord Player Debug Event
Initiating DSP filters pipeline...
[DEBUG] Discord Player Debug Event
Executing onAfterCreateStream hook...
[DEBUG] Discord Player Debug Event
Preparing AudioResource...
[DEBUG] Discord Player Debug Event
Initializing audio player...
[DEBUG] Discord Player Debug Event
state change:
from {"status":"idle","resource":false,"stepTimeout":false}
to {"status":"buffering","resource":true,"stepTimeout":false}
[DEBUG] Discord Player Debug Event
Dispatching audio...
[DEBUG] Discord Player Debug Event
Player triggered for Track {"title":"The Weeknd & Ariana Grande - Die For You (Remix)","reason":"normal"}
[DEBUG] Discord Player Debug Event
state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":5,"d":{"speaking":1,"delay":0,"ssrc":140130}}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":5,"d":{"speaking":0,"delay":0,"ssrc":140130}}
[DEBUG] Discord Player Debug Event
Track {"title":"The Weeknd & Ariana Grande - Die For You (Remix)","isTransitionMode":false} was marked as finished
[DEBUG] Discord Player Debug Event
Adding track to history and emitting finish event since transition mode is disabled...
[DEBUG] Discord Player Debug Event
No more tracks left in the queue to play and repeat mode is off, initiating #emitEnd()
[DEBUG] Discord Player Debug Event
state change:
from {"status":"playing","missedFrames":0,"playbackDuration":120,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":0,"d":{"server_id":"473160079739322368","user_id":"732230135671029831","session_id":"cc5bf168a85bab4fc3146fa8ed1f3825","token":"8b9a382096aef2eb"}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":0,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":false}
to {"code":1,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":false}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":8,"d":{"v":4,"heartbeat_interval":13750.0}}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":2,"d":{"streams":[{"type":"video","ssrc":140131,"rtx_ssrc":140132,"rid":"","quality":0,"active":false}],"ssrc":140130,"port":50007,"modes":["aead_aes256_gcm_rtpsize","aead_aes256_gcm","aead_xchacha20_poly1305_rtpsize","xsalsa20_poly1305_lite_rtpsize","xsalsa20_poly1305_lite","xsalsa20_poly1305_suffix","xsalsa20_poly1305"],"ip":"66.22.197.156","experiments":["fixed_keyframe_interval"]}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":1,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":false}
to {"code":2,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":true,"connectionData":{"ssrc":140130}}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":5,"d":{"user_id":"176002676696416257","ssrc":140032,"speaking":1}}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":1,"d":{"protocol":"udp","data":{"address":"3.250.223.20","port":50105,"mode":"xsalsa20_poly1305_lite"}}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":2,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":true,"connectionData":{"ssrc":140130}}
to {"code":3,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":true,"connectionData":{"ssrc":140130}}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":4,"d":{"video_codec":"H264","secret_key":[205,179,64,220,193,224,230,46,78,79,30,67,140,16,214,93,28,155,4,167,243,3,7,228,20,48,122,124,247,197,163,56],"mode":"xsalsa20_poly1305_lite","media_session_id":"e98e5b83cc02829367fafbdb7570e5ef","audio_codec":"opus"}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":3,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":true,"connectionData":{"ssrc":140130}}
to {"code":4,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"8b9a382096aef2eb","sessionId":"cc5bf168a85bab4fc3146fa8ed1f3825","userId":"732230135671029831"},"udp":true,"connectionData":{"ssrc":140130,"encryptionMode":"xsalsa20_poly1305_lite","secretKey":{"0":205,"1":179,"2":64,"3":220,"4":193,"5":224,"6":230,"7":46,"8":78,"9":79,"10":30,"11":67,"12":140,"13":16,"14":214,"15":93,"16":28,"17":155,"18":4,"19":167,"20":243,"21":3,"22":7,"23":228,"24":20,"25":48,"26":122,"27":124,"28":247,"29":197,"30":163,"31":56},"sequence":21114,"timestamp":841733103,"nonce":0,"nonceBuffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"speaking":false,"packetsPlayed":0}}
[DEBUG] Discord Player Debug Event
Stream extraction was successful for Track { title: The Weeknd & Ariana Grande - Die For You (Remix), url: https://www.youtube.com/watch?v=_MQjVzZSLNw } (Extractor: com.discord-player.youtubeextractor)
[DEBUG] Discord Player Debug Event
GuildQueue initialized for guild Makeshift Gaming (ID: 473160079739322368)
[DEBUG] Discord Player Debug Event
Connecting to voice channel VOICE 1 (ID: 750292121826754560)
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
Received play request from guild Makeshift Gaming (ID: 473160079739322368)
[DEBUG] Discord Player Debug Event
Requested option requires to play the track, initializing...
[DEBUG] Discord Player Debug Event
Initiating stream extraction process...
[DEBUG] Discord Player Debug Event
Executing onBeforeCreateStream hook (QueryType: youtubeSearch)...
[DEBUG] Discord Player Debug Event
Failed to get stream from onBeforeCreateStream!
[DEBUG] Discord Player Debug Event
Attempting to extract stream for Track { title: The Weeknd & Ariana Grande - Die For You (Remix), url: https://www.youtube.com/watch?v=_MQjVzZSLNw } using registered extractors
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":5,"d":{"user_id":"176002676696416257","ssrc":140032,"speaking":1}}
[INFO] A interaction for : play was triggered in Guild : xxxx / xxxxx by User : Febkosq8#8685 / 407819516513484801
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":5,"d":{"user_id":"407819516513484801","ssrc":139803,"speaking":1}}
Result when play command is used: The bot joins the VC and leaves in a second. It also triggers the following events in order : audioTrackAdd > playerStart > emptyQueue > disconnect.
Windows 11 22H2
[DEBUG] Discord Player Debug Event
GuildQueue initialized for guild Makeshift Gaming (ID: 473160079739322368)
[DEBUG] Discord Player Debug Event
Connecting to voice channel VOICE 1 (ID: 750292121826754560)
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
Received play request from guild Makeshift Gaming (ID: 473160079739322368)
[DEBUG] Discord Player Debug Event
Requested option requires to play the track, initializing...
[DEBUG] Discord Player Debug Event
Initiating stream extraction process...
[DEBUG] Discord Player Debug Event
Executing onBeforeCreateStream hook (QueryType: youtubeSearch)...
[DEBUG] Discord Player Debug Event
Failed to get stream from onBeforeCreateStream!
[DEBUG] Discord Player Debug Event
Attempting to extract stream for Track { title: The Weeknd & Ariana Grande - Die For You (Remix), url: https://www.youtube.com/watch?v=_MQjVzZSLNw } using registered extractors
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":0,"d":{"server_id":"473160079739322368","user_id":"1030967755274473522","session_id":"e7adfc00d547375d387174b6a6bec45c","token":"64bbb0eed02f5ccd"}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":0,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":false}
to {"code":1,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":false}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":8,"d":{"v":4,"heartbeat_interval":13750.0}}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":2,"d":{"streams":[{"type":"video","ssrc":140351,"rtx_ssrc":140352,"rid":"","quality":0,"active":false}],"ssrc":140350,"port":50007,"modes":["aead_aes256_gcm_rtpsize","aead_aes256_gcm","aead_xchacha20_poly1305_rtpsize","xsalsa20_poly1305_lite_rtpsize","xsalsa20_poly1305_lite","xsalsa20_poly1305_suffix","xsalsa20_poly1305"],"ip":"66.22.197.156","experiments":["fixed_keyframe_interval"]}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":1,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":false}
to {"code":2,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":true,"connectionData":{"ssrc":140350}}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":1,"d":{"protocol":"udp","data":{"address":"86.9.62.109","port":55093,"mode":"xsalsa20_poly1305_lite"}}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":2,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":true,"connectionData":{"ssrc":140350}}
to {"code":3,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":true,"connectionData":{"ssrc":140350}}
[DEBUG] Discord Player Debug Event
[NW] [WS] << {"op":4,"d":{"video_codec":"H264","secret_key":[120,206,36,108,200,34,250,229,194,165,180,69,121,33,140,25,114,92,88,36,235,121,160,187,255,9,185,210,10,85,17,165],"mode":"xsalsa20_poly1305_lite","media_session_id":"e98e5b83cc02829367fafbdb7570e5ef","audio_codec":"opus"}}
[DEBUG] Discord Player Debug Event
Detected @discordjs/voice version 0.14.0 which needs keepAlive patch, applying patch...
[DEBUG] Discord Player Debug Event
[NW] state change:
from {"code":3,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":true,"connectionData":{"ssrc":140350}}
to {"code":4,"ws":true,"connectionOptions":{"endpoint":"rotterdam5312.discord.media:443","serverId":"473160079739322368","token":"64bbb0eed02f5ccd","sessionId":"e7adfc00d547375d387174b6a6bec45c","userId":"1030967755274473522"},"udp":true,"connectionData":{"ssrc":140350,"encryptionMode":"xsalsa20_poly1305_lite","secretKey":{"0":120,"1":206,"2":36,"3":108,"4":200,"5":34,"6":250,"7":229,"8":194,"9":165,"10":180,"11":69,"12":121,"13":33,"14":140,"15":25,"16":114,"17":92,"18":88,"19":36,"20":235,"21":121,"22":160,"23":187,"24":255,"25":9,"26":185,"27":210,"28":10,"29":85,"30":17,"31":165},"sequence":26724,"timestamp":3761747370,"nonce":0,"nonceBuffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"speaking":false,"packetsPlayed":0}}
[DEBUG] Discord Player Debug Event
Stream extraction was successful for Track { title: The Weeknd & Ariana Grande - Die For You (Remix), url: https://www.youtube.com/watch?v=_MQjVzZSLNw } (Extractor: com.discord-player.youtubeextractor)
[DEBUG] Discord Player Debug Event
Preparing final stream config: {
"disableBiquad": false,
"disableEqualizer": false,
"disableVolume": false,
"disableFilters": false,
"disableResampler": false,
"sampleRate": 48000,
"eq": [],
"defaultFilters": [],
"volume": 100,
"transitionMode": false,
"ffmpegFilters": "",
"seek": 0
}
[DEBUG] Discord Player Debug Event
Initiating DSP filters pipeline...
[DEBUG] Discord Player Debug Event
Executing onAfterCreateStream hook...
[DEBUG] Discord Player Debug Event
Preparing AudioResource...
[DEBUG] Discord Player Debug Event
Initializing audio player...
[DEBUG] Discord Player Debug Event
state change:
from {"status":"idle","resource":false,"stepTimeout":false}
to {"status":"buffering","resource":true,"stepTimeout":false}
[DEBUG] Discord Player Debug Event
Dispatching audio...
[INFO] A interaction for : play was triggered in Guild : xxxx / xxxx by User : Febkosq8#8685 / 407819516513484801
[DEBUG] Discord Player Debug Event
Player triggered for Track {"title":"The Weeknd & Ariana Grande - Die For You (Remix)","reason":"normal"}
[DEBUG] Discord Player Debug Event
state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
[DEBUG] Discord Player Debug Event
[NW] [WS] >> {"op":5,"d":{"speaking":1,"delay":0,"ssrc":140350}}
Result when play command is used: The bot joins the VC and starts to play the requested music. It also triggers the following events in order : audioTrackAdd > playerStart.
To Reproduce
Steps to reproduce the behavior:
- Run the bot on Ubuntu 22
- Use the play command to queue a song
- Bot will join the VC and leave immediately.
Expected behavior
- Run the bot on Ubuntu 22
- Use the play command to queue a song
- Bot will join the VC and start playing the requested song.
Screenshots
Please complete the following information:
- Node Version: 18.14.2
- Discord Player Version: 6.0.0
- Discord.js Version: 14.7.1
- @discord-player/equalizer Version: 0.2.0
- @discord-player/extractor Version: 4.1.0
- @discord-player/utils Version: 0.2.0
- @discordjs/opus Version: 0.9.0
- @discordjs/voice Version: 0.14.0
Additional context
The only changing factor I know is the ffmpeg build being used but Heroku same buildpack on stack 20 works fine.
-
On Windows : https://www.gyan.dev/ffmpeg/builds/
-
On Heroku (Buildpack) : https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
-
On Ubuntu 22.04 :
sudo snap install ffmpeg
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 6
- Comments: 42 (8 by maintainers)
Conclusion
The problem seems to be static binaries of ffmpeg, pulled from
johnvansickle.com/ffmpeg
. Please install ffmpeg viaapt
or other package managers and avoid static binaries.Update 1:
The bot seems to be working fine on WSL - Ubuntu 22.04 under following circumstances:
sudo apt update
&sudo apt install ffmpeg
)Update 2 (follow-up to update 1):
This issue occurs upon using
ffmpeg-static
instead of the version used in update 1:FFmpeg Static
Debug Log
Update 3 (heroku buildpack ffmpeg latest)
This buildpack seems to be using johnvansickle.com/ffmpeg (the same one is used by
ffmpeg-static
package) based on this line https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest/blob/25e435c249349b5d201f346449fcdf26bce1a065/bin/compile#L34The problem seems to be static binaries of ffmpeg, pulled from
johnvansickle.com/ffmpeg
. Please install ffmpeg viaapt
or other package managers and avoid static binaries.I recently moved my bot to a Digital Ocean droplet using Ubuntu 22.04 and I’m getting the same debug log as OP.
I set up a remote debugger and found it’s breaking in the ‘youtube-sr’ package due to a rejected promise when trying to fetch.
youtube-sr/dist/mod.js line 532 inside getHTML.
Exception has occurred: TypeError [ERR_INVALID_STATE]: Invalid state: Writer has been released at new NodeError (node:internal/errors:399:5) at lazyWritableReleasedError (node:internal/webstreams/writablestream:95:19) at writableStreamDefaultWriterRelease (node:internal/webstreams/writablestream:1004:30) at finalize (node:internal/webstreams/readablestream:1289:5) at node:internal/webstreams/readablestream:1322:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I’m not sure where to go with this though. Is this useful?
Edit: I just noticed @skdhg is the owner of the ‘youtube-sr’ package and he marked this thread as “under discussion”. Just wanted to ping him so he see’s this.
Edit 2: Sorry all, I think this was a red herring. ‘youtube-sr’ will try to use a global fetch if it exists and node v18+ has a built in global.fetch which was causing this “uncaught exception” in the debugger. So, as a test, in my code I deleted global.fetch before trying to play music which caused ‘youtube-sr’ to use node-fetch instead but it’s still not playing music. I’m just not getting a break point now. My debug log still looks the same as OP.
The status changes to playing and then is marked as finished with a playback duration of 120 ms. Back to the drawing board…
I will try to investigate this issue today and let you guys know 👍
I did not realize that this was an issue until I saw messages in Zerio’s Discord channel. The problem relates to audioTrackAdd and audioTracksAdd listeners. I have solved this by adding if condition to listeners:
player.events.on('audioTrackAdd', (queue, track) => { if (queue.node.isPlaying()){ queue.metadata.channel.send(``Added to the queue ${track.title}``) } else { queue.metadata.channel.send(``Track **${track.title}** queued``); } });
player.events.on('audioTracksAdd', (queue, track) => { if (queue.node.isPlaying()){ queue.metadata.channel.send(``Playlist added ${track.title}``) } else { queue.metadata.channel.send(``Playlist starts from title: ${track.title}``); } });
I have this issue too, on Ubuntu 22 like febkosq8, the bot just connects and skip to the song end, emitting the event
from discord-player v6.3x, the package ships with its own ffmpeg implementation which gives less priority to static binaries so it should work better than how it used to. You can also set
FFMPEG_PATH
environment variable to load ffmpeg from custom path if needed.if it was youtube-sr problem, it would not return search result in first place. The issue occurs at audio player, where stream just ends after 120ms playback. This could possibly be ffmpeg issue? I don’t have time to look into it at the moment as im busy these days.
I didn’t tried this fix, but how that would help?
Update : Tried playing a local file as shown in LINK and that seems to work fine both on Heroku/Windows.