Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] export RTCIceCandidate

paweldomas16d9ef5f1c10
diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js b/react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js
index 4754421dcc..f86c0787a5 100644
--- a/react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js
+++ b/react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js
@@ -2,6 +2,7 @@ import {
MediaStream,
MediaStreamTrack,
RTCSessionDescription,
+ RTCIceCandidate,
getUserMedia
} from 'react-native-webrtc';
@@ -20,6 +21,9 @@ import RTCPeerConnection from './RTCPeerConnection';
if (typeof global.RTCSessionDescription === 'undefined') {
global.RTCSessionDescription = RTCSessionDescription;
}
+ if (typeof global.RTCIceCandidate === 'undefined') {
+ global.RTCIceCandidate = RTCIceCandidate;
+ }
const navigator = global.navigator;