Commit c0ab7ac
feat(ui): pause video stream when tab is hidden via Page Visibility API
Mirrors the new server-side pauseVideo/resumeVideo JSON-RPC methods in the
web frontend. When the user switches tabs or minimizes the browser, the
encoder feed stops and outbound RTP drops to keepalive levels until the
tab regains visibility. State is synced on mount so a reconnect into an
already-hidden tab pauses immediately.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a31c82a commit c0ab7ac
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
489 | 515 | | |
490 | 516 | | |
491 | 517 | | |
| |||
0 commit comments