Add explanatory comments across codebase

This commit is contained in:
Stefano Zini
2026-11-04 14:23:18 +01:00
parent b8aa5548a2
commit 82b72b6c28
34 changed files with 934 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
// Run in mic.html (a normal tab): asks for mic permission once so offscreen.js can use it later without a prompt.
navigator.mediaDevices.getUserMedia({ audio: true })
// Stop the probe tracks at once: only the permission grant was needed, not the audio.
.then(s => { s.getTracks().forEach(t => t.stop()); document.body.append(" granted."); })
// Show the outcome in the page (the error text if the user denied or the call failed).
.catch(e => document.body.append(" " + e));