Share via


smartPlaylist Element

[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 smartPlaylist element contains the dynamically defined portion of a playlist.

<smartPlaylist
    version = "number"
>
</smartPlaylist>

Attributes

Term Description
version (required)
The decimal number representing the version number of the smart playlist schema. Set to 1.0.0.0.

Parent/Child Elements

Hierarchy Elements
Parent seq
Child querySet, filter

Remarks

A smartPlaylist element typically contains a querySet element and can also contain a filter element.

Examples

<smartPlaylist version = "1.0.0.0">
    <querySet>
        <sourceFilter 
            type = "smartFilterObject"
            id = "12345678-1234-3333-abCD-123ABCdefGHI"
            name = "Music in my library">
                <fragment name = "Genre">
                    <argument name = "condition">Is</argument>
                    <argument name = "value">Rock</argument>
                </fragment>
                <fragment name = "Album Artist">
                    <argument name = "condition">Is Not</argument>
                    <argument name = "value">Brenda Diaz</argument>
                </fragment>
        </sourceFilter>
    </querySet>
    <filter>
    </filter>
</smartPlaylist>

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later.

See also

argument Element

filter Element

fragment Element

querySet Element

seq Element

Windows Media Playlist Elements Reference