0.1.6 • Published 13 years ago

vsiteparser v0.1.6

Weekly downloads
14
License
-
Repository
github
Last release
13 years ago

##Description##

###VSiteParser is a Chinese native video website URL parser.###

With it,you can parse a video URL of some Chinese native video website such as Youku,Tudou,56,etc.

##概述##

###VSiteParser是一个中国本土化视频地址解析工具.###

你可以利用它解析如优酷,土豆,56等在线视频地址.

##Support##

The web that VSiteParser has supported:

##支持##

VSiteParser已经支持的有:

##Make it work##

<script src="../vsparser.js"></script>

##使用##

<script src="../vsparser.js"></script>

##Now, code describes everything##

You just need to do a few as follow:

var url = vsparser("http://v.youku.com/v_show/id_XMjc3ODU4OTMy.html");

And now you can try to output the varible "url" ( to use document.write(url)). All you will see is:

http://player.youku.com/player.php/sid/XMjc3ODU4OTMy/v.swf

##现在,让代码来诠释一切##

你需要做的只是像下面一样:

var url = vsparser("http://v.youku.com/v_show/id_XMjc3ODU4OTMy.html");

现在你可以尝试输出"url"这个变量 ( 用 document.write(url)). 你会看到的是:

http://player.youku.com/player.php/sid/XMjc3ODU4OTMy/v.swf

##Direction##

After the description above,you may already know,there is a function named "vsparser" that return the flash URL of the video URL you given as an argument.This is the core of VSiteParser because depending on your own ideas,you can make many awesome stuff with this SWF site,such as embed the video on the webpage.I have already made it in the "examples" file.

##有何用处?##

通过以上的概述,你也许已经知道,VSiteParser通过一个名叫vsparser的函数,利用你所给的URL参数返回一个flash URL。这就是VSiteParser的核心部分,因为只要你能想到,你就能利用这个swf地址做一些非常有趣的事情,比如把在线视频嵌入到你的页面之中。我已经做好了一个例子在 "examples" file 里提供大家参考。

0.1.6

13 years ago

0.1.1

13 years ago

0.1.0

13 years ago