FunWith commited on
Commit
c30db15
Β·
verified Β·
1 Parent(s): 5c9dc1a

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. Steps to develop.docx +0 -0
  2. server.py +12 -0
  3. static/app.js +277 -11
  4. static/index.html +19 -3
  5. static/styles.css +77 -0
Steps to develop.docx ADDED
Binary file (57.9 kB). View file
 
server.py CHANGED
@@ -203,6 +203,18 @@ async def websocket_handler(request):
203
  "time": datetime.utcnow().strftime("%H:%M"),
204
  })
205
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  # ── Hand Raise ────────────────────────────────────────
207
  elif action == "hand-raise":
208
  raised = data.get("raised", True)
 
203
  "time": datetime.utcnow().strftime("%H:%M"),
204
  })
205
 
206
+ # ── Captions ──────────────────────────────────────────
207
+ elif action == "caption":
208
+ text = data.get("text", "").strip()[:500]
209
+ if text and room_id:
210
+ name = peers.get(peer_id, {}).get("name", "?")
211
+ await broadcast(room_id, {
212
+ "action": "caption",
213
+ "from": peer_id,
214
+ "name": name,
215
+ "text": text,
216
+ }, exclude=peer_id)
217
+
218
  # ── Hand Raise ────────────────────────────────────────
219
  elif action == "hand-raise":
220
  raised = data.get("raised", True)
static/app.js CHANGED
@@ -1,4 +1,4 @@
1
- /* QuickMeet Video Call App - WebRTC Client */
2
 
3
  // ── State ────────────────────────────────────────────────────────────────
4
  let ws = null;
@@ -8,7 +8,7 @@ let myPeerId = null;
8
  let myName = "Guest";
9
  let roomId = null;
10
  let micEnabled = true;
11
- let camEnabled = true;
12
  let screenSharing = false;
13
  let chatOpen = false;
14
  let recording = false;
@@ -93,7 +93,7 @@ document.addEventListener("DOMContentLoaded", () => {
93
  }
94
 
95
  // Restore name from localStorage
96
- const savedName = localStorage.getItem("quickmeet_name");
97
  if (savedName) nameInput.value = savedName;
98
 
99
  startPreview();
@@ -113,7 +113,10 @@ async function startPreview() {
113
  });
114
  previewVideo.srcObject = localStream;
115
  previewVideo.muted = true; // Always mute local preview
116
- previewPlaceholder.style.display = "none";
 
 
 
