Compartir a través de


IWMPMedia interface (wmp.h)

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Use the IWMPMedia interface to set and retrieve the properties of a media item.

Inheritance

The IWMPMedia interface inherits from the IDispatch interface. IWMPMedia also has these types of members:

Methods

The IWMPMedia interface has these methods.

 
IWMPMedia::get_attributeCount

The get_attributeCount method retrieves the number of attributes that can be queried and/or set for the media item.
IWMPMedia::get_duration

The get_duration method retrieves the duration in seconds of the current media item..
IWMPMedia::get_durationString

The get_durationString method retrieves a string indicating the duration of the current media item in HH:MM:SS format.
IWMPMedia::get_imageSourceHeight

The get_imageSourceHeight method retrieves the height of the current media item in pixels.
IWMPMedia::get_imageSourceWidth

The get_imageSourceWidth method retrieves the width of the current media item in pixels.
IWMPMedia::get_isIdentical

The get_isIdentical method retrieves a value indicating whether the specified object is the same as the current one.
IWMPMedia::get_markerCount

The get_markerCount method retrieves the number of markers in the media item.
IWMPMedia::get_name

The get_name method retrieves the name of the media item.
IWMPMedia::get_sourceURL

The get_sourceURL method retrieves the URL of the media item.
IWMPMedia::getAttributeName

The getAttributeName method retrieves the name of the attribute corresponding to the specified index.
IWMPMedia::getItemInfo

The getItemInfo method retrieves the value of the specified attribute for the media item.
IWMPMedia::getItemInfoByAtom

The getItemInfoByAtom method retrieves the value of the attribute with the specified index number.
IWMPMedia::getMarkerName

The getMarkerName method retrieves the name of the marker at the specified index.
IWMPMedia::getMarkerTime

The getMarkerTime method retrieves the time of the marker at the specified index.
IWMPMedia::isMemberOf

The isMemberOf method retrieves a value indicating whether the specified media item is a member of the specified playlist.
IWMPMedia::isReadOnlyItem

The isReadOnlyItem method retrieves a value indicating whether the attributes of the specified media item can be edited.
IWMPMedia::put_name

The put_name method specifies sets the name of the media item.
IWMPMedia::setItemInfo

The setItemInfo method sets the value of the specified attribute for the media item.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

Interfaces