How can i get the direct link of flv from the specified url in javascript? I got a PHP script to do the same. This is only for youtube
What it does is:
- do some pattern matching and create a new url http://www.youtube.com/get_video?video_id=xyz&t=abc
- now use this new url and again by some pattern matching find the direct link.
Now how can we do the same in javascript? Also, is it possible to make a single javascript file to get the direct download link from all video sites. [ all means popular websites :) like, youtube, google video ... ]
Edited after Toby s answer
- As according to Toby, it is not possible/feasible to create a single javascript file ,which can support all video sites, to get the download link. then isn t it possible to get the download links from youtube
only.