Windows Media Player 11 SDK IWMPMedia Interface (VB and C#)
Previous | Next |
IWMPMedia Interface (VB and C#)
Provides a way to set and retrieve the properties of a media item.
The IWMPMedia interface exposes the following properties.
Property | Description |
attributeCount | Gets the number of attributes that can be queried and/or set for the media item. |
duration | Gets the duration in seconds of the current media item. |
durationString | Gets a value indicating the duration of the current media item in HH:MM:SS format. |
imageSourceHeight | Gets the height of the current media item in pixels. |
imageSourceWidth | Gets the width of the current media item in pixels. |
isIdentical | Gets a value indicating whether the specified media item is the same as the current one. In C#, this is the get_isIdentical method. |
markerCount | Gets the number of markers in the media item. |
name | Gets or sets the name of the media item. |
sourceURL | Gets the URL of the media item. |
The IWMPMedia interface exposes the following methods.
Method | Description |
getAttributeName | Returns the name of the attribute corresponding to the specified index. |
getItemInfo | Returns the value of the specified attribute for the media item. |
getItemInfoByAtom | Returns the value of the attribute with the specified index number. |
getMarkerName | Returns the name of the marker at the specified index. |
getMarkerTime | Returns the time of the marker at the specified index. |
isMemberOf | Returns a value indicating whether the specified media item is a member of the specified playlist. |
isReadOnlyItem | Returns a value indicating whether the attributes of the specified media item can be edited. |
setItemInfo | Sets the value of the specified attribute for the media item. |
Get an IWMPMedia interface by using the following properties or methods accessed through the following object or interface.
Object or interface | Property or method |
IWMPControls | currentItem |
AxWindowsMediaPlayer | currentMedia, newMedia |
IWMPPlaylist | Item (get_Item in C#) |
See Also
- Interfaces for Visual Basic .NET and C#
- IWMPMedia2 Interface (VB and C#)
- IWMPMedia3 Interface (VB and C#)
Previous | Next |