@whereby.com/media 2.6.10 → 2.7.0
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 +4 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +4 -1
- package/dist/legacy-esm.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2797,6 +2797,7 @@ class P2pRtcManager {
|
|
|
2797
2797
|
this._localStreamDeregisterFunction();
|
|
2798
2798
|
this._localStreamDeregisterFunction = null;
|
|
2799
2799
|
}
|
|
2800
|
+
this.rtcStatsDisconnect();
|
|
2800
2801
|
}
|
|
2801
2802
|
setupSocketListeners() {
|
|
2802
2803
|
this._socketListenerDeregisterFunctions = [
|
|
@@ -2899,6 +2900,7 @@ class P2pRtcManager {
|
|
|
2899
2900
|
}
|
|
2900
2901
|
}
|
|
2901
2902
|
rtcStatsDisconnect() {
|
|
2903
|
+
clearTimeout(this._rtcStatsDisconnectTimeout);
|
|
2902
2904
|
rtcStats.server.close();
|
|
2903
2905
|
}
|
|
2904
2906
|
rtcStatsReconnect() {
|
|
@@ -3624,7 +3626,7 @@ class P2pRtcManager {
|
|
|
3624
3626
|
this._changeBandwidthForAllClients(false);
|
|
3625
3627
|
const numPeers = this.numberOfPeerconnections();
|
|
3626
3628
|
if (numPeers === 0) {
|
|
3627
|
-
setTimeout(() => {
|
|
3629
|
+
this._rtcStatsDisconnectTimeout = setTimeout(() => {
|
|
3628
3630
|
const numPeers = this.numberOfPeerconnections();
|
|
3629
3631
|
if (numPeers === 0) {
|
|
3630
3632
|
this.rtcStatsDisconnect();
|
|
@@ -5723,6 +5725,7 @@ class VegaRtcManager {
|
|
|
5723
5725
|
this._screenAudioTrack = null;
|
|
5724
5726
|
this._streamIdToVideoConsumerId.clear();
|
|
5725
5727
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5728
|
+
this._qualityMonitor.close();
|
|
5726
5729
|
}
|
|
5727
5730
|
sendAudioMutedStats(muted) {
|
|
5728
5731
|
rtcStats.sendEvent("audio_muted", { muted });
|
package/dist/index.d.cts
CHANGED
|
@@ -1226,6 +1226,7 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1226
1226
|
_closed: boolean;
|
|
1227
1227
|
skipEmittingServerMessageCount: number;
|
|
1228
1228
|
analytics: P2PAnalytics;
|
|
1229
|
+
_rtcStatsDisconnectTimeout?: ReturnType<typeof setTimeout>;
|
|
1229
1230
|
constructor({ selfId, room, emitter, serverSocket, webrtcProvider, features, }: {
|
|
1230
1231
|
selfId: any;
|
|
1231
1232
|
room: any;
|
|
@@ -1595,7 +1596,7 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
1595
1596
|
_socketListenerDeregisterFunctions: any;
|
|
1596
1597
|
_reconnect: any;
|
|
1597
1598
|
_reconnectTimeOut: any;
|
|
1598
|
-
_qualityMonitor:
|
|
1599
|
+
_qualityMonitor: VegaMediaQualityMonitor;
|
|
1599
1600
|
_fetchMediaServersTimer: any;
|
|
1600
1601
|
_iceServers: any;
|
|
1601
1602
|
_turnServers: any;
|
package/dist/index.d.mts
CHANGED
|
@@ -1226,6 +1226,7 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1226
1226
|
_closed: boolean;
|
|
1227
1227
|
skipEmittingServerMessageCount: number;
|
|
1228
1228
|
analytics: P2PAnalytics;
|
|
1229
|
+
_rtcStatsDisconnectTimeout?: ReturnType<typeof setTimeout>;
|
|
1229
1230
|
constructor({ selfId, room, emitter, serverSocket, webrtcProvider, features, }: {
|
|
1230
1231
|
selfId: any;
|
|
1231
1232
|
room: any;
|
|
@@ -1595,7 +1596,7 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
1595
1596
|
_socketListenerDeregisterFunctions: any;
|
|
1596
1597
|
_reconnect: any;
|
|
1597
1598
|
_reconnectTimeOut: any;
|
|
1598
|
-
_qualityMonitor:
|
|
1599
|
+
_qualityMonitor: VegaMediaQualityMonitor;
|
|
1599
1600
|
_fetchMediaServersTimer: any;
|
|
1600
1601
|
_iceServers: any;
|
|
1601
1602
|
_turnServers: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1226,6 +1226,7 @@ declare class P2pRtcManager implements RtcManager {
|
|
|
1226
1226
|
_closed: boolean;
|
|
1227
1227
|
skipEmittingServerMessageCount: number;
|
|
1228
1228
|
analytics: P2PAnalytics;
|
|
1229
|
+
_rtcStatsDisconnectTimeout?: ReturnType<typeof setTimeout>;
|
|
1229
1230
|
constructor({ selfId, room, emitter, serverSocket, webrtcProvider, features, }: {
|
|
1230
1231
|
selfId: any;
|
|
1231
1232
|
room: any;
|
|
@@ -1595,7 +1596,7 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
1595
1596
|
_socketListenerDeregisterFunctions: any;
|
|
1596
1597
|
_reconnect: any;
|
|
1597
1598
|
_reconnectTimeOut: any;
|
|
1598
|
-
_qualityMonitor:
|
|
1599
|
+
_qualityMonitor: VegaMediaQualityMonitor;
|
|
1599
1600
|
_fetchMediaServersTimer: any;
|
|
1600
1601
|
_iceServers: any;
|
|
1601
1602
|
_turnServers: any;
|
package/dist/index.mjs
CHANGED
|
@@ -2776,6 +2776,7 @@ class P2pRtcManager {
|
|
|
2776
2776
|
this._localStreamDeregisterFunction();
|
|
2777
2777
|
this._localStreamDeregisterFunction = null;
|
|
2778
2778
|
}
|
|
2779
|
+
this.rtcStatsDisconnect();
|
|
2779
2780
|
}
|
|
2780
2781
|
setupSocketListeners() {
|
|
2781
2782
|
this._socketListenerDeregisterFunctions = [
|
|
@@ -2878,6 +2879,7 @@ class P2pRtcManager {
|
|
|
2878
2879
|
}
|
|
2879
2880
|
}
|
|
2880
2881
|
rtcStatsDisconnect() {
|
|
2882
|
+
clearTimeout(this._rtcStatsDisconnectTimeout);
|
|
2881
2883
|
rtcStats.server.close();
|
|
2882
2884
|
}
|
|
2883
2885
|
rtcStatsReconnect() {
|
|
@@ -3603,7 +3605,7 @@ class P2pRtcManager {
|
|
|
3603
3605
|
this._changeBandwidthForAllClients(false);
|
|
3604
3606
|
const numPeers = this.numberOfPeerconnections();
|
|
3605
3607
|
if (numPeers === 0) {
|
|
3606
|
-
setTimeout(() => {
|
|
3608
|
+
this._rtcStatsDisconnectTimeout = setTimeout(() => {
|
|
3607
3609
|
const numPeers = this.numberOfPeerconnections();
|
|
3608
3610
|
if (numPeers === 0) {
|
|
3609
3611
|
this.rtcStatsDisconnect();
|
|
@@ -5702,6 +5704,7 @@ class VegaRtcManager {
|
|
|
5702
5704
|
this._screenAudioTrack = null;
|
|
5703
5705
|
this._streamIdToVideoConsumerId.clear();
|
|
5704
5706
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5707
|
+
this._qualityMonitor.close();
|
|
5705
5708
|
}
|
|
5706
5709
|
sendAudioMutedStats(muted) {
|
|
5707
5710
|
rtcStats.sendEvent("audio_muted", { muted });
|
package/dist/legacy-esm.js
CHANGED
|
@@ -2776,6 +2776,7 @@ class P2pRtcManager {
|
|
|
2776
2776
|
this._localStreamDeregisterFunction();
|
|
2777
2777
|
this._localStreamDeregisterFunction = null;
|
|
2778
2778
|
}
|
|
2779
|
+
this.rtcStatsDisconnect();
|
|
2779
2780
|
}
|
|
2780
2781
|
setupSocketListeners() {
|
|
2781
2782
|
this._socketListenerDeregisterFunctions = [
|
|
@@ -2878,6 +2879,7 @@ class P2pRtcManager {
|
|
|
2878
2879
|
}
|
|
2879
2880
|
}
|
|
2880
2881
|
rtcStatsDisconnect() {
|
|
2882
|
+
clearTimeout(this._rtcStatsDisconnectTimeout);
|
|
2881
2883
|
rtcStats.server.close();
|
|
2882
2884
|
}
|
|
2883
2885
|
rtcStatsReconnect() {
|
|
@@ -3603,7 +3605,7 @@ class P2pRtcManager {
|
|
|
3603
3605
|
this._changeBandwidthForAllClients(false);
|
|
3604
3606
|
const numPeers = this.numberOfPeerconnections();
|
|
3605
3607
|
if (numPeers === 0) {
|
|
3606
|
-
setTimeout(() => {
|
|
3608
|
+
this._rtcStatsDisconnectTimeout = setTimeout(() => {
|
|
3607
3609
|
const numPeers = this.numberOfPeerconnections();
|
|
3608
3610
|
if (numPeers === 0) {
|
|
3609
3611
|
this.rtcStatsDisconnect();
|
|
@@ -5702,6 +5704,7 @@ class VegaRtcManager {
|
|
|
5702
5704
|
this._screenAudioTrack = null;
|
|
5703
5705
|
this._streamIdToVideoConsumerId.clear();
|
|
5704
5706
|
this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
|
|
5707
|
+
this._qualityMonitor.close();
|
|
5705
5708
|
}
|
|
5706
5709
|
sendAudioMutedStats(muted) {
|
|
5707
5710
|
rtcStats.sendEvent("audio_muted", { muted });
|