@whereby.com/media 8.3.1 → 8.3.3
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/index.cjs +10 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +10 -1
- package/dist/legacy-esm.js +10 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -581,7 +581,7 @@ class Session {
|
|
|
581
581
|
desc.sdp = deprioritizeH264(desc.sdp);
|
|
582
582
|
this.srdComplete = this.pc.setRemoteDescription(desc);
|
|
583
583
|
return this.srdComplete.then(() => {
|
|
584
|
-
this.earlyIceCandidates.forEach((candidate) => this.
|
|
584
|
+
this.earlyIceCandidates.forEach((candidate) => this.addIceCandidate(candidate));
|
|
585
585
|
this.earlyIceCandidates = [];
|
|
586
586
|
});
|
|
587
587
|
}
|
|
@@ -643,6 +643,14 @@ class Session {
|
|
|
643
643
|
}
|
|
644
644
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
645
645
|
logger$a.warn("Failed to add ICE candidate ('%s'): %s", candidate ? candidate.candidate : null, e);
|
|
646
|
+
this._incrementAnalyticMetric("P2PAddIceCandidateFailure");
|
|
647
|
+
rtcStats.sendEvent("P2PAddIceCandidateFailure", {
|
|
648
|
+
clientId: this.clientId,
|
|
649
|
+
errorName: e === null || e === void 0 ? void 0 : e.name,
|
|
650
|
+
errorMessage: e === null || e === void 0 ? void 0 : e.message,
|
|
651
|
+
signalingState: this.pc.signalingState,
|
|
652
|
+
iceConnectionState: this.pc.iceConnectionState,
|
|
653
|
+
});
|
|
646
654
|
});
|
|
647
655
|
});
|
|
648
656
|
}
|
|
@@ -2543,6 +2551,7 @@ class P2pRtcManager {
|
|
|
2543
2551
|
P2PRelayedIceCandidate: 0,
|
|
2544
2552
|
P2PSessionAddTrack: 0,
|
|
2545
2553
|
P2PAddTrackToPeerConnections: 0,
|
|
2554
|
+
P2PAddIceCandidateFailure: 0,
|
|
2546
2555
|
};
|
|
2547
2556
|
}
|
|
2548
2557
|
numberOfPeerconnections() {
|
package/dist/index.d.cts
CHANGED
|
@@ -1376,6 +1376,7 @@ type P2PAnalytics = {
|
|
|
1376
1376
|
P2PRelayedIceCandidate: number;
|
|
1377
1377
|
P2PSessionAddTrack: number;
|
|
1378
1378
|
P2PAddTrackToPeerConnections: number;
|
|
1379
|
+
P2PAddIceCandidateFailure: number;
|
|
1379
1380
|
};
|
|
1380
1381
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
1381
1382
|
type P2PIncrementAnalyticMetric = (metric: P2PAnalyticMetric) => void;
|
package/dist/index.d.mts
CHANGED
|
@@ -1376,6 +1376,7 @@ type P2PAnalytics = {
|
|
|
1376
1376
|
P2PRelayedIceCandidate: number;
|
|
1377
1377
|
P2PSessionAddTrack: number;
|
|
1378
1378
|
P2PAddTrackToPeerConnections: number;
|
|
1379
|
+
P2PAddIceCandidateFailure: number;
|
|
1379
1380
|
};
|
|
1380
1381
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
1381
1382
|
type P2PIncrementAnalyticMetric = (metric: P2PAnalyticMetric) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1376,6 +1376,7 @@ type P2PAnalytics = {
|
|
|
1376
1376
|
P2PRelayedIceCandidate: number;
|
|
1377
1377
|
P2PSessionAddTrack: number;
|
|
1378
1378
|
P2PAddTrackToPeerConnections: number;
|
|
1379
|
+
P2PAddIceCandidateFailure: number;
|
|
1379
1380
|
};
|
|
1380
1381
|
type P2PAnalyticMetric = keyof P2PAnalytics;
|
|
1381
1382
|
type P2PIncrementAnalyticMetric = (metric: P2PAnalyticMetric) => void;
|
package/dist/index.mjs
CHANGED
|
@@ -560,7 +560,7 @@ class Session {
|
|
|
560
560
|
desc.sdp = deprioritizeH264(desc.sdp);
|
|
561
561
|
this.srdComplete = this.pc.setRemoteDescription(desc);
|
|
562
562
|
return this.srdComplete.then(() => {
|
|
563
|
-
this.earlyIceCandidates.forEach((candidate) => this.
|
|
563
|
+
this.earlyIceCandidates.forEach((candidate) => this.addIceCandidate(candidate));
|
|
564
564
|
this.earlyIceCandidates = [];
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -622,6 +622,14 @@ class Session {
|
|
|
622
622
|
}
|
|
623
623
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
624
624
|
logger$a.warn("Failed to add ICE candidate ('%s'): %s", candidate ? candidate.candidate : null, e);
|
|
625
|
+
this._incrementAnalyticMetric("P2PAddIceCandidateFailure");
|
|
626
|
+
rtcStats.sendEvent("P2PAddIceCandidateFailure", {
|
|
627
|
+
clientId: this.clientId,
|
|
628
|
+
errorName: e === null || e === void 0 ? void 0 : e.name,
|
|
629
|
+
errorMessage: e === null || e === void 0 ? void 0 : e.message,
|
|
630
|
+
signalingState: this.pc.signalingState,
|
|
631
|
+
iceConnectionState: this.pc.iceConnectionState,
|
|
632
|
+
});
|
|
625
633
|
});
|
|
626
634
|
});
|
|
627
635
|
}
|
|
@@ -2522,6 +2530,7 @@ class P2pRtcManager {
|
|
|
2522
2530
|
P2PRelayedIceCandidate: 0,
|
|
2523
2531
|
P2PSessionAddTrack: 0,
|
|
2524
2532
|
P2PAddTrackToPeerConnections: 0,
|
|
2533
|
+
P2PAddIceCandidateFailure: 0,
|
|
2525
2534
|
};
|
|
2526
2535
|
}
|
|
2527
2536
|
numberOfPeerconnections() {
|
package/dist/legacy-esm.js
CHANGED
|
@@ -560,7 +560,7 @@ class Session {
|
|
|
560
560
|
desc.sdp = deprioritizeH264(desc.sdp);
|
|
561
561
|
this.srdComplete = this.pc.setRemoteDescription(desc);
|
|
562
562
|
return this.srdComplete.then(() => {
|
|
563
|
-
this.earlyIceCandidates.forEach((candidate) => this.
|
|
563
|
+
this.earlyIceCandidates.forEach((candidate) => this.addIceCandidate(candidate));
|
|
564
564
|
this.earlyIceCandidates = [];
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -622,6 +622,14 @@ class Session {
|
|
|
622
622
|
}
|
|
623
623
|
this.pc.addIceCandidate(candidate).catch((e) => {
|
|
624
624
|
logger$a.warn("Failed to add ICE candidate ('%s'): %s", candidate ? candidate.candidate : null, e);
|
|
625
|
+
this._incrementAnalyticMetric("P2PAddIceCandidateFailure");
|
|
626
|
+
rtcStats.sendEvent("P2PAddIceCandidateFailure", {
|
|
627
|
+
clientId: this.clientId,
|
|
628
|
+
errorName: e === null || e === void 0 ? void 0 : e.name,
|
|
629
|
+
errorMessage: e === null || e === void 0 ? void 0 : e.message,
|
|
630
|
+
signalingState: this.pc.signalingState,
|
|
631
|
+
iceConnectionState: this.pc.iceConnectionState,
|
|
632
|
+
});
|
|
625
633
|
});
|
|
626
634
|
});
|
|
627
635
|
}
|
|
@@ -2522,6 +2530,7 @@ class P2pRtcManager {
|
|
|
2522
2530
|
P2PRelayedIceCandidate: 0,
|
|
2523
2531
|
P2PSessionAddTrack: 0,
|
|
2524
2532
|
P2PAddTrackToPeerConnections: 0,
|
|
2533
|
+
P2PAddIceCandidateFailure: 0,
|
|
2525
2534
|
};
|
|
2526
2535
|
}
|
|
2527
2536
|
numberOfPeerconnections() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/media",
|
|
3
3
|
"description": "Media library for Whereby",
|
|
4
|
-
"version": "8.3.
|
|
4
|
+
"version": "8.3.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/whereby/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"check-ip": "^1.1.1",
|
|
42
42
|
"events": "^3.3.0",
|
|
43
|
-
"ip-address": "^
|
|
43
|
+
"ip-address": "^10.1.1",
|
|
44
44
|
"mediasoup-client": "3.19.0",
|
|
45
45
|
"@whereby.com/rtcstats": "5.4.2",
|
|
46
46
|
"sdp": "^3.2.0",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"prettier": "^3.5.3",
|
|
62
62
|
"process": "^0.11.10",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
|
-
"@whereby.com/eslint-config": "0.1.0",
|
|
65
64
|
"@whereby.com/jest-config": "0.1.0",
|
|
66
65
|
"@whereby.com/prettier-config": "0.1.0",
|
|
67
66
|
"@whereby.com/rollup-config": "0.1.1",
|
|
68
|
-
"@whereby.com/tsconfig": "0.1.0"
|
|
67
|
+
"@whereby.com/tsconfig": "0.1.0",
|
|
68
|
+
"@whereby.com/eslint-config": "0.1.0"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=16.0.0"
|