feat: implement screen recording via chrome.tabCapture with offscreen document

- Use chrome.tabCapture.getMediaStreamId() from service worker
- Pass stream ID to offscreen document for MediaRecorder
- Recording survives page navigation (unlike getDisplayMedia)
- Requires user to click extension icon first (activeTab permission)
- Add esbuild to build offscreen.ts separately
- Update prompt docs with recording instructions
This commit is contained in:
Tommy D. Rossi
2026-01-23 16:57:51 +01:00
parent e56e27e5e5
commit 74497c2a1a
8 changed files with 210 additions and 278 deletions
+3
View File
@@ -46,6 +46,9 @@ importers:
concurrently:
specifier: ^8.2.2
version: 8.2.2
esbuild:
specifier: ^0.27.2
version: 0.27.2
typescript:
specifier: ^5.8.2
version: 5.9.3