c# - 影片下载

标签 c# flash youtube 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();

工作正常,但比我晚运行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/

相关文章:

c# - 具有静态成员的 C++/C# ABC 设计模式

c# - byte[] 和 MemoryStream 之间的转换会产生开销吗?

flash - Javascript音频/视频元素以编程方式控制音量?

ruby-on-rails - Flash 消息 (Rails v.4.1.1) 花括号

javascript - 在 JS 中动态更新一个变量

javascript - 播放后隐藏 YouTube 视频

python - 有没有办法获得 YouTube 的两个特定用户从职业生涯开始到最近可能的订阅者数量?

c# - FTP 下载工作多年后突然收到 "150 Opening Data channel for file download from server"

c# - 根据绑定(bind)值更改 ListView 图像

php - 用于 facebook/heroku 的 AS3 postgresql 和 amfphp?