Skip to content

Latest commit

 

History

History
125 lines (104 loc) · 3.6 KB

nf-mfidl-imfpresentationclock-pause.md

File metadata and controls

125 lines (104 loc) · 3.6 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfidl.IMFPresentationClock.Pause
IMFPresentationClock::Pause (mfidl.h)
Pauses the presentation clock. While the clock is paused, the clock time does not advance, and the clock's IMFPresentationClock::GetTime returns the time at which the clock was paused.
2eddc9a9-e3a6-46c4-83c6-446b6a7a64b0
IMFPresentationClock interface [Media Foundation]
Pause method
IMFPresentationClock.Pause
IMFPresentationClock::Pause
Pause
Pause method [Media Foundation]
Pause method [Media Foundation]
IMFPresentationClock interface
mf.imfpresentationclock_pause
mfidl/IMFPresentationClock::Pause
mf\imfpresentationclock_pause.htm
mf
2eddc9a9-e3a6-46c4-83c6-446b6a7a64b0
12/05/2018
2eddc9a9-e3a6-46c4-83c6-446b6a7a64b0, IMFPresentationClock interface [Media Foundation],Pause method, IMFPresentationClock.Pause, IMFPresentationClock::Pause, Pause, Pause method [Media Foundation], Pause method [Media Foundation],IMFPresentationClock interface, mf.imfpresentationclock_pause, mfidl/IMFPresentationClock::Pause
mfidl.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfuuid.lib
Windows
19H1
IMFPresentationClock::Pause
mfidl/IMFPresentationClock::Pause
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFPresentationClock.Pause

IMFPresentationClock::Pause

-description

Pauses the presentation clock. While the clock is paused, the clock time does not advance, and the clock's IMFPresentationClock::GetTime returns the time at which the clock was paused.

-returns

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.
MF_E_CLOCK_NO_TIME_SOURCE
No time source was set on this clock.
MF_E_CLOCK_STATE_ALREADY_SET
The clock is already paused.
MF_E_INVALIDREQUEST
The clock is stopped. This request is not valid when the clock is stopped.

-remarks

This method is valid when the clock is running. It is not valid when the clock is paused or stopped.

The presentation clock initiates the state change by calling IMFClockStateSink::OnClockPause on the clock's time source. This call is made synchronously. If it fails, the state change does not occur. If the call succeeds, the state changes, and the clock notifies the other state-change subscribers by calling their OnClockPause methods. These calls are made asynchronously.

-see-also

IMFPresentationClock

Presentation Clock