Vcl.MPlayer.TMediaPlayer.Pause
Delphi
procedure Pause; {Pause & Resume/Play}
C++
void __fastcall Pause();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.MPlayer.pas Vcl.MPlayer.hpp |
Vcl.MPlayer | TMediaPlayer |
Description
Toggles the open multimedia device on or off.
If the device is already paused when Pause is called, the device resumes playing or recording by calling the Resume method. Pause is called when the Pause button on the media player control is clicked at runtime.
Upon completion, Pause stores a numerical error code in the Error property and the corresponding error message in the ErrorMessage property.
The Wait property determines whether control is returned to the application before the Pause method has completed. The Notify property determines whether Pause generates an OnNotify event.