Use the Window Media Player web Player, windowplayer
Recently, I was working on an IETM project. The project needs to use WebBrower to display the xml containing avi. There is always a problem with avi display, I found this code to play avi in html on the Internet. It works well on Win10. I will try it on a Win7 machine tomorrow. Windows Media Player always has many unexpected problems, which is really a headache.
Use window media play web player
We should be familiar with this video player. It is a player that comes with the window system. I hate it very much. Although it comes with the system, it is basically useless.
The following code uses the widow media play webpage player to play video formats such as wmv, mpg, mov, and avi:
<Object id = "MediaPlayer" classid = "clsid: 22D6F312-B0F6-11D0-94AB-0080C74C7E95" width = "800" height = "600" standby = "Loading Windows Media Player components... "Type =" application/x-oleobject "codebase =" http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112 "> <Param name =" FileName "value =" video address "> <param name =" AutoStart "value =" true "> <param name =" ShowControls "value =" true "> <param name =" BufferingTime "value =" 2 "> <param name =" ShowStatusBar "value =" true "> <param name =" AutoSize "value =" true"> <param name = "InvokeURLs" value = "false"> <param name = "AnimationatStart" value = "1"> <param name = "TransparentatStart" value = "1"> <param name = "Loop" value = "1"> <embed type = "application/x-mplayer2" src = "video address" name = "MediaPlayer" autostart = "1" showstatusbar = "1" showdisplay = "1" showcontrols = "1" loop = "0" videoborder3d = "0" pluginspage =" http://www.microsoft.com/Windows/MediaPlayer/ "Width =" 800 "height =" 600 "> </embed> </object>