react-native-webrtc

时间:2019-11-27 10:25:16

标签: react-native webrtc connectycube

我写了这段代码:

getVideoDevices() { 
    return new Promise((resolve, reject) => { 
           ConnectyCube.videochat.getMediaDevices('videoinput').then(devices => { 
           devices ? resolve(devices) : reject(); 
          }); 
    });
 }

但是我在控制台中遇到此错误:

TypeError: undefined is not an object (evaluating 'b.enumerateDevices')

所有许可,例如摄像头和麦克风设置

0 个答案:

没有答案