|
@@ -2,6 +2,7 @@ import {
|
2
|
2
|
MediaStream,
|
3
|
3
|
MediaStreamTrack,
|
4
|
4
|
RTCSessionDescription,
|
|
5
|
+ RTCIceCandidate,
|
5
|
6
|
getUserMedia
|
6
|
7
|
} from 'react-native-webrtc';
|
7
|
8
|
|
|
@@ -20,6 +21,9 @@ import RTCPeerConnection from './RTCPeerConnection';
|
20
|
21
|
if (typeof global.RTCSessionDescription === 'undefined') {
|
21
|
22
|
global.RTCSessionDescription = RTCSessionDescription;
|
22
|
23
|
}
|
|
24
|
+ if (typeof global.RTCIceCandidate === 'undefined') {
|
|
25
|
+ global.RTCIceCandidate = RTCIceCandidate;
|
|
26
|
+ }
|
23
|
27
|
|
24
|
28
|
const navigator = global.navigator;
|
25
|
29
|
|