Windows Media Player 11 SDK Controls.stopĀ 

Windows Media Player SDK banner art

Previous Next

Controls.stop

The stop method stops playback of the media item.

Syntax

  
    
  

Parameters

This method takes no parameters.

Return Values

This method does not return a value.

Remarks

This method causes Windows Media Player to release any system resources it is using, such as the audio device. The current media item, however, is not released.

When the player is stopped, the track rewinds to the beginning. Calling play will then begin playback of the clip from the beginning. To halt a play operation without changing the current position, use the pause method.

Example Code

The following example creates an HTML BUTTON element that uses stop to stop playback. 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