Player.versionInfo

[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 versionInfo property retrieves a String value specifying the version of the Windows Media Player.

Syntax

player .versionInfo

Possible Values

This property is a read-only String in the following format: "X.0.0.YYYY" where X represents the major version number and YYYY represents the build number.

Examples

The following example creates an HTML BUTTON element that, when clicked, displays a message box containing the version information for Windows Media Player. The Player object was created with ID = "Player".

<INPUT TYPE = "BUTTON"  ID = "VERSION"  VALUE = "Show Version"
    onClick = "
        /* Build the message containing the version info. */
        var message = 'Windows Media Player Version: ';
        message += '\n';
        message += Player.versionInfo;
 
        /* Display the message box. */
        alert(message);
">

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later.
DLL
Wmp.dll

See also

Player Object