Merge pull request #1534 from jitsi/p2p_react_native
[RN] export RTCIceCandidate
This commit is contained in:
commit
cdb547dbd1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue