Object Model Reference for Scripting
The object model reference for scripting contains detailed information about the Windows Media Player ActiveX control object model. The information in this section is presented in a style designed for use with script languages like Microsoft JScript.
Note All methods, properties, and events are fully supported in Windows Media Player 10 Mobile or later unless explicitly stated otherwise.
The object model reference for scripting contains documentation for the following objects and their associated methods, properties, and events.
| Object | Description |
|---|---|
| Cdrom | Methods and properties for accessing a CD or DVD in its drive. |
| CdromCollection | Methods and properties for accessing a collection of CD or DVD drives. |
| ClosedCaption | Properties for including captions with a media item. |
| Controls | Methods and properties representing the transport controls of Windows Media Player, such as Play, Stop, and Pause. |
| DVD | A property, methods, and events for working with DVDs. |
| Error | Methods and properties providing access to a collection of ErrorItem objects. |
| ErrorItem | Properties that provide information about errors. |
| Media | Methods and properties relating to media items. |
| MediaCollection | Methods that provide access to a collection of Media objects. |
| MetadataPicture | Properties for retrieving information on the image values of the WM/Picture metadata attribute. |
| MetadataText | Properties for retrieving metadata for complex textual metadata attributes. |
| Network | Properties relating to the network connection of Windows Media Player. |
| Player | Methods, properties, and events that Windows Media Player can be programmed to respond to. |
| PlayerApplication | Methods and properties for switching between a remoted Windows Media Player control and the full mode of the Player. Can only be used with C++ programs that embed the control in remote mode. |
| Playlist | Methods and properties for manipulating lists of media items. |
| PlaylistArray | A method and a property for accessing a collection of Playlist objects by index number. |
| PlaylistCollection | Methods for organizing a collection of Playlist objects. |
| Query | Methods for modifying a compound query. |
| Settings | Properties that allow the specification or retrieval of Windows Media Player settings. |
| StringCollection | A method and a property for manipulating collections of strings. |
Related topics
Send comments about this topic to Microsoft
Build date: 2/15/2012
Re: question - firefox ignores URL/FILENAME/SRC ...
Re: question - firefox ignores URL/FILENAME/SRC ...
$0$0
$0
$0You can try adding the <embed> tag nested within the <object></object> tags like the <param> tags or get rid of the <object> and just use the <embed> tag. Both work in firefox 3 and above. The syntax is the same for nesting or using with out <object>. $0
$0$0
$0
$0
$0<EMBED TYPE="application/x-mplayer2" SRC="media file name" NAME="MediaPlayer" WIDTH="xxx" HEIGHT="xxx" ShowControls="1" ShowStatusBar="1" ShowDisplay="1" autostart="1"></EMBED> $0
$0
$0$0
$0
$0This will let you use the SRC attribute and dynamically change it.$0
$0$0
$0
- 3/6/2011
- Hecter
mediaplayer.URL does not accept # in string
The activeX object Media Player does not accept a URL which includes %23 or #. Windows Media Player and Creative Organizer both play the file correctly. I have tried passing the URL both with the '#' symbol and also the escaped '%23' code. Neither works. Is there a restriction or is it a bug. It should accept the '%23' sequence so it must be a bug ??
- 12/26/2010
- Siobud
INCORRECT for firefox - firefox ignores URL/FLENAME/SRC and insists upon data= tag in object
firefox ignores URL/FLENAME/SRC and insists upon data="media source URL" in the <object> tag itself
does anyone know if assigning an id to the data tag will allow for dynamically changing the media source url?
I have problems with switching the data src dynamically and really need to accomplish this somehow.
does anyone know if assigning an id to the data tag will allow for dynamically changing the media source url?
I have problems with switching the data src dynamically and really need to accomplish this somehow.
- 9/10/2010
- Enter your display namekensilverman
- 10/22/2010
- webdev98765