Closed RubenGarcia closed 10 months ago
video.Uri gives the default URL.
I could not find documentation about the second (optional) parameter Func<string, Task
Can u see this https://github.com/omansak/libvideo/blob/master/docs/README.md ?
I can see the README file, but I still don't know how to get the uris of the different videos. Can they be accessed inside videoInfos somewhere?
All
var videoInfos = Client.For(YouTube.Default).GetAllVideosAsync(uri).GetAwaiter().GetResult();
Specific
var maxResolution = videoInfos.First(i => i.Resolution == videoInfos.Max(j => j.Resolution));
Ah, so maxResolution is not the maximum resolution, but the information about the specific video, where the url can be accessed? So maxResolution.Uri is what I want. I'll test it tomorrow.
i will close that @RubenGarcia , if you ok ?
I did not have time to test, but you can close and I'll reopen if I still have issues.
I confirm I can chose the desired resolution now. Next step: find the audio stream for videos with no audio.
Can you add an example in the documentation about querying the specific URL which will be downloaded when using video.GetBytes()? This would allow users to pass this url to a Unity VideoPlayer component, which would then allow downloading-as-you-view.