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 webpage 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 name Internet Explorer Firefox with mime type application/x-ms-wmp Firefox with any other mime type
autoStart yesyesyes
balance yesyesyes
baseURL yesyesyes
captioningID yesyesyes
currentMarker yesyesyes
currentPosition yesyesyes
defaultFrame yesnono
enableContextMenu yesyesyes
enabled yesyesyes
enableErrorDialogs yesyesno
fileNamenoyesyes
fullScreen yesnono
invokeURLs yesnono
mute yesyesyes
playCount yesyesno
rate yesyesyes
SAMIFileName yesyesyes
SAMILang yesyesyes
SAMIStyle yesyesyes
SRCnoyesyes
stretchToFit yesyesno
URL yesyesyes
volume yesyesyes
windowlessVideo yesyesyes

 

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

 

 

Show: