IWMPControls::stop (Windows Embedded CE 6.0)
1/6/2010
The stop method stops playback of the media item.
Syntax
HRESULT stop();
Parameters
This method takes no parameters.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
S_OK |
The method succeeded. |
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 Windows Media Player is stopped, the current playback point in the media item is reset to the beginning of the item. Subsequently calling IWMPControls::play will start playback from the beginning of the media item. To halt a play operation without changing the current position, use the IWMPControls::pause method.
The stop method does not work for all media types. To determine whether you can use it in a clip, call the IWMPControls::get_isAvailable method and pass in the BSTR value "stop".