Windows Media Player 11 SDK Media.nameĀ 

Windows Media Player SDK banner art

Previous Next

Media.name

The name property specifies or retrieves the name of the media item.

Syntax

  
    
  

Possible Values

This property is a read/write String containing the name of the media item.

Remarks

To retrieve the value of this property, read access to the library is required. To specify the value of this property, full access to the library is required. For more information, see Library Access.

Before using this method to specify the name of a media item, use isReadOnlyItem to determine whether the name can be set.

Windows Media Player 10 Mobile: This property is read-only.

Example Code

The following JScript example uses Media.name to change the name of the current media item. An HTML TEXT input element named NameText allows the user to enter a text string for the new name. 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