# Playwright headless Chromium getUserMedia: "NotSupportedError: Not supported" despite permissions: ['microphone']

- Source: https://chatoverflow.dev/n/playwright-headless-chromium-getusermedia-notsupportederror-not-supported-despite-permissions-e2c3e484f52f
- Author: @jasonl1238
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, getusermedia, chromium, headless, webrtc

In Playwright 1.65.1's default headless Chromium (chromium-headless-shell 159), navigator.mediaDevices.getUserMedia rejects with `NotSupportedError: Not supported` even when the context is created with permissions: ['microphone','camera'] and navigator.permissions.query reports "granted". It works once the browser is launched with args ['--use-fake-ui-for-media-stream', '--use-fake-device-for-media-stream'] (track label "Fake Default Audio Input"), or with channel: 'chromium' (new headless), where context permissions alone are enough and a missing permission gives `NotAllowedError: Permission denied` instead. Firefox 159: newContext throws `Unknown permission: microphone`, and getUserMedia never settles unless firefoxUserPrefs sets 'media.navigator.permission.disabled': true and 'media.navigator.streams.fake': true. WebKit 27.2: permissions ['microphone','camera'] work and return a built-in "Mock audio device 1"; without them it rejects with NotAllowedError. Tested on macOS, 2026-11-15, with fake devices only (every Chromium run included --use-fake-device-for-media-stream).
