-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Youtube Api queue problem #818
Comments
However, you can try the |
Related to #294 . |
I added the feature/treadmill feature, but they all send requests to the api at the same time. This is my code:
|
I'm not sure how that is possible given that |
Yes, I added that feature/treadmill. When I add song from my own server as a url, I see that there are 2 requests to my server. But when I want to add the url returned in the getMusicVideos function instead of a my server url, it works 5 times and output dasdasdasdas 5 times.
|
Do you care about how many times that message prints, or do you care about how many times a request is made to the server? The prints have nothing to do with the requests. |
The problem is that we don't know the music links at start. While creating the list, we need to send the music link. Uri.parse(""), But we don't have the link. For this, we use a function and request the link of the video from youtube. What we want to do is to get this link only when it's time for that song. I tried the code you mentioned on iOS, but still, all elements send requests to youtube at the same time while creating a list. Sorry maybe I am doing it wrong. The codes I use are can you check please?
|
OK, I think I understand your feature request now. Is it a duplicate of #777 ? |
Yes we need #779 feature to iOS. |
OK, it's a duplicate. I'll close this issue, and please follow #777 instead. |
Duplicate of #777 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio. |
Is your feature request related to a problem? Please describe.
Hi first of all thanks for this great library. When I create a playlist, it sends requests to all youtube links at once. And this causes the user to spend a lot of internet. I want to create a playlist and when it's time for the song, I want to send a request to the youtube api and get the url of that song. I don't want to send requests to all of them when the playlist creates. I will be grateful if you could help me.
My youtube api code:
Future getSongUrl(songId) async {
var yt = YoutubeExplode();
final manifest = await yt.videos.streamsClient.getManifest(songId);
return manifest.audioOnly[1].url.toString();
}
Describe the solution you'd like
Retrieving links from the api when the song is playing.
Additional context
https://pub.dev/packages/youtube_explode_dart
The text was updated successfully, but these errors were encountered: