2022-12-16 09:24:25 +00:00
|
|
|
import { registerGlobals } from 'react-native-webrtc';
|
2016-12-17 10:03:10 +00:00
|
|
|
|
|
|
|
import RTCPeerConnection from './RTCPeerConnection';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2022-12-16 09:24:25 +00:00
|
|
|
registerGlobals();
|
2016-10-05 14:36:59 +00:00
|
|
|
|
2022-12-16 09:24:25 +00:00
|
|
|
(global => {
|
|
|
|
// Override with ours.
|
|
|
|
// TODO: consider dropping our override.
|
|
|
|
global.RTCPeerConnection = RTCPeerConnection;
|
2016-10-05 14:36:59 +00:00
|
|
|
})(global || window || this); // eslint-disable-line no-invalid-this
|