다음을 통해 공유


Cdrom Object

[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 Cdrom object provides a way to access a CD or DVD in its drive.

The Cdrom object supports the following properties.

Property Description
driveSpecifier Retrieves the CD or DVD drive letter.
playlist Retrieves a Playlist object representing the tracks on the CD currently in the CD drive or the root-level title entries for DVD.

 

The Cdrom object supports the following method.

Method Description
eject Ejects the CD or DVD from the drive.

 

The Cdrom object is accessed through the following method.

Object Method
CdromCollection item

 

For purposes of illustration, player.cdromCollection.item(index) is used in the reference syntax sections.

See also

Object Model Reference for Scripting