Share via


Windows Media Player 11 SDK Media.isReadOnlyItem 

Windows Media Player SDK banner art

Previous Next

Media.isReadOnlyItem

The isReadOnlyItem method returns a value indicating whether the specified attribute of the media item can be edited.

Syntax

  

Parameters

attribute

String indicating the name of the attribute to test. For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference..

Return Values

This method returns a Boolean.

Remarks

If an attribute is read-only, then it cannot be set with the setItemInfo method. Note that this method may return different values for a particular attribute when used with different versions of Windows Media Player.

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

Windows Media Player 10 Mobile: This property always returns true.

Example Code

The following JScript example uses Media.isReadOnlyItem to fill an HTML TEXTAREA element named rwText with information about the current media item. The code outputs each attribute of the current media item, along with text indicating whether the attribute is read-only or read/write. 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