Ver código fonte

[RN] export RTCIceCandidate

Required for P2P.
master
paweldomas 8 anos atrás
pai
commit
16d9ef5f1c

+ 4
- 0
react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js Ver arquivo

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

Carregando…
Cancelar
Salvar