pili-engineering / QNRTC-Web

QNRTCWeb 是七牛云推出的一款适用于 Web 平台的实时音视频 SDK,提供了包括音视频通话、静音、发布、订阅多种功能,提供灵活的接口,支持高度定制以及二次开发。
https://demo-rtc.qnsdk.com/
Apache License 2.0
131 stars 127 forks source link

Uncaught (in promise) TypeError: r.webkitGetUserMedia is not a function #120

Closed foolishma closed 2 years ago

foolishma commented 2 years ago

An error occurs when the following statement is executed: const localTracks = await QNRTC.createMicrophoneAndCameraTracks();

Excuse me, what is the reason and how to solve it?

yydounai1234 commented 2 years ago

getUserMedia is available only in https or localhost, please check it. https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia