How to Use Ajax open-source projects to play videos on webpages

Source: Internet
Author: User
Tags mootools

1. See
> Http://videobox-lb.sourceforge.net/
> Http://sourceforge.net/project/showfiles.php? Group_id = 203672
> Download videobox 1.1.zip and decompress it to the directory of the Asp.net project, and use "Add new item" to create an HTML file to play the video. Complete HTML file Code As follows:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> untitled page </title>
<SCRIPT type = "text/JavaScript" src = "JS/mootools. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/swfobject. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/videobox. js"> </SCRIPT>
<LINK rel = "stylesheet" href = "CSS/videobox.css" type = "text/CSS" Media = "screen"/>
> </Head>
<Body>
> <A href = "http://www.youtube.com/watch? V = yl907bfn6v4 "rel =" vidbox 400 300 "Title =" caption "> special series by Zhang guorong, brother of YouTube </a>
<A href = "http://www.youtube.com/watch? V = uhi5x7v3wxe "rel =" vidbox "Title =" caption "> our video </a>
>
</Body>
</Html>
> However, this video can only be played on YouTube, but not on domestic websites such as Youku. The following shows how to play videos from almost all websites.
> See:
> Http://stickmanlabs.com/lightwindow/
> Download http://stickmanlabs.com/lightwindow/light##zipand decompress it to run it. There are many features in it. In this case, I modified the original index.html file to simplify it to playing videos on the Network (you can also play videos under the subdirectory of your website ).
> The Code is as follows:
> <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> untitled page </title>
<SCRIPT type = "text/JavaScript" src = "JS/mootools. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/swfobject. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/videobox. js"> </SCRIPT>
<LINK rel = "stylesheet" href = "CSS/videobox.css" type = "text/CSS" Media = "screen"/>
> </Head>
<Body>
> <A href = "http://www.youtube.com/watch? V = yl907bfn6v4 "rel =" vidbox 400 300 "Title =" caption "> special series by Zhang guorong, brother of YouTube </a>
<A href = "http://www.youtube.com/watch? V = uhi5x7v3wxe "rel =" vidbox "Title =" caption "> our video </a>
>
</Body>
</Html>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.