Partager via


IWMPControls::pause (Windows Embedded CE 6.0)

1/6/2010

The pause method pauses playback of the media item.

Syntax

HRESULT pause(); 

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

When a file is paused, Windows Media Player does not give up any system resources, such as the audio device.

Certain media types cannot be paused, such as live streams. To determine whether a particular media type can be paused, call the IWMPControls::get_isAvailable method and pass in the BSTR value "pause".

See Also

Reference

IWMPControls Interface