Regular Expression To get the string of a Youtube Video

I want to download a youtube video from a link say:

http://www.youtube.com/watch?v=j5-yKhDd64s

How to get the mp4 version of this flash video using regular expression, with Objective-c? Please point me to some sample code.

Answers


You actually can't do it with any Regular expression since youtube videos are in FLV format and are being played via a custom flash player when watched over a browser. while using the iPhone / Ipad the iOS has a alternative player which is build into the OS and plays the video for you. that is why you can play youtube videos using this technique.

I would suggest opening youtube videos as it is intended in the SDK documentations check out this link: http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application


Need Your Help

VB.NET Custom Control (custom drawing) Refresh issue

vb.net controls gdi+

I've created a simple solution with 2 projects. The 1st project (class library) contains a custom control called Container which draws itself with rounded corners. The 2nd project (windows forms) i...

Pushing existing git repository to gitolite

git-push gitolite

I've set up gitolite on my Ubuntu server and can add users, create empty repositories, clone the empty repository, add files, commit locally, and git push origin master to send it to gitolite.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.