@livedigital/client 2.35.0 → 2.36.0-debug-noise.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine/index.d.ts +0 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/engine/index.ts +12 -13
package/package.json
CHANGED
package/src/engine/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UnsupportedError as MediasoupUnsupportedError } from 'mediasoup-client/lib/errors';
|
|
2
2
|
import { RtpCapabilities } from 'mediasoup-client/lib/RtpParameters';
|
|
3
|
-
import WebRTCIssueDetector from 'webrtc-issue-detector';
|
|
4
3
|
import {
|
|
5
4
|
CreateCameraVideoTrackOptions,
|
|
6
5
|
CreateMicrophoneAudioTrackOptions,
|
|
@@ -76,7 +75,7 @@ class Engine {
|
|
|
76
75
|
|
|
77
76
|
private readonly logger: Logger;
|
|
78
77
|
|
|
79
|
-
private webRtcIssueDetector: WebRTCIssueDetector;
|
|
78
|
+
// private webRtcIssueDetector: WebRTCIssueDetector;
|
|
80
79
|
|
|
81
80
|
constructor(params: EngineParams) {
|
|
82
81
|
const {
|
|
@@ -119,15 +118,15 @@ class Engine {
|
|
|
119
118
|
onLogMessage: params.onLogMessage,
|
|
120
119
|
});
|
|
121
120
|
|
|
122
|
-
this.webRtcIssueDetector = dependenciesFactory.createIssueDetector({
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
});
|
|
121
|
+
// this.webRtcIssueDetector = dependenciesFactory.createIssueDetector({
|
|
122
|
+
// onIssues: params.onIssues,
|
|
123
|
+
// onNetworkScoresUpdated: params.onNetworkScoresUpdated,
|
|
124
|
+
// ignoreSSRCList: [1234], // mediasoup-client probator
|
|
125
|
+
// logger: new Logger({
|
|
126
|
+
// logLevel: this.logLevel,
|
|
127
|
+
// namespace: 'WID',
|
|
128
|
+
// }),
|
|
129
|
+
// });
|
|
131
130
|
|
|
132
131
|
this.watchSocketState();
|
|
133
132
|
this.watchClientEvents();
|
|
@@ -138,7 +137,7 @@ class Engine {
|
|
|
138
137
|
const { rtpCapabilities } = await this.network.socket
|
|
139
138
|
.request('router.getRtpCapabilities') as { rtpCapabilities: RtpCapabilities };
|
|
140
139
|
await this.media.loadDevice(rtpCapabilities);
|
|
141
|
-
this.webRtcIssueDetector.watchNewPeerConnections();
|
|
140
|
+
// this.webRtcIssueDetector.watchNewPeerConnections();
|
|
142
141
|
await this.network.createSendTransport(this.media.mediasoupDevice);
|
|
143
142
|
await this.network.createRecvTransport(this.media.mediasoupDevice);
|
|
144
143
|
this.initialized = true;
|
|
@@ -167,7 +166,7 @@ class Engine {
|
|
|
167
166
|
this.isJoined = false;
|
|
168
167
|
this.app = undefined;
|
|
169
168
|
this.channel = undefined;
|
|
170
|
-
this.webRtcIssueDetector.stopWatchingNewPeerConnections();
|
|
169
|
+
// this.webRtcIssueDetector.stopWatchingNewPeerConnections();
|
|
171
170
|
this.network.socket.disconnect();
|
|
172
171
|
this.peersRepository.clear();
|
|
173
172
|
await this.network.closeSendTransport();
|