Partager via


IWMPMedia2 (VB and C#) interface

[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.]

Provides access to an additional media item property.

In addition to the properties and methods inherited from IWMPMedia, the IWMPMedia2 interface exposes the following property.

Property Description
Error Gets an IWMPErrorItem interface if the media item has an error condition.

Get an IWMPMedia2 interface by casting the value returned by one of 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#)

Members

The IWMPMedia2 (VB and C#) interface does not define any members.

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPErrorItem (VB and C#)

IWMPMedia Interface (VB and C#)

IWMPMedia3 Interface (VB and C#)