Player6.Stop (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This method stops playback of the current clip.

Syntax

MediaPlayer.Stop()

Return Value

This method does not return a value.

Remarks

If the value of the SendPlayStateChangeEvents property is true and the file is not currently stopped, calling this method causes a PlayStateChange event to occur.

Calling this method does not change the current position unless the file is not seekable. Non-seekable files reset to the position specified by the SelectionStart property. This behavior is different than pressing the stop button on the Windows Media Player application, which always resets the current position to zero.

This method causes the Windows Media Player control to release any system resources it is using, such as the audio device.

To halt a play operation without changing the current position, use the Pause method.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also