|
@@ -1,5 +1,4 @@
|
1
|
|
-/* global __filename, mozRTCPeerConnection, webkitRTCPeerConnection,
|
2
|
|
- RTCPeerConnection, RTCSessionDescription */
|
|
1
|
+/* global __filename, RTCSessionDescription */
|
3
|
2
|
|
4
|
3
|
import { getLogger } from 'jitsi-meet-logger';
|
5
|
4
|
import transform from 'sdp-transform';
|
|
@@ -9,6 +8,7 @@ import JitsiRemoteTrack from './JitsiRemoteTrack';
|
9
|
8
|
import * as MediaType from '../../service/RTC/MediaType';
|
10
|
9
|
import LocalSdpMunger from './LocalSdpMunger';
|
11
|
10
|
import RTC from './RTC';
|
|
11
|
+import RTCUtils from './RTCUtils';
|
12
|
12
|
import RTCBrowserType from './RTCBrowserType';
|
13
|
13
|
import RTCEvents from '../../service/RTC/RTCEvents';
|
14
|
14
|
import RtxModifier from '../xmpp/RtxModifier';
|
|
@@ -150,21 +150,9 @@ export default function TraceablePeerConnection(
|
150
|
150
|
SignalingEvents.PEER_MUTED_CHANGED,
|
151
|
151
|
this._peerMutedChanged);
|
152
|
152
|
this.options = options;
|
153
|
|
- let RTCPeerConnectionType = null;
|
154
|
153
|
|
155
|
|
- if (RTCBrowserType.isFirefox()) {
|
156
|
|
- RTCPeerConnectionType = mozRTCPeerConnection;
|
157
|
|
- } else if (RTCBrowserType.isEdge()) {
|
158
|
|
- // TODO: Uncomment when done. For now use the Edge native
|
159
|
|
- // RTCPeerConnection.
|
160
|
|
- // RTCPeerConnectionType = ortcRTCPeerConnection;
|
161
|
|
- RTCPeerConnectionType = RTCPeerConnection;
|
162
|
|
- } else if (RTCBrowserType.isTemasysPluginUsed()) {
|
163
|
|
- RTCPeerConnectionType = RTCPeerConnection;
|
164
|
|
- } else {
|
165
|
|
- RTCPeerConnectionType = webkitRTCPeerConnection;
|
166
|
|
- }
|
167
|
|
- this.peerconnection = new RTCPeerConnectionType(iceConfig, constraints);
|
|
154
|
+ this.peerconnection
|
|
155
|
+ = new RTCUtils.RTCPeerConnectionType(iceConfig, constraints);
|
168
|
156
|
this.updateLog = [];
|
169
|
157
|
this.stats = {};
|
170
|
158
|
this.statsinterval = null;
|