How discord-player is seeking #1694
-
I want to install seek function on my discordjs only music bot. But I don't know how to do that :( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Our current implementation uses ffmpeg to perform seek and to apply some audio filters to the player. When Upon further inspection, you can see that The implementation of discord-player/packages/discord-player/src/Structures/GuildQueuePlayerNode.ts Lines 543 to 562 in ee275af This private method is calling discord-player/packages/discord-player/src/utils/FFmpegStream.ts Lines 1 to 68 in ee275af Overall, the current implementation of discord-player re-executes ffmpeg with seek duration applied to perform seek. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
Our current implementation uses ffmpeg to perform seek and to apply some audio filters to the player.
When
playerNode.seek(duration)
is invoked, it internally calls<GuildQueueAudioFilters>.triggerReplay(duration)
. The implementation fortriggerReplay
isdiscord-player/packages/discord-player/src/Structures/GuildQueueAudioFilters.ts
Lines 251 to 265 in ee275af
Upon further in…