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>