瀏覽代碼

[RN] export RTCIceCandidate

Required for P2P.
j8
paweldomas 8 年之前
父節點
當前提交
16d9ef5f1c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js

+ 4
- 0
react/features/base/lib-jitsi-meet/native/polyfills-webrtc.js 查看文件

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

Loading…
取消
儲存