c# - libvideo get youtube video readable stream -


i wondering if there way progress of download youtube video using libvideo .net

i'm downloading using following code:

var youtube = youtube.default; var video = youtube.getvideo(link); string fileext = video.format.tostring(); if (!fileext.startswith("."))     fileext = "." + fileext;  if (!output.endswith(fileext))     output += fileext;  file.writeallbytes(output, video.getbytes()); 

edit: more specific, there way readable stream youtube video using libvideo?

the

video.stream(); 

returns unreaedable stream. readable stream use videoclient.

videoclient videoclient = new videoclient(); using (var stream = videoclient.stream(video)) {     ... } 

Comments