geis, how can I rewind audio for example 20 seconds forward or backward in @discordjs/voice
geis, how can I rewind audio for example 20 seconds forward or backward in @discordjs/voice
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!In that case, you'll need to use FFmpeg. You can use it through prism-media.FFmpeg
That way you can provide when it will start from
is there any code example, because I don't quite understand how to do it
https://github.com/PerformanC/NodeLink/blob/main/src/filters.js#L278 / https://amishshah.github.io/prism-media/core.FFmpeg.html / https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg
Also, re-initializing the whole stream is very "costy"