The most useful piece of code to play the video is:
Program code
<object classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width= "height=" "><param name=" Autostart "value=" 0 "/><param name=" url "value=" video address. wmv "/><embed src=" video address. wmv "autostart=" 0 "type=" Video/x-ms-wmv "width=" "height=" ></embed></object>
Other look at the parameters to modify it yourself
1.avi format
The code snippet is as follows:
Program code
<object id= "video" width= "height=" border= "0" classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" >
<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= ">"
<param name= "Moviewindowwidth" value= ">"
<param name= "FileName" value= "/mbar.avi" >
<embed width= "height=" border= "0" showdisplay= "0" showcontrols= "1" autostart= "1" autorewind= "0" playcount= "0" moviewindowheight= "moviewindowwidth=" filename= "/mbar.avi" src= "Mbar.avi" >
</embed>
</object>
2.mpg format
The code snippet is as follows:
Program code
<object classid= "clsid:05589fa1-c356-11ce-bf01-00aa0055595a" id= "ActiveMovie1" width= "239" height= ">"
<param name= "appearance" value= "0" >
<param name= "AutoStart" value= "-1" >
<param name= "Allowchangedisplaymode" value= "-1" >
<param name= "Allowhidedisplay" value= "0" >
<param name= "Allowhidecontrols" value= "-1" >
<param name= "Autorewind" value= "-1" >
<param name= "Balance" value= "0" >
<param name= "currentposition" value= "0" >
<param name= "Displaybackcolor" value= "0" >
<param name= "Displayforecolor" value= "16777215" >
<param name= "DisplayMode" value= "0" >
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<param name= "Enablepositioncontrols" value= "-1" >
<param name= "Enableselectioncontrols" value= "0" >
<param name= "Enabletracker" value= "-1" >
<param name= "Filename" value= "/mpeg/halali.mpg" valuetype= "ref" >
<param name= "Fullscreenmode" value= "0" >
<param name= "moviewindowsize" value= "0" >
<param name= "Playcount" value= "1" >
<param name= "Rate" value= "1" >
<param name= "SelectionStart" value= "-1" >
<param name= "Selectionend" value= "-1" >
<param name= "Showcontrols" value= "-1" >
<param name= "Showdisplay" value= "-1" >
<param name= "Showpositioncontrols" value= "0" >
<param name= "Showtracker" value= "-1" >
<param name= "Volume" value= " -480" >
</object>
4.RM format
The code snippet is as follows:
Program code
<object id=video1 classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" height=288 WIDTH=352>
<param name= "_extentx" value= "9313" >
<param name= "_extenty" value= "7620" >
<param name= "AUTOSTART" value= "0" >
<param name= "SHUFFLE" value= "0" >
<param name= "PREFETCH" value= "0" >
<param name= "nolabels" value= "0" >
<param name= "SRC" value= "rtsp://203.*.*.35/vod/dawan-a.rm ">
<param name= "CONTROLS" value= "Imagewindow" >
<param name= "CONSOLE" value= "Clip1" >
<param name= "LOOP" value= "0" >
<param name= "Numloop" value= "0" >
<param name= "CENTER" value= "0" >
<param name= "Maintainaspect" value= "0" >
<param name= "BackgroundColor" value= "#000000" ><embed SRC type= "Audio/x-pn-realaudio-plugin" CONSOLE= "Clip1 "Controls=" Imagewindow "height=" 288 "width=" 352 "autostart=" false ">
</OBJECT>
5.wmv format
The code snippet is as follows:
Program code
<object id= "Nsplay" width=200 height=180 classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6, 4,5,715 "standby=" Loading Microsoft Windows Media Player components ... "type=" Application/x-oleobject "align=" right " Hspace= "5" >
<param name= "Autorewind" value=1>
<param name= "FileName" value= "/blog/******.wmv" >
<param name= "Showcontrols" value= "1" >
<param name= "Showpositioncontrols" value= "0" >
<param name= "Showaudiocontrols" value= "1" >
<param name= "Showtracker" value= "0" >
<param name= "Showdisplay" value= "0" >
<param name= "ShowStatusBar" value= "0" >
<param name= "Showgotobar" value= "0" >
<param name= "showcaptioning" value= "0" >
<param name= "AutoStart" value=1>
<param name= "Volume" value= " -2500" >
<param name= "Animationatstart" value= "0" >
<param name= "Transparentatstart" value= "0" >
<param name= "allowchangedisplaysize" value= "0" >
<param name= "Allowscan" value= "0" >
<param name= "Enablecontextmenu" value= "0" >
<param name= "Clicktoplay" value= "0" >
</object>
6.WMA format
Put it in <body>. Here are some explanations:
<object classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id= "MediaPlayer1" >
<param name= "Filename" value= "/blog/1.wma" > <!--the location of your file--
<param name= "Playcount" value= "1" ><!--control Repetitions: "X" for several repetitions; X=0, infinite loops. -
<param name= "AutoStart" value= "0" ><!--control playback mode: x=1, open the web automatically play; X=0, press the play key to play. -
<param name= "Clicktoplay" value= "1" ><!--control playback switch: x=1, mouse click to control playback or pause status; X=0, disable this feature. -
<param name= "displaysize" value= "0" ><!--control Playback screen: x=0, original size; X=1, half-size; x=2,2 times the size. -
<param name= "Enablefullscreen controls" value= "1" ><!--control Toggle fullscreen: x=1, allow switching to full screen; X=0, disable this feature. -
<param name= "Showaudio controls" value= "1" ><!--control Volume: X=1, allows to adjust the volume; x=0, disable volume adjustment. -
<param name= "enablecontext Menu" value= "1" ><!--control shortcut menus: x=1, allowing the right-click menu to be used; X=0, disable the right-click menu. -
<param name= "Showdisplay" value= "1" ><!--Control Copyright information: X=1, show movie and author information; x=0, do not display relevant information--
</object>
7.Windows Media Player Series (different panel styles)
Comprehensive type:
Program code
<object classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6, 1,5,217 "
Id=mediaplayer type=application/x-oleobject width=210 height=340 standby= "Loading Microsoft Windows Media Player Components ... " Viewastext align=middle>
<param Name=audiostream value=-1>
<param name=autosize value=0>
<param Name=autostart value=1>
<param Name=animationatstart value=0>
<param Name=allowscan value=-1>
<param name=allowchangedisplaysize value=0>
<param Name=autorewind value=0>
<param name=balance value=0>
<param name=baseurl value= "" >
<param Name=bufferingtime value=5>
<param name=captioningid value= "" >
<param Name=clicktoplay value=0>
<param Name=cursortype value=32512>
<param name=currentposition value=-1>
<param Name=currentmarker value=0>
<param Name=defaultframe value=1>
<param Name=displaybackcolor value=0>
<param Name=displayforecolor value=16777215>
<param Name=displaymode value=0>
<param name=displaysize value=0>
<param name=enabled value=-1>
<param Name=enablecontextmenu value=-1>
<param Name=enablepositioncontrols value=0>
<param Name=enablefullscreencontrols value=0>
<param Name=enabletracker value=1>
<param name=filename value= "http://202.102.*.*/flash/2/fff.swf ">
<param Name=invokeurls value=-1>
<param Name=language value=-1>
<param Name=mute value=0>
<param Name=playcount value=1>
<param Name=previewmode value=0>
<param name=rate value=1>
<param name=samilang value= "" >
<param name=samistyle value= "" >
<param name=samifilename value= "" >
<param Name=selectionstart value=0>
<param Name=selectionend value=true>
<param name=sendopenstatechangeevents value=-1>
<param name=sendwarningevents value=-1>
<param name=senderrorevents value=-1>
<param name=sendkeyboardevents value=0>
<param name=sendmouseclickevents value=0>
<param name=sendmousemoveevents value=0>
<param name=sendplaystatechangeevents value=-1>
<param name=showcaptioning value=0>
<param Name=showcontrols value=1>
<param Name=showaudiocontrols value=1>
<param Name=showdisplay value=1>
<param Name=showgotobar value=1>
<param Name=showpositioncontrols value=1>
<param Name=showstatusbar value=1>
<param Name=showtracker value=1>
<param Name=transparentatstart value=0>
<param Name=videoborderwidth value=0>
<param Name=videobordercolor value=0>
<param Name=videoborder3d value=0>
<param Name=volume value=-1070>
<param Name=windowlessvideo value=1>
</object>
Web player parameter meaning Windows Media player web player parameter meaning
(default 0 is no,-1 or 1 is yes)
<object classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id= "MediaPlayer1" width= "286" height= "225" >
<param name= "Audiostream" value= "-1" >
<param name= "AutoSize" value= "-1" >
< whether!--automatically adjusts the playback size-
<param name= "AutoStart" value= "-1" >
<!--is automatically played--
<param name= "Animationatstart" value= "-1" >
<param name= "Allowscan" value= "-1" >
<param name= "Allowchangedisplaysize" value= "-1" >
<param name= "Autorewind" value= "0" >
<param name= "Balance" value= "0" >
<!--left and right channel balance, leftmost-9640, 9640-->
<param name= "BaseURL" value>
<param name= "Bufferingtime" value= ">"
<!--buffer Time-
<param name= "Captioningid" value>
<param name= "Clicktoplay" value= "-1" >
<param name= "CursorType" value= "0" >
<param name= "currentposition" value= "0" >
<!--current playback Progress-1 is the same, 0 means that the starting unit is the second, for example, 10 means starting at 10th seconds, the value must be 1.0 or greater than or equal to 0-->
<param name= "Currentmarker" value= "0" >
<param name= "Defaultframe" value>
<param name= "Displaybackcolor" value= "0" >
<param name= "Displayforecolor" value= "16777215" >
<param name= "DisplayMode" value= "0" >
<param name= "displaysize" value= "0" >
<!--video 1-50%, 0-100%, 2-200%,3-full screen other values for 0 processing, decimals are rounded and then processed as before--
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<!-Right-click popup Menu Control--
<param name= "Enablepositioncontrols" value= "-1" >
<param name= "Enablefullscreencontrols" value= "-1" >
<param name= "Enabletracker" value= "-1" >
<!--whether to allow the playback progress bar to be pulled anywhere--
<param name= "Filename" value= "/blog/01.wma" valuetype= "ref" >
<!--played file address--
<param name= "Invokeurls" value= "-1" >
<param name= "Language" value= "-1" >
<param name= "Mute" value= "0" >
< is!--muted--
<param name= "Playcount" value= "ten" >
<!--repeat times, 0 is always repeated--
<param name= "PreviewMode" value= "-1" >
<param name= "Rate" value= "1" >
<!--playback rate control, 1 normal, allow decimals--
<param name= "Samistyle" value>
<!--Sami Style--
<param name= "Samilang" value>
<!--Sami language--
<param name= "Samifilename" value>
<!--subtitles id-->
<param name= "SelectionStart" value= "-1" >
<param name= "Selectionend" value= "-1" >
<param name= "sendopenstatechangeevents" value= "-1" >
<param name= "sendwarningevents" value= "-1" >
<param name= "senderrorevents" value= "-1" >
<param name= "sendkeyboardevents" value= "0" >
<param name= "sendmouseclickevents" value= "0" >
<param name= "sendmousemoveevents" value= "0" >
<param name= "sendplaystatechangeevents" value= "-1" >
<param name= "showcaptioning" value= "0" >
<!--If the caption is displayed as a piece of black, there will be a large chunk of black, not normally displayed--
<param name= "Showcontrols" value= "-1" >
<!--whether to show control, such as play, stop, pause--
<param name= "Showaudiocontrols" value= "-1" >
<!--whether to show volume control--
<param name= "Showdisplay" value= "0" >
<!--displaying program information, such as copyrights, etc.--
<param name= "Showgotobar" value= "0" >
<!--whether context menu is enabled--
<param name= "Showpositioncontrols" value= "-1" >
<!--whether to show the forward and the list, if the display is generally also gray not controllable-
<param name= "ShowStatusBar" value= "-1" >
<!--current playback information, showing whether it is playing, and the total playback time and the current time played to-
<param name= "Showtracker" value= "-1" >
<!--whether the current playback track bar is displayed, that is, the current playback progress bar--
<param name= "Transparentatstart" value= "-1" >
<param name= "videoborderwidth" value= "0" >
<!--the width of the display section, if it is smaller than the video width, the minimum is the video width, or increase to the specified value, and automatically increase the height. This change only changes the black box size of four weeks without changing the video size--
<param name= "Videobordercolor" value= "0" >
<!--Displays the color of the black box as an RGB value, such as FFFF00 yellow-to-
<param name= "Videoborder3d" value= "0" >
<param name= "Volume" value= "0" >
<!--volume, negative value is the current volume of the impairment, the value will automatically take absolute values, the maximum is 0, the minimum is -9640-->
<param name= "Windowlessvideo" value= "0" >
<!--If it is 0, you can allow fullscreen, otherwise you can only view it in the window.
</object>
The top of this player is the old-fashioned kind, version 6.4! The new player appears after MediaPlayer9.0, which means that only players with 9.0 or more than 9.0 will be able to use it properly.
-------------------------------------------------------------------------------
Here's the new player code, which is a lot simpler than it used to be:
<object id= "Player" height= "Up" width= "260" classid= "CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" >
<param name= "AutoStart" value= "-1" >
<!--is automatically played--
<param name= "Balance" value= "0" >
<!--adjust the left and right channel balance with the old player code above--
<param name= "Enabled" value= "-1" >
<!--player can be artificially controlled--
<param name= "Enablecontextmenu" value= "-1" >
<!--whether context menu is enabled--
<param name= "url" value= "/blog/1.wma" >
<!--played file address--
<param name= "Playcount" value= "1" >
<!--Play Count control, integer--
<param name= "Rate" value= "1" >
<!--playback rate control, 1 for normal, allow decimal,1.0-2.0-->
<param name= "currentposition" value= "0" >
<!--control Settings: Current Location--
<param name= "Currentmarker" value= "0" >
<!--control settings: Current Tag--
<param name= "Defaultframe" value= "" >
<!--show default frames--
<param name= "Invokeurls" value= "0" >
<!--script command settings: whether to invoke url-->
<param name= "BaseURL" value= "" >
<!--script command settings: called url-->
<param name= "Stretchtofit" value= "0" >
<!--proportional Stretch--
<param name= "Volume" value= ">"
<!--default sound size 0%-100%,50 is 50%-->
<param name= "Mute" value= "0" >
< is!--muted--
<param name= "Uimode" value= "Mini" >
<!--player display mode: Full display all, Mini is the most simplified; None does not show playback control, only the video window is displayed; Invisible all does not display-
<param name= "Windowlessvideo" value= "0" >
<!--If it is 0, you can allow fullscreen, otherwise you can only view it in the window.
<param name= "fullscreen" value= "0" >
<!--start playing automatically fullscreen--
<param name= "Enableerrordialogs" value= "-1" >
<!--whether to enable error message reporting--
<param name= "Samistyle" value>
<!--Sami Style--
<param name= "Samilang" value>
<!--Sami language--
<param name= "Samifilename" value>
<!--subtitles id-->
</object>
<object id= "Meplay" classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
Codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803"
standby= "Loading Windows Media Player components ..." type= "Application/x-oleobject"
width=640 height=550 style= "border:1px solid #666666;" >
<param name= "AutoStart" value= "-1" >
<!--is automatically played--
<param name= "Balance" value= "0" >
<!--adjust the left and right channel balance with the old player code above--
<param name= "Enabled" value= "-1" >
<!--player can be artificially controlled--
<param name= "Enablecontextmenu" value= "-1" >
<!--whether context menu is enabled--
<param name= "url" value= "http://www.jb51.net/LLZ.wmv" >
<!--played file address--
<param name= "Playcount" value= "1" >
<!--Play Count control, integer--
<param name= "Rate" value= "1" >
<!--playback rate control, 1 for normal, allow decimal,1.0-2.0-->
<param name= "currentposition" value= "0" >
<!--control Settings: Current Location--
<param name= "Currentmarker" value= "0" >
<!--control settings: Current Tag--
<param name= "Defaultframe" value= "" >
<!--show default frames--
<param name= "Invokeurls" value= "0" >
<!--script command settings: whether to invoke url-->
<param name= "BaseURL" value= "" >
<!--script command settings: called url-->
<param name= "Stretchtofit" value= "0" >
<!--proportional Stretch--
<param name= "Volume" value= ">"
<!--default sound size 0%-100%,50 is 50%-->
<param name= "Mute" value= "0" >
< is!--muted--
<param name= "Uimode" value= "Mini" >
<!--player display mode: Full display all, Mini is the most simplified; None does not show playback control, only the video window is displayed; Invisible all does not display-
<param name= "Windowlessvideo" value= "0" >
<!--If it is 0, you can allow fullscreen, otherwise you can only view it in the window.
<param name= "fullscreen" value= "0" >
<!--start playing automatically fullscreen--
<param name= "Enableerrordialogs" value= "-1" >
<!--whether to enable error message reporting--
<param name= "Samistyle" value>
<!--Sami Style--
<param name= "Samilang" value>
<!--Sami language--
<param name= "Samifilename" value>
<!--subtitles id-->
</object>