Freigeben über


WM/MediaClassSecondaryID Attribute

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

The WM/MediaClassSecondaryID attribute is a GUID specifying the secondary media class, which is a subclass of the primary media class.

Applies To

Remarks

This attribute is stored in both the library and the digital media file.

The following table lists the supported GUIDs and their descriptions.

GUID Description
D0E20D5C-CAD6-4F66-9FA1-6018830F1DCC The media object represents a static playlist.
EB0BAFB6-3C4F-4C31-AA39-95C7B8D7831D The media object represents an auto playlist.

MediaClassSecondaryID is an alias for this attribute.

The Windows Media Format SDK constant for this attribute is g_wszWMMediaClassSecondaryID.

To determine whether you can change the value of this attribute, use the Media.isReadOnlyItem method.

Requirements

Requirement Value
Version
The photo item is supported only in Windows Media Player 10 or later The radio item is supported only in Windows Media Player 9 Series All other items are supported in Windows Media Player 9 Series and later

See also

Attribute Reference