@vkontakte/calls-sdk 2.8.11-dev.229c3704.0 → 2.8.11-dev.3ca8f2a1.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/calls-sdk.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @vkontakte/calls-sdk v2.8.11-dev.229c3704.0
3
- * Mon, 25 May 2026 11:02:40 GMT
2
+ * @vkontakte/calls-sdk v2.8.11-dev.3ca8f2a1.0
3
+ * Tue, 26 May 2026 11:12:08 GMT
4
4
  * https://calls-sdk.cdn-vk.ru/doc/latest/index.html
5
5
  */
6
6
 
@@ -852,7 +852,7 @@ var be = ye.getInstance(), D = class e {
852
852
  return 1.1;
853
853
  }
854
854
  static get sdkVersion() {
855
- return "2.8.11-dev.229c3704.0";
855
+ return "2.8.11-dev.3ca8f2a1.0";
856
856
  }
857
857
  static get debug() {
858
858
  return e._params.debug;
@@ -6973,7 +6973,7 @@ var Vi = /* @__PURE__ */ function(e) {
6973
6973
  return;
6974
6974
  }
6975
6975
  let t = this._buildUrl(this.wtEndpoint, e, !0);
6976
- z.debug("[signaling] connecting to wt " + t), this.socket = new Qi(t);
6976
+ z.debug("[signaling] connecting to wt " + t), this.socket = new Qi(t, { congestionControl: "low-latency" });
6977
6977
  } else {
6978
6978
  let t = this._buildUrl(this.endpoint, e, !1);
6979
6979
  z.debug("[signaling] connecting to ws " + t), this.socket = new WebSocket(t);
@@ -7776,7 +7776,7 @@ var Ta = class {
7776
7776
  }
7777
7777
  }, Ba = class {
7778
7778
  constructor() {
7779
- h(this, "_isCallMarked", !1), h(this, "_isFinished", !1), h(this, "_callType", null);
7779
+ h(this, "_isCallMarked", !1), h(this, "_isFinished", !1), h(this, "_callType", null), h(this, "_participantJoinedWhileDirect", !1);
7780
7780
  }
7781
7781
  markAcceptCall(e) {
7782
7782
  this.mark(e === J.DIRECT ? "direct_incoming" : "server_incoming");
@@ -7785,10 +7785,19 @@ var Ta = class {
7785
7785
  e === J.DIRECT && this.mark("direct_outgoing");
7786
7786
  }
7787
7787
  markParticipantJoined(e) {
7788
- e === J.DIRECT && this.mark("server_change_topology");
7788
+ e === J.DIRECT && !this._isFinished && (this._participantJoinedWhileDirect = !0);
7789
7789
  }
7790
7790
  markOnJoin(e) {
7791
- e === J.SERVER && this.mark("server_join_server");
7791
+ this.mark(e === J.DIRECT ? "direct_join" : "server_join_server");
7792
+ }
7793
+ markTopologyChanged(e) {
7794
+ if (!(this._isFinished || e !== J.SERVER)) {
7795
+ if (this._callType === "direct_outgoing") {
7796
+ this._callType = "server_change_topology";
7797
+ return;
7798
+ }
7799
+ this._participantJoinedWhileDirect && this.mark("server_change_topology"), this._callType = "server_change_topology";
7800
+ }
7792
7801
  }
7793
7802
  mark(e) {
7794
7803
  this._isCallMarked || (this._isCallMarked = !0, this._callType = e, U.setMark(V.FIRST_MEDIA_RECEIVED));
@@ -9958,7 +9967,7 @@ var Ta = class {
9958
9967
  }
9959
9968
  _removeVideoTrack(e, t, n) {}
9960
9969
  _onTopologyChanged(e) {
9961
- e === J.DIRECT && (this._onRemoteSignalledStall([]), this._onAudioMixStall(!1)), this._conversation && (this._conversation.topology = e, this._changeFeatureSet(), this._forceOpenTransportForAloneInCall()), this._audioOutput.destroy();
9970
+ this._statFirstMediaReceived.markTopologyChanged(e), e === J.DIRECT && (this._onRemoteSignalledStall([]), this._onAudioMixStall(!1)), this._conversation && (this._conversation.topology = e, this._changeFeatureSet(), this._forceOpenTransportForAloneInCall()), this._audioOutput.destroy();
9962
9971
  }
9963
9972
  _onAudioMixStall(e) {
9964
9973
  this._audioMixStalled !== e && (this._audioMixStalled = e, z.debug("Audio mix stalled:", e), P.onLocalStatus(e ? A.RECONNECT : A.CONNECTED));
@@ -3,6 +3,7 @@ import { TransportTopology } from '../transport/Transport';
3
3
  declare enum ECallType {
4
4
  DirectOutgoing = "direct_outgoing",
5
5
  DirectIncoming = "direct_incoming",
6
+ DirectJoin = "direct_join",
6
7
  ServerIncoming = "server_incoming",
7
8
  ServerJoinServer = "server_join_server",
8
9
  ServerChangeTopology = "server_change_topology"
@@ -12,10 +13,12 @@ export declare class StatFirstMediaReceived {
12
13
  protected _isCallMarked: boolean;
13
14
  protected _isFinished: boolean;
14
15
  protected _callType: ECallType | null;
16
+ private _participantJoinedWhileDirect;
15
17
  markAcceptCall(topology: TransportTopology): void;
16
18
  markAcceptedCall(topology?: TransportTopology): void;
17
19
  markParticipantJoined(topology: TransportTopology): void;
18
20
  markOnJoin(topology: TransportTopology): void;
21
+ markTopologyChanged(topology: TransportTopology): void;
19
22
  private mark;
20
23
  measure(): void;
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.229c3704.0",
3
+ "version": "2.8.11-dev.3ca8f2a1.0",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",