Share via


Windows Media Player 11 SDK Media.isIdentical 

Windows Media Player SDK banner art

Previous Next

Media.isIdentical

The isIdentical method retrieves a value indicating whether the supplied object is the same as the current one.

Syntax

  

Parameters

media

Media object to compare with the current Media object.

Return Values

This method returns a Boolean.

Example Code

The following JScript example uses Media.isIdentical to check whether a media item named newMedia is the same as the current media item. If they are not the same, the new media item is played. Otherwise, the current media continues to play uninterrupted. 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