<object classid="CLSID:XXX" width="320" height="256">
<param name="name1" value="value1" />
<param name="name2" value="value2" />
[HTML TO DISPLAY IF OBJECT DOESN'T LOAD]
</object>
Where XXX is the class id of the application you want to use to play the content.
You find the class id by opening registry editor, going to HKEY_CLASSES_ROOT and finding the application.
| Windows Media Player: | MediaPlayer.MediaPlayer |
| QuickTime: | QuickTime.QuickTime |
| RealPlayer: | rmocx.RealPlayer G2 Control |
| Shockwave Flash: | ShockwaveFlash.ShockwaveFlash |
If this key has a CurVer subkey, find the (Default) value for that and that will tell you the key containing the class id.
| Windows Media Player: | MediaPlayer.MediaPlayer/CurVer/(Default) = MediaPlayer.MediaPlayer.1 |
| QuickTime: | QuickTime.QuickTime/CurVer/(Default) = QuickTime.QuickTime.4 |
| RealPlayer: | rmocx.RealPlayer G2 Control/CurVer/(Default) = rmocx.RealPlayer G2 Control.1 |
| Shockwave Flash: | ShockwaveFlash.ShockwaveFlash/CurVer/(Default) = ShockwaveFlash.ShockwaveFlash.7 |
Then go to that key, and find the (Default) entry in its CLSID subkey.
| Windows Media Player: | MediaPlayer.MediaPlayer.1/CLSID/(Default) = 22D6F312-B0F6-11D0-94AB-0080C74C7E95 |
| QuickTime: | QuickTime.QuickTime.4/CLSID/(Default) = 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B |
| RealPlayer: | rmocx.RealPlayer G2 Control.1/CLSID/(Default) = CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA |
| Shockwave Flash: | ShockwaveFlash.ShockwaveFlash.7/CLSID/(Default) = D27CDB6E-AE6D-11cf-96B8-444553540000 |
| Application | Sample Code | Result | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows Media PlayerClass ID:Used for: .wmv, .avi Notes: The application automatically grows/shrinks to fit the specified object width and height, although the video itself will not automatically grow beyond 100%. "loop" is a cut-down alternative to "playcount". Use one or the other. loop = false : equivalent to playcount = 1. loop = true : equivalent to playcount = 0. You can set "playcount" to 2, 3, etc., while you cannot get the same effect with "loop". |
<object width="320" height="256" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="filename" value="1.avi" /> <param name="displaysize" value="0" /> <param name="autostart" value="false" /> <param name="playcount" value="1" /> <param name="showcontrols" value="true" /> <param name="showaudiocontrols" value="false" /> <param name="showstatusbar" value="false" /> Object failed to load! </object>Parameters:
|
|||||||||||||||||||||
QuickTimeClass ID:Used for: .mov, .mpg Notes: None |
<object width="320" height="256" classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"> <param name="src" value="ExploHead.mpeg" /> <param name="href" value="http://quicktime.com" /> <param name="target" value="_blank" /> <param name="scale" value="tofit" /> <param name="volume" value="10" /> <param name="autoplay" value="false" /> <param name="loop" value="false" /> <param name="controller" value="true"> <param name="starttime" value="00:00:06:00" /> <param name="endtime" value="00:00:09:20" /> Object failed to load! </object>Parameters:
|
|||||||||||||||||||||
Real PlayerClass ID:Used for: .rm, .rmj, .mpg, .mp3 Notes: It seems you can't embed .ram files (which are lists of realplayer clips for continuous play). You can use "numloop" instead of "loop". "loop" gives you the option of 1 play or infinite plays, "numloop" allows 1, 2, 3 and so on... but not infinite. |
<object width="320" height="256" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA"> <param name="src" value="videotest.rm" /> <param name="center" value="false" /> <param name="maintainaspect" value="true" /> <param name="autostart" value="false" /> <param name="numloop" value="1" /> <param name="controls" value="imagewindow,all" /> Object failed to load! </object>Parameters:
|
|||||||||||||||||||||
Flash PlayerClass ID:Used for: .swf Notes: None |
<object width="320" height="256" classid="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"> <param name="movie" value="32volset.swf" /> Object failed to load! </object>Parameters:
|