Embed Web pages into the WMP player to play AVI videos

Source: Internet
Author: User
Tags silver light

WMP is short for Windows Media Player. Windows Media Player is a player that comes with Windows systems. It can play MP3, WMA, WAV, and other audio files. rm files are not supported by Microsoft by default due to competition, but in Versions later than V8, if the decoder is installed, the RM file can be played. Video aspect can play AVI, MPEG-1, MPEG-2, DVD.

  
Currently, web pages generally use the embedded WMP player to play videos online. In the multi-browser game era, such as the popularity of FF (Firefox) and the appearance of chrome, WMP is no longer a "general" component of the year. Flash may temporarily replace WMP for playing music. Although Flash has many advantages such as cross-platform and large installation volume, it has shortcomings in sound quality and format support, it puts a lot of pressure on Webpage music playback. Microsoft, with more than 90% of the market share of windows and its powerful technical development strength, has made its Silverlight (silver light) Installation increase. However, Silverlight is a newborn, its development technology is not widely used, so it cannot be used as a popular web player. Microsoft finally developed support plug-ins for browsers other than IE. This document uses avi as an example to describe how to write the code. For other formats, see modify the AVI format.

  
A:
  
1. Put this piece of code in the HTML file, where application/x-mplayer2 is compatible with FF, the key to chrome:

  
<Embed src = "IP Address/virtual directory/video file name (Alizee-La Isla Bonita. avi) "width =" 200 "Height =" 150 "type =" application/x-mplayer2 "loop =" true "> </embed>

  
2. Modify the SRC parameter (classid can only be recognized by IE, which generally refers to calling the corresponding player component)

  
B:
  
<Object ID = "video1" classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width = "320" Height = "240" border = "0">
  
<Param name = "showdisplay" value = "0">
  
<Param name = "showcontrols" value = "1">
  
<Param name = "autostart" value = "1">
  
<Param name = "autorewind" value = "0">
  
<Param name = "playcount" value = "0">
  
<Param name = "appearance value =" 0 value = ">
  
<Param name = "borderstyle value =" 0 value = ">
  
<Param name = "moviewindowheight" value = "240">
  
<Param name = "movie1_wwidth" value = "320">
  
<Param name = "FILENAME" value = "http://www.windstudio.net/temp.avi">
  
<Embed width = "320" Height = "240" border = "0" showdisplay = "0" showcontrols = "1" playcount = "0" moviedomainwheight = "240" moviedomainwwidth =" 320 "filename =" http://www.windstudio.net/temp.avi"
Src = "http://www.windstudio.net/temp/temp.avi">
  
</Embed>
  
</Object>

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.