IMFMediaSource::Stop Method
Stops all active streams in the media source.
Syntax
HRESULT Stop();
Parameter
Methode umfasst keine Parameter.
Rückgabewert
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Rückgabecode | Beschreibung |
---|---|
S_OK | The method succeeded. |
MF_E_SHUTDOWN | The media source's Shutdown method has been called. |
Hinweise
This method is asynchronous. When the operation completes, the media source sends and MESourceStopped event, and every active stream sends an MEStreamStopped event. If the method returns a failure code, no events are raised.
When a media source is stopped, its current position reverts to zero. After that, if the Start method is called with VT_EMPTY for the starting position, playback starts from the beginning of the presentation.
While the source is stopped, no streams produce data.
Anforderungen
Mindestens unterstützter Client |
Windows Vista |
Mindestens unterstützter Server |
Windows Server 2008 |
Header |
Mfidl.h |
Bibliothek |
Mfuuid.lib |