From 16d9ef5f1c1027348dbfb7b81c0291596f79dffe Mon Sep 17 00:00:00 2001 From: paweldomas Date: Sun, 23 Apr 2017 11:55:36 -0500 Subject: [PATCH] [RN] export RTCIceCandidate Required for P2P. --- react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js | 4 ++++ 1 file changed, 4 insertions(+) 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 4754421dc..f86c0787a 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;