Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Player.close method

The close method releases Windows Media Player resources.

Syntax


Player.close()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

This method closes the current digital media file, not Windows Media Player itself.

Examples

The following example creates an HTML BUTTON element that, when clicked, stops playback in Windows Media Player and releases the resources in use. The Player object was created with ID = "Player".



<INPUT  TYPE = "BUTTON"  ID = "CLOSEIT"  VALUE = "Close it"  onClick = "

        /* Close the Player object. */
        Player.close();
">



Requirements

Version

Windows Media Player version 7.0 or later.

DLL

Wmp.dll

See also

Player Object

 

 

Show: