开发者

how to get Video from Server source C#

How can i download the video from server source through C#?

this is the video www.youtube.com/watch?v=UZS0eX8Fe7U&feature=fvhl

and this is开发者_StackOverflow中文版 the server source of this video http://s.ytimg.com/yt/swf/watch_as3-vflPDfEzH.swf

I apply same procedure for images and easily download from server


You could use WebClient to download pages:

using (var client = new WebClient())
{
    client.DownloadFile("http://foo.com/somefile", @"c:\somefile");
}

Also notice that what you've provided is not the address of the video file. It is the address of the player. AFAIK the policy forbids downloading the video files from youtube but if you have the address of the video file simply pass it to the DownloadFile method.


This is not a youtube video file, its a youtube video player. Video is returned by /get_video? ...


If you just want to download that movie get something like DownloadHelper for FireFox. If you are trying to download any movie from youtube then use code like Darin suggeseted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