I have one problem in my project and i cann't "jump" this step. If i try download one video, for example and the project give my 'Object reference not set to an instance of an object.'.
At the moment i have this code:
```using (var cli = Client.For(YouTube.Default)){
try
{
link = txt.Text;
var videoInfos = await cli.GetAllVideosAsync(link);
try
{
var downloadInfo = videoInfos.Where(i => i.Format == VideoFormat.Mp4 && (i.Resolution == int.Parse(cboResolucao.Text))).FirstOrDefault();//cboResolucao=720;
downloadUri = downloadInfo.Uri;//<-Error there
File.WriteAllBytes(textBox1.Text + @"\" + downloadInfo.FullName, downloadInfo.GetBytes());//paths where i save file.
}catch{}
}catch{}
}´´´
Hey everyone,
I have one problem in my project and i cann't "jump" this step. If i try download one video, for example and the project give my 'Object reference not set to an instance of an object.'.
At the moment i have this code:
Thanks very much