media 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 media element specifies one of the media items in a playlist.
<media
src = "URL"
cid = "WPL_GUID"
tid = "WPL_GUID"
>
</media>
Attributes
Term | Description |
---|---|
src (required) |
The URL of a media item. |
cid |
The content ID that is unique to this media item. |
tid |
The tracking ID that can be used to track the File System Object for this media item. |
Parent/Child Elements
Hierarchy | Elements |
---|---|
Parent | seq |
Child | None |
Remarks
The cid attribute (the content ID) is populated by the Windows Media Player as a way to uniquely identify a piece of media content even if its metadata attributes have been changed. This allows the sharing of playlists across computers, because the content can be identified on another computer, and the path to it can be "auto-repaired" by the Windows Media Playlist. The tid attribute (the tracking ID) uses the Windows file system to auto-repair the path to the media if the name or location of the file is changed.
Examples
<media
src = "laure.wma"
cid = "ABCDEFGH-abcd-1234-WXYZ-ABCDEF000000"
tid = "12345678-1234-abcd-ABCD-123456abcDEF"
>
</media>
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player 9 Series or later. |