Seek command

how can i move forward or backward in the music being played with discord.js/voice? I would like to create a seek command.
21 Replies
megatank58
megatank583y ago
You need to use ffmpeg for it You can use the setStartTime method and toFormat methods to get the song data and then play it
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bouns
BounsOP3y ago
I have my AudioResource and AudioPlayer where I use Ffmpeg ?
megatank58
megatank583y ago
something like this is what i was talking about
megatank58
megatank583y ago
(ignore the log)
Bouns
BounsOP3y ago
I agree with that but my problem is that the music is already being played with an AudioPlayer, and I want to change it while it is running. badsueur
Matte
Matte3y ago
theres no way to do it while playing. You must start a new stream
Bouns
BounsOP3y ago
oh ok it's so sad
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Matte
Matte3y ago
itll work if done properly. Ive done it with a very little delay when restarting the stream. Only issue i ran into was a ton of memory leaks which i sadly never was able to resolve
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
megatank58
megatank583y ago
Webstorm
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
megatank58
megatank583y ago
not sure haven't tried
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bouns
BounsOP3y ago
I have the same problem hightWaterMark / type / dlchunkSize doesn't exit on .stream() element
Bouns
BounsOP3y ago
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bouns
BounsOP3y ago
are you sure ?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server