次の方法で共有


WMPCD Protocol

[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 WMPCD protocol enables you to specify tracks on a compact disc using URL syntax. This is the general syntax of the protocol:

wmpcd://drive/track

The drive segment is the index of the CD drive. The track segment is the number of the track. The following example demonstrates using the WMPCD protocol.

player.url = "wmpcd://0/4";

The example plays the fourth track on the disc in the first CD drive (the drive whose index is 0).

Supported Protocols and File Types