Is there an way to install seek function on my bot?
I tried AudioResource's playStream seek, but it doesn't work.
What can I do? I think there's way because discord-player can do that task.
Could someone help me? I saw discord-player's code, but I can't realize it.
7 Replies
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
All dependencies are latest
I tried AudioResource's playStream seeknot exactly sure what you're referring to, since
<Readable>.seek()
doesn't exist
this isn't something you would do through @discordjs/voice
if you would like to reimplement something from discord-player
, ask them for helpI meant
I can do it because discord-player can do it
But I don't know the way
even so, this isn't something you would do through
@discordjs/voice
I was going to link you some previous threads in this channel that provide resources for implementing this, but the most recent thread that does this is your thread
there is no need to continuously make threads for the same off topic issue
please take this elsewhere
#resources / #useful-servers / #other-js-tsok sorry and thank you
And I have a new question
How can I play ffmpeg stream on discordjs/voice
It seems that discord-player is using ffmpeg stream to play audio
I'm unsure how
discord-player
is using ffmpeg
but if you were to use the FFmpeg
transform stream from prism-media
, which is a dependency of @discordjs/voice
, I believe you could just pass said stream to createAudioResource
, specifying that it's the Raw
stream type
again, if you would like to reimplement something from discord-player
, ask them for help