The react-native tutorial doesn’t mention that ‘react-native-webrtc’ package needs to be added as a dependency, but when it isn’t present the following error occurs (on android, haven’t tested ios yet):
Cannot read property 'getUserMedia' of null
- line 95 of openvidu-react-native-adapter/node_modules/getUserMedia
WebRTCModule.getUserMedia(constraints, success, failure);
We are using the following:
- openvidu-react-native-adapter-2.20.0
- react - 17.0.2
- react-native 0.67.2