- useYouTubeASR.ts: adapted from useVideoASR, captures audio from HTMLAudioElement (hls.js → <audio> → AudioContext.createMediaElementSource → ScriptProcessorNode → WebSocket) Play/pause events on videoElement; same return shape as useVideoASR - LTTPage.tsx: Source toggle (Upload/YouTube tabs), YouTubeInput + YouTubeVideoPlayer wired with handleExtractSuccess → handleAudioReady → useYouTubeASR Full Transcript button hidden for YouTube source; unified asr variable - QueryInput.tsx: no changes needed (already supports partialText/value from any source) - Tests: 18 new (11 useYouTubeASR, 7 LTTPage integration) - 189/189 total pass (zero regressions) - Updated plan: 3.5 marked Complete, 5/7 sub-phases done |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||