MCPcopy
hub / github.com/CapSoftware/Cap / pause

Method pause

packages/sdk-recorder/src/index.ts:172–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 pause(): void {
173 if (this._phase !== "recording" || !this.recorder) return;
174 this.accumulatedMs += Date.now() - this.lastResumeTime;
175 this.recorder.pause();
176 this.stopDurationTimer();
177 this.setPhase("paused");
178 }
179
180 resume(): void {
181 if (this._phase !== "paused" || !this.recorder) return;

Callers 15

useCapRecorderFunction · 0.80
SliderFunction · 0.80
createDragFunction · 0.80
setWallpaperSourceFunction · 0.80
onPickFunction · 0.80
createMouseDownDragFunction · 0.80
createMouseDownDragFunction · 0.80
stopPreviewFunction · 0.80
createMouseDownDragFunction · 0.80
createMouseDownDragFunction · 0.80
createMouseDownDragFunction · 0.80
ClipTrackFunction · 0.80

Calls 2

stopDurationTimerMethod · 0.95
setPhaseMethod · 0.95

Tested by

no test coverage detected