views:

230

answers:

1

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:

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.

A: 

There will not be one specific way that you can generate correct URLs for multiple websites, each website has its own way of generating URLS. Neither is there necessarily any way to directly download a video from the site, many Videos can only be streamed which means that there is no file to download. Then the ones that are streamed can only be read by the specific player they are designed for.

Basically I'm afraid what you wish to do is not really feasible in any language.

Toby Allen