Implement Windows Media Service webpage VOD

Source: Internet
Author: User
Implement Windows Media Service webpage VOD
 

 

Many schools use Windows Media Service to build a video-on-demand (VOD) System on campus network. It includes three parts: media tools, Media Server, and media player.

Steps for implementing VOD

To implement VOD, you must first establish a VoD site, and then collect and convert the multimedia teaching content into a streaming file.

And online publishing.

1. Collection: The program source can be a video camera, TV Station Program, VCD, satellite input signal, etc. videos captured through the video/audio capture card (generally *. MPG format) or a VCD (usually *. dat format) convert *. AVI format or *. moV video files.

2. Conversion: *. AVI format or *. moV format video files are converted into streaming video files suitable for on-demand videos on the Internet or intranet using Windows Media Encoder encoding software (*. asfformat or *. WMV Format ).

3. Publish: create a link between a streaming video file (video) and a website page.

How to create a link

There are two ways to create a link: one is to establish a link with the text or image of the video, the other is to write the Media Player component into the webpage, and the video is played by default when the webpage is opened. The following describes only the first method that is used more often. The specific implementation can be as follows:


Figure 1

1. link the ASF film on the Web Server

In this way, the ASF video file and the HTML page file are directly placed in the same folder of Web Server (1 folder, line 2 of sample1.htm in 2 <a href = "video. ASF"> indicates that the video. ASF video file in the same folder is linked here.


Figure 2

2. link the ASF film on the Media Server

The disadvantage of the previous method is that the viewer can directly download the video, so that the video will lose protection. The following method does not solve this problem, because the video is played through the Media Server.


Figure 3

Here, sample2.htm in (3) has two links. The first link <a href = "192.168.0.1/asx1.asf"> is a link to the ASF film on the Web server, which is no different from the previous method. The second link is <a href = "MMS: // 192.168.0.1/asx2.asf"> (MMS: Microsoft Media Server protocol), indicating the link to the media server site (IP Address: 192.168.0.1) the asx2.asf video file on is a video played through the Media Server. This method solves the problem that the video file is randomly downloaded by viewers.


Figure 4

However, a new problem arises. When you use Netscape to browse, the second ASF file directly linked to media server will not work, because Netscape does not support the MMS: // link method.

3. link the ASX video on the Web Server

Sample3.htm in this method (4中)) has something in common with the first method, that is, you do not need to create a media server site, but only need to build a web server site. But they also have a significant difference: the first method is to directly link to a video on the Web server on the web page. In this way, only the ASX video instruction file is linked to the webpage. The actual storage location of the ASF video to be played is indicated by it (Note :. ASX files are special types of files. Contains information about the location and attributes of the. ASF file on the Windows Media Server, which is used together with the. ASF file ). Therefore, real video files are not directly downloaded and used.

However, this method also has a disadvantage, that is, the viewer can download the ASX file and find the indicated ASF film storage path from the ASX file.

4. link the ASX film on the Media Server

So we have the fourth method, which is the best way to implement VOD on the webpage. This specifies the link to the ASX video instruction folder of the Web server, and ASX then specifies the ASF film on the Media Server.

The link of row 6th of sample4.htm (5) <a href = "asxtest2.asx"> specifies the asxtest2.asx file in the same folder. The asxtest2.asx file points to the asx1.asf and asx2.asf videos in the home directory of the media server site (IP Address: 192.168.0.1.


Figure 5

Finally, it should be noted that the above description is convenient. The ASF and ASX video instruction files used in the example are put in the same folder. In actual application, you should place them in the folder specified in the web server site or media server site according to the selected usage method.

 

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.