This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
Replies: 1 comment 1 reply
-
Without going into any of the technicalities about this (I'll leave that to @amishshah). You are advised to use youtube-dl as we did in our examples for this exact reason. We found out ytdl-core (and derivatives are just broken more often than not). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did a deep research where things are pilled up even in New Voice API .
I got very interesting news for both things
First Test :
Code :
Basically I tried to create a stream with
ytdl-core-discord
, and then passed it to createAudioResource and played that. After player has played 10 sec, then end the player and check ifstream(ytdl-core-discord one)
andsource(createAudioResource one)
gets destroyed or not.Logs here [Just remember the
xxxxx
line for differentiating both sources]As we can see here,
stream
didn't get destroyed whilesource
a.k.a Audio Resource got destroyed after player has ended playing audio.Second Test :
Code :
Now I tried to do something different. Instead
ytdl-core-discord
create a stream, I let Voice API to create a stream for my url. After player has played 10 sec, then end the player and check if Audio Resource gets destroyed or not. Then logging the results of Audio Resource only (since I never createdytdl
stream).Logs here
As we can clearly see that now everything including Audio Resource gets destroyed. So in my both tests, I found out that the
stream (YTDL - core one)
doesn't get destroyed after the player has stopped playing. So in my perspective, either it is an issue of DJS-voice for not closing that stream after theplayer.stop()
has been called or it is a problem ofytdl-core
.So I wanted to know, if my thinking and results are true according to you or not. So let me know by commenting in this discussion.
Beta Was this translation helpful? Give feedback.
All reactions