Closed FredTheNoob closed 3 years ago
your code is passing seek
to discord.js dispatcher
and discord.js seek
does not work for opus
streams. Make sure you are passing seek
to discord-ytdl-core
Your code should look something like this:
const stream = ytdl(url, {
opusEncoded: true,
seek: TimeInSecondsToSeek
});
connection.play(stream, { type: "opus", bitrate: "auto" });
Thank you very much, it finally works! Now I've noticed that it takes a while before the seek happens (as in there is some silence where it loads I guess?) - Rythm for instance doesn't have this problem at all, what should I do in order for it to seek instantly? :]
you are re-creating
your stream so happens
I see, I've attempted to save my initial stream onto the queue like so:
serverQueue.currentSong = stream;
When I do this, I hear that the stream will skip instantly, but dies shortly after...
How come I access the seek options within ytdl from serverQueue.currentSong after I set it equal to the stream?
Hi,
I'm trying to make a seek command using this package, now when I originally play the song I do it like this:
When seeking I do the following:
Now when I run the seek function, I can hear that the dispatcher goes a little bit into the song, but shortly dies after. How come I resolve this issue?
Regards Fred