()
| 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; |
no test coverage detected