javascript - navigator.mediaDevices is undefined | Safari iOS 18 | served via https - Stack Overflow

admin2025-04-21  2

We run a WebRTC app in browser. It's served via https.

In Safari on some modern iOS devices, navigator.mediaDevices is undefined.

It occurs on one iPhone 13 running iOS 18.0.1,
but doesn't occur on a seemingly identical device (another iPhone 13 running iOS 18.0.1).

On that device, other webpages such as break as well.

In production logs, I can see that it happened on more iOS versions, including 18.2.1, 18.0.1 and 14.2.

All that I can find online tells me to verify the origin is secure (it is),
and to verify iOS is up-to-date (it is).

I checked said iPhone 13's device's settings and couldn't find anything suspicious.

Any help will be appreciated <3

转载请注明原文地址:http://anycun.com/QandA/1745226153a90465.html