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();
工作正常,但比我晚运行flv / video,这给我这个错误>
An error occurred when the file plays in Windows Media Player
为什么,我做错了什么?
最佳答案
这是一个FLV(Flash视频)文件。并非所有版本的Windows Media Player都可以播放FLV文件。如果没有正确设置,则需要FLV player。要在WMP中播放,您可以尝试:WMP FLV Playing
关于c# - 影片下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2387944/