demo · v141

Window Audio

Pick a windowAudio hint, then capture a window via getDisplayMedia(). The page surfaces what audio track (if any) the user agent attached, the settings it applied, and a live level meter for the captured audio.

probing getSupportedConstraints…
No capture yet.

the call

const stream = await navigator.mediaDevices.getDisplayMedia({
  video: true,
  audio: true,
  windowAudio: "window",   // NEW in 141 — only when user picks a window
  // "system"  → request the full system mix
  // "exclude" → never include audio for window-picks
});
console.log(stream.getAudioTracks()[0]?.getSettings());

see also