IWMPMedia Interface

Other versions of this page are also available for the following:

8/28/2008

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

In addition to the methods inherited from IDispatch, the IWMPMedia interface exposes the following methods.

Method Description

IWMPMedia::get_attributeCount

Retrieves the number of attributes that can be queried and/or set for the media item.

IWMPMedia::get_duration

Retrieves the duration in seconds of the current media item.

IWMPMedia::get_durationString

Retrieves a value indicating the duration of the current media item in HH:MM:SS format.

IWMPMedia::get_imageSourceHeight

Retrieves the height of the current media item in pixels.

IWMPMedia::get_imageSourceWidth

Retrieves the width of the current media item in pixels.

IWMPMedia::get_isIdentical

Retrieves a value indicating whether the specified object is the same as the current one.

IWMPMedia::get_name

Retrieves the name of the media item.

IWMPMedia::get_sourceURL

Retrieves the URL of the media item.

IWMPMedia::getAttributeName

Retrieves the name of the attribute corresponding to the specified index.

IWMPMedia::getItemInfo

Retrieves the value of the specified attribute for the media item.

See Also

Reference

Windows Media Player OCX Control 7.0 Supported Interfaces