VOD System Content

Source: Internet
Author: User
Tags microsoft website

1. Streaming Media Server Configuration:

In the VOD system, you must first configure a Streaming Media Server, and the client can be used for VOD. There are many streaming media servers. Here we use the built-in media player server in windows.

System Requirements: Windows2003 Server

The following is an article about the installation of the streaming media service.Article,Streaming Media Server ConstructionI will not discuss the installation of the streaming media service in detail.

Publishing a streaming media site is similar to publishing a website in IIS. Follow the system Wizard to configure the site.

2. Video Encoder

Microsoft released the 9 series encoder for Windows Media Encoder, which can be downloaded from the Microsoft website. It is mainly used to encode video files in different formats, such as wmv and ASF. In addition, screen capture can be performed to record user Screen operations and encode them into video files in WMV format. The installation of this tool is described in the Streaming Media Server SETUP document.

3 mediaplayer player control

3.1 put a mediaplayer player in a web form,CodeAs follows:

<% --

<Object ID = "Player" Height = "240" width = "320" classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6"> <! -- 22d6f312-b0f6-11d0-94ab-0080c74c7e95 "-->
<Param name = "autostart" value = "-1"/> <! -- Automatic playback? -->
<Param name = "balance" value = "0"/> <! -- Adjust the left-right channel balance and the old player code above -->
<Param name = "enabled" value = "-1"/> <! -- Whether the player can be controlled by humans -->
<Param name = "enablecontextmenu" value = "-1"/> <! -- Enable context menu -->
<Param name = "url" value = '<% = getvideofilepath () %>'/> <! -- Playback file address -->
<Param name = "playcount" value = "1"/> <! -- Control the number of playbacks, which is an integer -->
<Param name = "rate" value = "1"/> <! -- The playback speed is controlled. 1 is normal, and decimal places are allowed. -->
<Param name = "currentposition" value = "0"/> <! -- Control settings: Current Position -->
<Param name = "currentmarker" value = "0"/> <! -- Control settings: Current tag -->
<Param name = "defaultframe" value = ""/> <! -- Display default frame -->
<Param name = "invokeurls" value = "0"/> <! -- Script command setting: whether to call URL -->
<Param name = "baseurl" value = ""/> <! -- Script command setting: called URL -->
<Param name = "stretchtofit" value = "0"/> <! -- Scale up or not -->
<Param name = "volume" value = "50"/> <! -- The default sound size is 0%-100%, and 50 is 50%. -->
<Param name = "mute" value = "0"/> <! -- Mute or not -->
<Param name = "uimode" value = "full"/> <! -- Player display mode: full display all; Mini is the most simplified; none does not show the playback control, only the video window is displayed; invisible does not show all -->
<Param name = "windowlessvideo" value = "0"/> <! -- If it is 0, full screen is allowed; otherwise, it can only be viewed in the window -->
<Param name = "fullscreen" value = "0"/> <! -- Whether to enable automatic full screen playback -->
<Param name = "enableerrordialogs" value = "-1"/> <! -- Enable error prompt report -->
<Param name = "samistyle" value = ""/> <! -- Sami style -->
<Param name = "samilang" value = ""/> <! -- Sami language -->
<Param name = "samifilename" value = '<% = getsamifilepath () %>'/> <! -- Sami file path -->
<Param name = "captioningid" value = "caption"/> <! -- Display the div id of the subtitle -->

</Object>

-- %>

3.2 playback control

<% --



<Script language = "JavaScript" type = "text/JavaScript">
VaR timer;

Function changerate (I)
{
// Play () Stop () pause () currentposition current position (s); rate;
Document. Player. Controls. Pause ();
Document. Player. Object. settings. Rate = I;
Document. Player. Controls. Play ();
}
Function changeposition (I, j) // I is the starting position.
{

Document. Player. Controls. currentposition = I;
If (timer! = "Undefine ")
Window. cleartimeout (timer );
If (J! = 0)
Timer = Window. setTimeout ("Pause (" + J + ")", J * 1000); // The parameter here is millisecond
Document. Player. Controls. Play ();
}
Function pause (j)
{
Document. Player. Controls. Pause ();
}
</SCRIPT>

-- %>

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.