[RN] export RTCIceCandidate

Required for P2P.
This commit is contained in:
paweldomas 2017-04-23 11:55:36 -05:00
parent edbbaef26f
commit 16d9ef5f1c
1 changed files with 4 additions and 0 deletions

View File

@ -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;