getUserMedia error:Failed to get access to local media - WEBRTC

getUserMedia error:Failed to get access to local media - WEBRTC

我已经在我的电脑上配置了 App RTC 服务器。当我使用本地主机访问时 (localhost:3000). The Video call is working. But when I am using IP address getting the error. (http://192.168.0.103:3000)

Failed to get access to local media. Error name was PermissionDeniedError. Continuing without sending a stream.

Error getting user media. Only secure origins are allowed.
getUsermedia error: Failed to get access to local media.

getUserMedia需要 HTTPS 才能工作。您必须为您的网络服务器实施 HTTPS。 localhost 是唯一允许在没有 HTTPS 的情况下使用 getUserMedia 的域。