parent
edbbaef26f
commit
16d9ef5f1c
|
@ -2,6 +2,7 @@ import {
|
||||||
MediaStream,
|
MediaStream,
|
||||||
MediaStreamTrack,
|
MediaStreamTrack,
|
||||||
RTCSessionDescription,
|
RTCSessionDescription,
|
||||||
|
RTCIceCandidate,
|
||||||
getUserMedia
|
getUserMedia
|
||||||
} from 'react-native-webrtc';
|
} from 'react-native-webrtc';
|
||||||
|
|
||||||
|
@ -20,6 +21,9 @@ import RTCPeerConnection from './RTCPeerConnection';
|
||||||
if (typeof global.RTCSessionDescription === 'undefined') {
|
if (typeof global.RTCSessionDescription === 'undefined') {
|
||||||
global.RTCSessionDescription = RTCSessionDescription;
|
global.RTCSessionDescription = RTCSessionDescription;
|
||||||
}
|
}
|
||||||
|
if (typeof global.RTCIceCandidate === 'undefined') {
|
||||||
|
global.RTCIceCandidate = RTCIceCandidate;
|
||||||
|
}
|
||||||
|
|
||||||
const navigator = global.navigator;
|
const navigator = global.navigator;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue