我写了这段代码:
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')
所有许可,例如摄像头和麦克风设置