影片下载

0 c# youtube flash flv flvplayback

                string host = "http://youtube.com/v/";
        string end = ".flv";
        WebClient Client = new WebClient ();
        StreamReader sr = new StreamReader(@"ids.txt");
        string line;
        do
         {
         line = sr.ReadLine();
         Client.DownloadFile(host+line+end,line+end);

         }
         while (line !=null);
         sr.Close();
Run Code Online (Sandbox Code Playgroud)

工作正常但晚于我将运行flv /视频,这给了我这个错误>

An error occurred when the file plays in Windows Media Player
Run Code Online (Sandbox Code Playgroud)

为什么,我做错了什么?

Neb*_*oft 5

这是一个FLV(Flash视频)文件.并非所有版本的Windows Media Player都可以播放FLV文件.如果你没有正确设置它,你需要一个FLV播放器.要在WMP中播放,您可以尝试:WMP FLV播放