This repository was 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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
xxxxxline for differentiating both sources]As we can see here,
streamdidn't get destroyed whilesourcea.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-discordcreate 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 createdytdlstream).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