()
| 623 | }; |
| 624 | |
| 625 | const adjustedTime = () => { |
| 626 | if (state().variant === "countdown" || state().variant === "initializing") |
| 627 | return 0; |
| 628 | let t = time() - start(); |
| 629 | for (const { pause, resume } of pauseResumes) { |
| 630 | if (pause && resume) t -= resume - pause; |
| 631 | } |
| 632 | return Math.max(0, t); |
| 633 | }; |
| 634 | |
| 635 | const isMaxRecordingLimitEnabled = () => { |
| 636 | // Only enforce the limit on instant mode. |
no test coverage detected