Expand
PARAM Elements in an OBJECT Element

Windows Media Player uses the PARAM element to define specific startup conditions for the control. The PARAM element is embedded inside the OBJECT element.

For example, if you want to define whether the autoStart property is True, you would embed the PARAM element inside the OBJECT element.



<OBJECT ID="Player"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM name="autoStart" value="True">
</OBJECT>


You can have as many PARAM elements in an OBJECT element as you want. PARAM has two attributes, name and value. Both attributes must be set.

The supported PARAM attributes vary slightly among browsers and mime types. The following table shows the attributes supported by the Internet Explorer and Firefox browsers. The preferred mime type for the Firefox browser is application/x-ms-wmp, however, there are several other mime types that you can use to embed the Player control in a Web page hosted by the Firefox browser. The fourth column of the table shows the attributes that are supported when you use a mime type other than application/x-ms-wmp.

PARAM nameInternet ExplorerFirefox with mime type application/x-ms-wmpFirefox with any other mime type
autoStartyesyesyes
balanceyesyesyes
baseURLyesyesyes
captioningIDyesyesyes
currentMarkeryesyesyes
currentPositionyesyesyes
defaultFrameyesnono
enableContextMenuyesyesyes
enabledyesyesyes
enableErrorDialogsyesyesno
fileNamenoyesyes
fullScreenyesnono
invokeURLsyesnono
muteyesyesyes
playCountyesyesno
rateyesyesyes
SAMIFileNameyesyesyes
SAMILangyesyesyes
SAMIStyleyesyesyes
SRCnoyesyes
stretchToFityesyesno
URLyesyesyes
volumeyesyesyes
windowlessVideoyesyesyes

 

Note  The fileName and SRC PARAM elements are supported by the Firefox plug-in, but not by Internet Explorer. They both perform the same function as the URL PARAM element.

See the Object Model Reference for Scripting for more details about the values for each name attribute.

Related Topics

Using the Windows Media Player Control in a Web Page

 

 

Send comments about this topic to Microsoft

Build date: 8/24/2010

Community ContentAdd
very useful!
good, it's very useful.
Why firefox plugin does not implements AutoSize property?
It is very useful property when users posting video content to a site.
Web-designer doesn't know what is the real extent (in pixels) of the content, btw player UI has some extent too.
WHY so useful property is NOT implemented?
Developers, developers, developers. Usability, usability, usability.
Page view tracker