Recording a Google Meet call without a bot: tab audio plus mic in the browser
Meeting bots work, but they show up as an extra participant, wait in the lobby, and make clients careful about what they say. If you only need a recording of your own call, the browser can capture it on your side.
Meeting bots work, but they show up as an extra participant, wait in the lobby, and make clients careful about what they say. If you only need a recording of your own call, the browser can capture it on your side.
1. Capture the meeting tab and the microphone
Chrome only shares tab audio through getDisplayMedia, and the user has to pick the meeting tab and tick "Share tab audio" in the picker. Your own voice isn't in the tab audio, so capture the mic separately.
const tab = await navigator.mediaDevices.getDisplayMedia({ video: true, audio: true });
const mic = await navigator.mediaDevices.getUserMedia({ audio: true });
2. Mix both into one stream
const ctx = new AudioContext();
const out = ctx.createMediaStreamDestination();
ctx.createMediaStreamSource(new MediaStream(tab.getAudioTracks())).connect(out);
ctx.createMediaStreamSource(mic).connect(out);
Don't connect the tab source to ctx.destination unless you want to hear the call twice.
3. Record in chunks and save as you go
const rec = new MediaRecorder(out.stream, { mimeType: 'audio/webm' });
rec.ondataavailable = (e) => saveChunk(e.data); // e.g. append to IndexedDB
rec.start(10000); // a chunk every 10 seconds
Saving chunks during the call means a crashed tab or a closed laptop loses seconds, not the whole meeting.
4. Things that catch people out
- If the user forgets to tick "Share tab audio", tab.getAudioTracks() is empty. Check it and show a clear message.
- Desktop apps (Zoom Desktop, Teams) need system loopback capture instead, which the browser can't do.
- Tell participants before you record. A short consent line in the meeting chat is enough for most teams.
We use this approach in GrixMeet, our bilingual Thai and English meeting notes app: https://grixmeet.grixhub.com/
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.