I came across this code that works but there is no sound. I searched for old github issues and it seems it was supposed to be fixed in the 3.0 version from 2019.
thanks
string link = "https://www.youtube.com/watch?v=OT2b5KzMoC0";
var youTube = YouTube.Default; // starting point for YouTube actions
var videoInfos = youTube.GetAllVideosAsync(link).GetAwaiter().GetResult();
var maxResolution = videoInfos.First(i => i.Resolution == videoInfos.Max(j => j.Resolution));
File.WriteAllBytes(@"C:\" + maxResolution.FullName, maxResolution.GetBytes());
I came across this code that works but there is no sound. I searched for old github issues and it seems it was supposed to be fixed in the 3.0 version from 2019.
thanks