Share via


Windows Media Player 11 SDK CdromCollection.itemĀ 

Windows Media Player SDK banner art

Previous Next

CdromCollection.item

The item method retrieves the Cdrom object at the given index.

Syntax

  

Parameters

index

Number (long) containing the index.

Return Values

This method returns a Cdrom object.

Remarks

To use this method, read access to the library is required. For more information, see Library Access.

Windows Media Player 10 Mobile: This method is not supported.

Example Code

The following JScript example uses CdromCollection.item to print the playlist name from each CD available on the computer. If the drive actually contains DVD content, Windows XP or later is required. An HTML TextArea element was created with ID = "playlists". The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next