117
  } catch (e) {
118
  console.warn("Could not access camera/mic:", e);
119
  previewPlaceholder.querySelector("p").textContent = "Camera not available";
@@ -171,7 +174,7 @@ function setupJoinListeners() {
171
  function joinRoom(id) {
172
  roomId = id;
173
  myName = nameInput.value.trim() || "Guest";
174
- localStorage.setItem("quickmeet_name", myName);
175
 
176
  // Ensure we have a stream
177
  if (!localStream) {
@@ -267,6 +270,7 @@ async function handleSignal(msg) {
267
 
268
  case "chat":
269
  addChatMessage(msg.name, msg.text, msg.time);
 
270
  if (!chatOpen) showToast(`${msg.name}: ${msg.text}`);
271
  break;
272
 
@@ -373,6 +377,12 @@ async function handleSignal(msg) {
373
  showToast("Breakout rooms ended");
374
  hideBreakoutActive();
375
  break;
 
 
 
 
 
 
376
  }
377
  }
378
 
@@ -391,7 +401,7 @@ function enterCallScreen() {
391
  localMicIndicator.classList.toggle("muted", !micEnabled);
392
 
393
  history.replaceState(null, "", `/room/${roomId}`);
394
- document.title = `QuickMeet - ${roomId}`;
395
  roomInfo.textContent = `Room: ${roomId}`;
396
 
397
  micBtn.classList.toggle("active", micEnabled);
@@ -581,10 +591,14 @@ function setupCallControls() {
581
  document.getElementById("notesPanel").classList.remove("open");
582
  });
583
  document.getElementById("saveNotesBtn").addEventListener("click", saveNotes);
 
584
 
585
  // View toggle
586
  document.getElementById("viewToggleBtn").addEventListener("click", toggleViewMode);
587
 
 
 
 
588
  // More menu click toggle (for mobile/touch)
589
  document.getElementById("moreBtn").addEventListener("click", (e) => {
590
  e.stopPropagation();
@@ -762,7 +776,7 @@ function leaveCall() {
762
  callScreen.classList.remove("active");
763
  joinScreen.classList.add("active");
764
  history.replaceState(null, "", "/");
765
- document.title = "QuickMeet - Video Calls";
766
 
767
  if (localStream) {
768
  previewVideo.srcObject = localStream;
@@ -880,7 +894,7 @@ function startRecording() {
880
  const a = document.createElement("a");
881
  const timestamp = new Date().toISOString().replace(/[:.]/g, "-").slice(0, 19);
882
  a.href = url;
883
- a.download = `QuickMeet-${roomId}-${timestamp}.webm`;
884
  a.click();
885
  URL.revokeObjectURL(url);
886
  showToast("Recording saved!");
@@ -1609,6 +1623,135 @@ function refreshNotesSummaries() {
1609
  } else {
1610
  brContent.textContent = 'No breakout rooms yet.';
1611
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1612
  }
1613
 
1614
  function saveNotes() {
@@ -1645,7 +1788,7 @@ function saveNotes() {
1645
  }
1646
 
1647
  // Build text content
1648
- let content = `QuickMeet - Meeting Notes\n`;
1649
  content += `========================\n\n`;
1650
  content += `Room: ${roomId}\n`;
1651
  content += `Date: ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}\n`;
@@ -1690,7 +1833,7 @@ function saveNotes() {
1690
  const url = URL.createObjectURL(blob);
1691
  const a = document.createElement("a");
1692
  a.href = url;
1693
- a.download = `QuickMeet-Notes-${roomId}-${timestamp}.txt`;
1694
  a.click();
1695
  URL.revokeObjectURL(url);
1696
 
@@ -1705,7 +1848,7 @@ function saveNotes() {
1705
  const imgUrl = URL.createObjectURL(imgBlob);
1706
  const imgA = document.createElement("a");
1707
  imgA.href = imgUrl;
1708
- imgA.download = `QuickMeet-Whiteboard-${roomId}-${timestamp}.png`;
1709
  imgA.click();
1710
  URL.revokeObjectURL(imgUrl);
1711
  }, "image/png");
@@ -2204,6 +2347,129 @@ function createFallbackMask(w, h) {
2204
  return c;
2205
  }
2206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2207
  function vbgRenderLoop() {
2208
  if (!bgBlurEnabled || !vbgTempVideo) return;
2209
  const w = bgBlurCanvas.width, h = bgBlurCanvas.height;
 
1
+ /* Huddle Video Call App - WebRTC Client */
2
 
3
  // ── State ────────────────────────────────────────────────────────────────
4
  let ws = null;
 
8
  let myName = "Guest";
9
  let roomId = null;
10
  let micEnabled = true;
11
+ let camEnabled = false;
12
  let screenSharing = false;
13
  let chatOpen = false;
14
  let recording = false;
 
93
  }
94
 
95
  // Restore name from localStorage
96
+ const savedName = localStorage.getItem("huddle_name");
97
  if (savedName) nameInput.value = savedName;
98
 
99
  startPreview();
 
113
  });
114
  previewVideo.srcObject = localStream;
115
  previewVideo.muted = true; // Always mute local preview
116
+ // Default camera off
117
+ localStream.getVideoTracks().forEach(t => t.enabled = false);
118
+ previewPlaceholder.style.display = "flex";
119
+ previewCam.classList.remove("active");
120
  } catch (e) {
121
  console.warn("Could not access camera/mic:", e);
122
  previewPlaceholder.querySelector("p").textContent = "Camera not available";
 
174
  function joinRoom(id) {
175
  roomId = id;
176
  myName = nameInput.value.trim() || "Guest";
177
+ localStorage.setItem("huddle_name", myName);
178
 
179
  // Ensure we have a stream
180
  if (!localStream) {
 
270
 
271
  case "chat":
272
  addChatMessage(msg.name, msg.text, msg.time);
273
+ logTranscript('chat', msg.name, msg.text);
274
  if (!chatOpen) showToast(`${msg.name}: ${msg.text}`);
275
  break;
276
 
 
377
  showToast("Breakout rooms ended");
378
  hideBreakoutActive();
379
  break;
380
+
381
+ // ── Captions ────────────────────────────────────────
382
+ case "caption":
383
+ showCaption(msg.name, msg.text);
384
+ logTranscript('speech', msg.name, msg.text);
385
+ break;
386
  }
387
  }
388
 
 
401
  localMicIndicator.classList.toggle("muted", !micEnabled);
402
 
403
  history.replaceState(null, "", `/room/${roomId}`);
404
+ document.title = `Huddle - ${roomId}`;
405
  roomInfo.textContent = `Room: ${roomId}`;
406
 
407
  micBtn.classList.toggle("active", micEnabled);
 
591
  document.getElementById("notesPanel").classList.remove("open");
592
  });
593
  document.getElementById("saveNotesBtn").addEventListener("click", saveNotes);
594
+ document.getElementById("generateSummaryBtn").addEventListener("click", generateAndInsertSummary);
595
 
596
  // View toggle
597
  document.getElementById("viewToggleBtn").addEventListener("click", toggleViewMode);
598
 
599
+ // Captions toggle
600
+ document.getElementById("captionBtn").addEventListener("click", toggleCaptions);
601
+
602
  // More menu click toggle (for mobile/touch)
603
  document.getElementById("moreBtn").addEventListener("click", (e) => {
604
  e.stopPropagation();
 
776
  callScreen.classList.remove("active");
777
  joinScreen.classList.add("active");
778
  history.replaceState(null, "", "/");
779
+ document.title = "Huddle - Video Calls";
780
 
781
  if (localStream) {
782
  previewVideo.srcObject = localStream;
 
894
  const a = document.createElement("a");
895
  const timestamp = new Date().toISOString().replace(/[:.]/g, "-").slice(0, 19);
896
  a.href = url;
897
+ a.download = `Huddle-${roomId}-${timestamp}.webm`;
898
  a.click();
899
  URL.revokeObjectURL(url);
900
  showToast("Recording saved!");
 
1623
  } else {
1624
  brContent.textContent = 'No breakout rooms yet.';
1625
  }
1626
+
1627
+ // Transcript summary
1628
+ const txContent = document.getElementById("notesTranscriptContent");
1629
+ if (txContent) {
1630
+ if (meetingTranscript.length > 0) {
1631
+ txContent.innerHTML = formatTranscriptSummary();
1632
+ } else {
1633
+ txContent.innerHTML = '<em>Enable captions (CC) to auto-capture discussion.</em>';
1634
+ }
1635
+ }
1636
+ }
1637
+
1638
+ function formatTranscriptSummary() {
1639
+ const speechEntries = meetingTranscript.filter(e => e.type === 'speech');
1640
+ const chatEntries = meetingTranscript.filter(e => e.type === 'chat');
1641
+ let html = '';
1642
+
1643
+ // Key discussion points grouped by speaker
1644
+ if (speechEntries.length > 0) {
1645
+ html += '<div class="transcript-section"><strong>Discussion Transcript</strong>';
1646
+ // Group consecutive entries by same speaker
1647
+ const grouped = [];
1648
+ let current = null;
1649
+ for (const entry of speechEntries) {
1650
+ if (current && current.name === entry.name) {
1651
+ current.texts.push(entry.text);
1652
+ current.endTime = entry.time;
1653
+ } else {
1654
+ current = { name: entry.name, texts: [entry.text], startTime: entry.time, endTime: entry.time };
1655
+ grouped.push(current);
1656
+ }
1657
+ }
1658
+ for (const g of grouped) {
1659
+ html += `<div class="transcript-entry">`;
1660
+ html += `<span class="transcript-speaker">${escapeHtml(g.name)}</span>`;
1661
+ html += `<span class="transcript-time">${g.startTime}</span>`;
1662
+ html += `<p>${escapeHtml(g.texts.join(' '))}</p></div>`;
1663
+ }
1664
+ html += '</div>';
1665
+
1666
+ // Speaker summary
1667
+ const speakers = {};
1668
+ for (const e of speechEntries) {
1669
+ if (!speakers[e.name]) speakers[e.name] = { count: 0, words: 0 };
1670
+ speakers[e.name].count++;
1671
+ speakers[e.name].words += e.text.split(/\s+/).length;
1672
+ }
1673
+ html += '<div class="transcript-section"><strong>Speaker Summary</strong><ul>';
1674
+ for (const [name, stats] of Object.entries(speakers)) {
1675
+ html += `<li>${escapeHtml(name)}: ${stats.count} contribution${stats.count !== 1 ? 's' : ''}, ~${stats.words} words</li>`;
1676
+ }
1677
+ html += '</ul></div>';
1678
+ }
1679
+
1680
+ // Chat messages
1681
+ if (chatEntries.length > 0) {
1682
+ html += '<div class="transcript-section"><strong>Chat Messages</strong>';
1683
+ for (const e of chatEntries) {
1684
+ html += `<div class="transcript-entry"><span class="transcript-speaker">${escapeHtml(e.name)}</span>`;
1685
+ html += `<span class="transcript-time">${e.time}</span>`;
1686
+ html += `<p>${escapeHtml(e.text)}</p></div>`;
1687
+ }
1688
+ html += '</div>';
1689
+ }
1690
+
1691
+ if (!html) html = '<em>No discussion captured yet.</em>';
1692
+ return html;
1693
+ }
1694
+
1695
+ function generateAndInsertSummary() {
1696
+ const textarea = document.getElementById('notesTextarea');
1697
+ const speechEntries = meetingTranscript.filter(e => e.type === 'speech');
1698
+ const chatEntries = meetingTranscript.filter(e => e.type === 'chat');
1699
+ let summary = '';
1700
+
1701
+ if (speechEntries.length === 0 && chatEntries.length === 0) {
1702
+ showToast('No discussion to summarize. Enable captions first.');
1703
+ return;
1704
+ }
1705
+
1706
+ summary += '=== MEETING SUMMARY ===\n';
1707
+ summary += `Generated: ${new Date().toLocaleString()}\n`;
1708
+ summary += `Total contributions: ${meetingTranscript.length}\n\n`;
1709
+
1710
+ if (speechEntries.length > 0) {
1711
+ summary += '--- Discussion ---\n';
1712
+ const grouped = [];
1713
+ let current = null;
1714
+ for (const entry of speechEntries) {
1715
+ if (current && current.name === entry.name) {
1716
+ current.texts.push(entry.text);
1717
+ } else {
1718
+ current = { name: entry.name, texts: [entry.text], time: entry.time };
1719
+ grouped.push(current);
1720
+ }
1721
+ }
1722
+ for (const g of grouped) {
1723
+ summary += `[${g.time}] ${g.name}: ${g.texts.join(' ')}\n`;
1724
+ }
1725
+ summary += '\n';
1726
+
1727
+ // Speaker stats
1728
+ const speakers = {};
1729
+ for (const e of speechEntries) {
1730
+ if (!speakers[e.name]) speakers[e.name] = { count: 0, words: 0 };
1731
+ speakers[e.name].count++;
1732
+ speakers[e.name].words += e.text.split(/\s+/).length;
1733
+ }
1734
+ summary += '--- Speakers ---\n';
1735
+ for (const [name, stats] of Object.entries(speakers)) {
1736
+ summary += `${name}: ${stats.count} contributions, ~${stats.words} words\n`;
1737
+ }
1738
+ summary += '\n';
1739
+ }
1740
+
1741
+ if (chatEntries.length > 0) {
1742
+ summary += '--- Chat ---\n';
1743
+ for (const e of chatEntries) {
1744
+ summary += `[${e.time}] ${e.name}: ${e.text}\n`;
1745
+ }
1746
+ }
1747
+
1748
+ // Append to existing notes
1749
+ if (textarea.value.trim()) {
1750
+ textarea.value += '\n\n' + summary;
1751
+ } else {
1752
+ textarea.value = summary;
1753
+ }
1754
+ showToast('Summary added to notes');
1755
  }
1756
 
1757
  function saveNotes() {
 
1788
  }
1789
 
1790
  // Build text content
1791
+ let content = `Huddle - Meeting Notes\n`;
1792
  content += `========================\n\n`;
1793
  content += `Room: ${roomId}\n`;
1794
  content += `Date: ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}\n`;
 
1833
  const url = URL.createObjectURL(blob);
1834
  const a = document.createElement("a");
1835
  a.href = url;
1836
+ a.download = `Huddle-Notes-${roomId}-${timestamp}.txt`;
1837
  a.click();
1838
  URL.revokeObjectURL(url);
1839
 
 
1848
  const imgUrl = URL.createObjectURL(imgBlob);
1849
  const imgA = document.createElement("a");
1850
  imgA.href = imgUrl;
1851
+ imgA.download = `Huddle-Whiteboard-${roomId}-${timestamp}.png`;
1852
  imgA.click();
1853
  URL.revokeObjectURL(imgUrl);
1854
  }, "image/png");
 
2347
  return c;
2348
  }
2349
 
2350
+ // ── Meeting Transcript Log ──────────────────────────────────────────────
2351
+ const meetingTranscript = [];
2352
+ function logTranscript(type, name, text) {
2353
+ meetingTranscript.push({
2354
+ type,
2355
+ name,
2356
+ text,
2357
+ time: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' }),
2358
+ });
2359
+ }
2360
+
2361
+ // ── Speech-to-Text Captions ─────────────────────────────────────────────
2362
+ let captionsEnabled = false;
2363
+ let recognition = null;
2364
+
2365
+ function toggleCaptions() {
2366
+ captionsEnabled = !captionsEnabled;
2367
+ const btn = document.getElementById("captionBtn");
2368
+ const overlay = document.getElementById("captionsOverlay");
2369
+ btn.classList.toggle("active", captionsEnabled);
2370
+ btn.querySelector(".material-icons-round").textContent = captionsEnabled ? "closed_caption" : "closed_caption_off";
2371
+ overlay.style.display = captionsEnabled ? "" : "none";
2372
+ if (captionsEnabled) {
2373
+ startSpeechRecognition();
2374
+ } else {
2375
+ stopSpeechRecognition();
2376
+ document.getElementById("captionsContent").innerHTML = "";
2377
+ }
2378
+ }
2379
+
2380
+ function startSpeechRecognition() {
2381
+ const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
2382
+ if (!SpeechRecognition) {
2383
+ showToast("Speech recognition not supported in this browser");
2384
+ toggleCaptions();
2385
+ return;
2386
+ }
2387
+ recognition = new SpeechRecognition();
2388
+ recognition.continuous = true;
2389
+ recognition.interimResults = true;
2390
+ recognition.lang = "en-US";
2391
+ recognition.maxAlternatives = 1;
2392
+
2393
+ recognition.onresult = (event) => {
2394
+ let interim = "";
2395
+ let final = "";
2396
+ for (let i = event.resultIndex; i < event.results.length; i++) {
2397
+ const transcript = event.results[i][0].transcript;
2398
+ if (event.results[i].isFinal) {
2399
+ final += transcript;
2400
+ } else {
2401
+ interim += transcript;
2402
+ }
2403
+ }
2404
+ if (final) {
2405
+ showCaption(myName, final);
2406
+ logTranscript('speech', myName, final);
2407
+ if (ws && ws.readyState === WebSocket.OPEN) {
2408
+ ws.send(JSON.stringify({ action: "caption", text: final }));
2409
+ }
2410
+ }
2411
+ if (interim) {
2412
+ showCaption(myName, interim, true);
2413
+ }
2414
+ };
2415
+
2416
+ recognition.onerror = (event) => {
2417
+ if (event.error === "not-allowed") {
2418
+ showToast("Microphone permission denied for captions");
2419
+ toggleCaptions();
2420
+ } else if (event.error !== "no-speech" && event.error !== "aborted") {
2421
+ console.warn("Speech recognition error:", event.error);
2422
+ }
2423
+ };
2424
+
2425
+ recognition.onend = () => {
2426
+ if (captionsEnabled) {
2427
+ try { recognition.start(); } catch (e) { /* already started */ }
2428
+ }
2429
+ };
2430
+
2431
+ try { recognition.start(); } catch (e) { /* already started */ }
2432
+ showToast("Captions enabled");
2433
+ }
2434
+
2435
+ function stopSpeechRecognition() {
2436
+ if (recognition) {
2437
+ captionsEnabled = false;
2438
+ try { recognition.stop(); } catch (e) {}
2439
+ recognition = null;
2440
+ }
2441
+ }
2442
+
2443
+ function showCaption(name, text, isInterim) {
2444
+ if (!captionsEnabled) return;
2445
+ const container = document.getElementById("captionsContent");
2446
+ const existingInterim = container.querySelector(".caption-interim");
2447
+ if (isInterim) {
2448
+ if (existingInterim) {
2449
+ existingInterim.innerHTML = `<span class="caption-name">${escapeHtml(name)}:</span> ${escapeHtml(text)}`;
2450
+ } else {
2451
+ const el = document.createElement("div");
2452
+ el.className = "caption-line caption-interim";
2453
+ el.style.opacity = "0.7";
2454
+ el.innerHTML = `<span class="caption-name">${escapeHtml(name)}:</span> ${escapeHtml(text)}`;
2455
+ container.appendChild(el);
2456
+ }
2457
+ } else {
2458
+ if (existingInterim) existingInterim.remove();
2459
+ const el = document.createElement("div");
2460
+ el.className = "caption-line";
2461
+ el.innerHTML = `<span class="caption-name">${escapeHtml(name)}:</span> ${escapeHtml(text)}`;
2462
+ container.appendChild(el);
2463
+ // Keep only last 3 final captions
2464
+ const finals = container.querySelectorAll(".caption-line:not(.caption-interim)");
2465
+ while (finals.length > 3) finals[0].remove();
2466
+ // Auto-remove after 8 seconds
2467
+ setTimeout(() => { if (el.parentNode) el.remove(); }, 8000);
2468
+ }
2469
+ }
2470
+
2471
+
2472
+
2473
  function vbgRenderLoop() {
2474
  if (!bgBlurEnabled || !vbgTempVideo) return;
2475
  const w = bgBlurCanvas.width, h = bgBlurCanvas.height;
static/index.html CHANGED
@@ -3,7 +3,7 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>QuickMeet - Video Calls</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
8
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
9
  <link rel="stylesheet" href="/static/styles.css">
@@ -15,7 +15,7 @@
15
  <div class="join-container">
16
  <div class="logo-section">
17
  <div class="logo"><span class="material-icons-round">videocam</span></div>
18
- <h1>QuickMeet</h1>
19
  <p class="subtitle">Simple, secure video calls in your browser</p>
20
  </div>
21
 
@@ -176,8 +176,15 @@
176
  <summary>Breakout Rooms</summary>
177
  <div id="notesBreakoutContent" class="notes-auto-content">No breakout rooms yet.</div>
178
  </details>
 
 
 
 
 
 
 
 
179
  </div>
180
- <button id="saveNotesBtn" class="btn btn-small" style="width:100%;margin-top:8px"><span class="material-icons-round" style="font-size:16px;vertical-align:middle">save</span> Save Notes</button>
181
  </div>
182
 
183
  <!-- Breakout Rooms Panel -->
@@ -251,6 +258,10 @@
251
  <span class="material-icons-round">people</span>
252
  </button>
253
 
 
 
 
 
254
  <!-- More menu -->
255
  <div class="ctrl-dropdown">
256
  <button id="moreBtn" class="ctrl-btn" title="More">
@@ -278,6 +289,11 @@
278
  </div>
279
  </div>
280
 
 
 
 
 
 
281
  <div class="toast" id="toast"></div>
282
 
283
  <!-- Device Selector Modal -->
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Huddle - Video Calls</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
8
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
9
  <link rel="stylesheet" href="/static/styles.css">
 
15
  <div class="join-container">
16
  <div class="logo-section">
17
  <div class="logo"><span class="material-icons-round">videocam</span></div>
18
+ <h1>Huddle</h1>
19
  <p class="subtitle">Simple, secure video calls in your browser</p>
20
  </div>
21
 
 
176
  <summary>Breakout Rooms</summary>
177
  <div id="notesBreakoutContent" class="notes-auto-content">No breakout rooms yet.</div>
178
  </details>
179
+ <details id="notesTranscriptSummary">
180
+ <summary>Discussion Transcript</summary>
181
+ <div id="notesTranscriptContent" class="notes-auto-content"><em>Enable captions (CC) to auto-capture discussion.</em></div>
182
+ </details>
183
+ </div>
184
+ <div style="display:flex;gap:8px;margin-top:8px">
185
+ <button id="generateSummaryBtn" class="btn btn-small" style="flex:1"><span class="material-icons-round" style="font-size:16px;vertical-align:middle">auto_awesome</span> Generate Summary</button>
186
+ <button id="saveNotesBtn" class="btn btn-small" style="flex:1"><span class="material-icons-round" style="font-size:16px;vertical-align:middle">save</span> Save Notes</button>
187
  </div>
 
188
  </div>
189
 
190
  <!-- Breakout Rooms Panel -->
 
258
  <span class="material-icons-round">people</span>
259
  </button>
260
 
261
+ <button id="captionBtn" class="ctrl-btn" title="Toggle captions">
262
+ <span class="material-icons-round">closed_caption_off</span>
263
+ </button>
264
+
265
  <!-- More menu -->
266
  <div class="ctrl-dropdown">
267
  <button id="moreBtn" class="ctrl-btn" title="More">
 
289
  </div>
290
  </div>
291
 
292
+ <!-- Captions Overlay -->
293
+ <div id="captionsOverlay" class="captions-overlay" style="display:none">
294
+ <div id="captionsContent" class="captions-content"></div>
295
+ </div>
296
+
297
  <div class="toast" id="toast"></div>
298
 
299
  <!-- Device Selector Modal -->
static/styles.css CHANGED
@@ -1093,6 +1093,40 @@ input[type="text"]::placeholder {
1093
  border: 1px solid var(--hairline);
1094
  }
1095
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1096
  /* ─── Whiteboard ─────────────────────────────────────────── */
1097
  #whiteboardCanvas {
1098
  background: #fff;
@@ -1251,6 +1285,49 @@ input[type="text"]::placeholder {
1251
  background: var(--blue-600);
1252
  }
1253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1254
  /* ─── View Modes ─────────────────────────────────────────── */
1255
  .view-speaker {
1256
  display: grid !important;
 
1093
  border: 1px solid var(--hairline);
1094
  }
1095
 
1096
+ /* ─── Transcript Styles ──────────────────────────────────── */
1097
+ .transcript-section {
1098
+ margin-bottom: 12px;
1099
+ }
1100
+ .transcript-section strong {
1101
+ display: block;
1102
+ margin-bottom: 6px;
1103
+ font-size: 12px;
1104
+ text-transform: uppercase;
1105
+ letter-spacing: 0.04em;
1106
+ color: var(--blue-600);
1107
+ }
1108
+ .transcript-entry {
1109
+ padding: 4px 0;
1110
+ border-bottom: 1px solid var(--hairline);
1111
+ }
1112
+ .transcript-entry:last-child { border-bottom: none; }
1113
+ .transcript-speaker {
1114
+ font-weight: 600;
1115
+ font-size: 12px;
1116
+ color: var(--text-primary);
1117
+ margin-right: 6px;
1118
+ }
1119
+ .transcript-time {
1120
+ font-size: 11px;
1121
+ color: var(--text-hint);
1122
+ }
1123
+ .transcript-entry p {
1124
+ margin: 2px 0 4px;
1125
+ font-size: 13px;
1126
+ line-height: 1.4;
1127
+ color: var(--text-secondary);
1128
+ }
1129
+
1130
  /* ─── Whiteboard ─────────────────────────────────────────── */
1131
  #whiteboardCanvas {
1132
  background: #fff;
 
1285
  background: var(--blue-600);
1286
  }
1287
 
1288
+ /* ─── Captions Overlay ───────────────────────────────────── */
1289
+ .captions-overlay {
1290
+ position: fixed;
1291
+ bottom: 90px;
1292
+ left: 50%;
1293
+ transform: translateX(-50%);
1294
+ z-index: 50;
1295
+ pointer-events: none;
1296
+ max-width: 700px;
1297
+ width: 90%;
1298
+ }
1299
+ .captions-content {
1300
+ display: flex;
1301
+ flex-direction: column;
1302
+ gap: 4px;
1303
+ align-items: center;
1304
+ }
1305
+ .caption-line {
1306
+ background: rgba(0, 0, 0, 0.75);
1307
+ color: #fff;
1308
+ padding: 6px 16px;
1309
+ border-radius: 8px;
1310
+ font-size: 14px;
1311
+ line-height: 1.4;
1312
+ text-align: center;
1313
+ max-width: 100%;
1314
+ animation: captionFadeIn 0.2s ease;
1315
+ }
1316
+ .caption-line .caption-name {
1317
+ font-weight: 600;
1318
+ color: #8ab4f8;
1319
+ margin-right: 6px;
1320
+ }
1321
+ @keyframes captionFadeIn {
1322
+ from { opacity: 0; transform: translateY(8px); }
1323
+ to { opacity: 1; transform: translateY(0); }
1324
+ }
1325
+ #captionBtn.active {
1326
+ background: var(--blue-600) !important;
1327
+ color: #fff !important;
1328
+ }
1329
+
1330
+
1331
  /* ─── View Modes ─────────────────────────────────────────── */
1332
  .view-speaker {
1333
  display: grid !important;