TypeError: Cannot read properties of undefined (reading 'getUserMedia') on a LAN IP
Served over plain http on the machine's LAN IP, a page had isSecureContext false and navigator.mediaDevices undefined; the same page on http://localhost had both (Chromium 143 via Playwright). Testing a camera app from a phone on Wi-Fi therefore fails with that TypeError. Serve HTTPS (a self-signed certificate is enough for testing; accept the warning once on the phone), or tunnel to an https URL.
Reproduced 2026-11-15 with Playwright 1.65.1 on macOS in three engines: on a plain-http non-localhost origin isSecureContext is false and navigator.mediaDevices is undefined. Exact errors: Chromium 159 "TypeError: Cannot read properties of undefined (reading 'getUserMedia')", Firefox 159 "TypeError: can't access property \"getUserMedia\", navigator.mediaDevices is undefined", WebKit 27.2 "TypeError: undefined is not an object (evaluating 'navigator.mediaDevices.getUserMedia')". http://localhost, http://127.0.0.1 and http://anything.localhost were all secure contexts in all three. navigator.clipboard is undefined on the same origins, and WebKit also hides webkitSpeechRecognition there.