@vkontakte/calls-sdk 2.8.13-beta.0 → 2.8.13-beta.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/calls-sdk.cjs.js +5 -5
- package/calls-sdk.esm.js +13 -12
- package/classes/VolumesDetector.d.ts +0 -1
- package/package.json +1 -1
- package/static/Params.d.ts +13 -1
package/calls-sdk.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @vkontakte/calls-sdk v2.8.13-beta.
|
|
3
|
-
* Fri,
|
|
2
|
+
* @vkontakte/calls-sdk v2.8.13-beta.1
|
|
3
|
+
* Fri, 18 Sep 2026 15:14:03 GMT
|
|
4
4
|
* https://calls-sdk.cdn-vk.ru/doc/latest/index.html
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -2152,10 +2152,13 @@ var yn = vn.getInstance(), M = class e {
|
|
|
2152
2152
|
return "ok.calls.sdk.js";
|
|
2153
2153
|
}
|
|
2154
2154
|
static get appVersion() {
|
|
2155
|
+
return e._params.appVersion;
|
|
2156
|
+
}
|
|
2157
|
+
static get apiClientVersion() {
|
|
2155
2158
|
return 1.1;
|
|
2156
2159
|
}
|
|
2157
2160
|
static get sdkVersion() {
|
|
2158
|
-
return "2.8.13-beta.
|
|
2161
|
+
return "2.8.13-beta.1";
|
|
2159
2162
|
}
|
|
2160
2163
|
static get debug() {
|
|
2161
2164
|
return e._params.debug;
|
|
@@ -2578,6 +2581,7 @@ var yn = vn.getInstance(), M = class e {
|
|
|
2578
2581
|
movieShare: e._params.movieShare,
|
|
2579
2582
|
clientType: e._params.clientType,
|
|
2580
2583
|
clientStatsPlatform: e._params.clientStatsPlatform,
|
|
2584
|
+
appVersion: e._params.appVersion,
|
|
2581
2585
|
consumerScreenDataChannelPacketSize: e._params.consumerScreenDataChannelPacketSize,
|
|
2582
2586
|
switchVideoAtBadNetwork: e._params.switchVideoAtBadNetwork,
|
|
2583
2587
|
simulcast: e._params.simulcast,
|
|
@@ -2593,6 +2597,7 @@ var yn = vn.getInstance(), M = class e {
|
|
|
2593
2597
|
h(M, "_params", {
|
|
2594
2598
|
platform: "WEB",
|
|
2595
2599
|
clientStatsPlatform: "",
|
|
2600
|
+
appVersion: "0.0.0",
|
|
2596
2601
|
clientType: "PORTAL",
|
|
2597
2602
|
externalUserType: "",
|
|
2598
2603
|
device: "browser",
|
|
@@ -6995,7 +7000,7 @@ var ya = va, ba = {
|
|
|
6995
7000
|
}
|
|
6996
7001
|
_buildUrl(e, t) {
|
|
6997
7002
|
let n = new URL(e), r = n.searchParams;
|
|
6998
|
-
return r.set("platform", M.platform), r.set("appVersion",
|
|
7003
|
+
return r.set("platform", M.platform), r.set("appVersion", M.appVersion), r.set("version", String(M.protocolVersion)), r.set("device", M.device), r.set("capabilities", xa.getFlags()), r.set("clientType", M.clientType), this.connectionType && r.set("tgt", this.connectionType), this.connectionType === vr.RETRY && this.lastStamp && r.set("recoverTs", String(this.lastStamp)), M.useParticipantListChunk && (r.set("partIdx", String(M.participantListChunkInitIndex)), M.participantListChunkInitCount !== null && r.set("partCount", String(M.participantListChunkInitCount))), t && (r.set("compression", "deflate-raw"), r.set("ua", navigator.userAgent)), this.peerId !== null && r.set("peerId", String(this.peerId)), n.toString();
|
|
6999
7004
|
}
|
|
7000
7005
|
_canUseWebTransport() {
|
|
7001
7006
|
return !this.forceWebSocket && Aa.isBrowserSupported() && this.wtEndpoint !== null && M.webtransport;
|
|
@@ -8488,9 +8493,8 @@ var bo = 90, xo = 3, So = class extends b {
|
|
|
8488
8493
|
this._triggerEvent("VOLUMES_DETECTED", e);
|
|
8489
8494
|
}
|
|
8490
8495
|
_getAudioTrackLevelByParticipantId(e) {
|
|
8491
|
-
if (this._isTransparentAudioMode()) return this._getTransparentAudioLevelByParticipantId(e);
|
|
8492
8496
|
let t = this._detectors.get(qr.AUDIO_MIX);
|
|
8493
|
-
return t ? t.getLevel() :
|
|
8497
|
+
return t ? t.getLevel() : this._getTransparentAudioLevelByParticipantId(e);
|
|
8494
8498
|
}
|
|
8495
8499
|
_getTransparentAudioLevelByParticipantId(e) {
|
|
8496
8500
|
if (!this._activeParticipants?.includes(e)) return null;
|
|
@@ -8507,9 +8511,6 @@ var bo = 90, xo = 3, So = class extends b {
|
|
|
8507
8511
|
_onTopologyChanged(e) {
|
|
8508
8512
|
this._topology = e, this._destroyDetectors(), e === J.DIRECT && (this._activeParticipants = null, this._removedParticipants = null);
|
|
8509
8513
|
}
|
|
8510
|
-
_isTransparentAudioMode() {
|
|
8511
|
-
return this._topology === J.SERVER && M.transparentAudio;
|
|
8512
|
-
}
|
|
8513
8514
|
_destroyDetectors() {
|
|
8514
8515
|
this._detectors.forEach((e) => {
|
|
8515
8516
|
e.destroy();
|
|
@@ -12465,7 +12466,7 @@ var Ps = class extends Es {
|
|
|
12465
12466
|
let t = { session_data: {
|
|
12466
12467
|
version: 2,
|
|
12467
12468
|
device_id: this._uuid,
|
|
12468
|
-
client_version: M.
|
|
12469
|
+
client_version: M.apiClientVersion,
|
|
12469
12470
|
client_type: "SDK_JS"
|
|
12470
12471
|
} };
|
|
12471
12472
|
return M.authToken && (t.session_data.auth_token = M.authToken, t.session_data.version = 3), this._callUnsafe("auth.anonymLogin", t, !0).then((e) => {
|
|
@@ -12523,7 +12524,7 @@ var Ps = class extends Es {
|
|
|
12523
12524
|
}
|
|
12524
12525
|
logClientStats(e) {
|
|
12525
12526
|
let t = {
|
|
12526
|
-
app_version:
|
|
12527
|
+
app_version: M.appVersion,
|
|
12527
12528
|
sdk_type: "WEB",
|
|
12528
12529
|
sdk_version: M.sdkVersion,
|
|
12529
12530
|
version: 1,
|
|
@@ -12726,7 +12727,7 @@ var Ls = /* @__PURE__ */ function(e) {
|
|
|
12726
12727
|
let e = await bs("auth.anonymLogin", {
|
|
12727
12728
|
session_data: {
|
|
12728
12729
|
device_id: this._uuid,
|
|
12729
|
-
client_version: M.
|
|
12730
|
+
client_version: M.apiClientVersion,
|
|
12730
12731
|
client_type: "SDK_JS",
|
|
12731
12732
|
auth_token: this._callToken,
|
|
12732
12733
|
version: 3
|
package/package.json
CHANGED
package/static/Params.d.ts
CHANGED
|
@@ -37,6 +37,11 @@ export type ParamsObject = {
|
|
|
37
37
|
platform: string;
|
|
38
38
|
/** @hidden */
|
|
39
39
|
clientStatsPlatform: string;
|
|
40
|
+
/**
|
|
41
|
+
* Версия приложения-хоста, уходит в статистику и сигналинг, например `'26.31.0:6822'`.
|
|
42
|
+
* По умолчанию `'0.0.0'`
|
|
43
|
+
*/
|
|
44
|
+
appVersion: string;
|
|
40
45
|
/** @hidden */
|
|
41
46
|
clientType: string;
|
|
42
47
|
/** @hidden */
|
|
@@ -927,7 +932,13 @@ export default abstract class Params {
|
|
|
927
932
|
static getScreenFrameRate(fastScreenShare: boolean): number;
|
|
928
933
|
static get<N extends keyof ParamsObject>(name: N): ParamsObject[N];
|
|
929
934
|
static get appName(): string;
|
|
930
|
-
static get appVersion():
|
|
935
|
+
static get appVersion(): string;
|
|
936
|
+
/**
|
|
937
|
+
* Версия клиента для `client_version` в `auth.anonymLogin`. Бэкенд валидирует формат,
|
|
938
|
+
* поэтому это фиксированное значение, а не версия приложения-хоста (см. {@link Params.appVersion}).
|
|
939
|
+
* @hidden
|
|
940
|
+
*/
|
|
941
|
+
static get apiClientVersion(): number;
|
|
931
942
|
static get sdkVersion(): string;
|
|
932
943
|
static get debug(): boolean;
|
|
933
944
|
static get protocolVersion(): 5 | 6;
|
|
@@ -1087,6 +1098,7 @@ export default abstract class Params {
|
|
|
1087
1098
|
movieShare: boolean;
|
|
1088
1099
|
clientType: string;
|
|
1089
1100
|
clientStatsPlatform: string;
|
|
1101
|
+
appVersion: string;
|
|
1090
1102
|
consumerScreenDataChannelPacketSize: number;
|
|
1091
1103
|
switchVideoAtBadNetwork: boolean;
|
|
1092
1104
|
simulcast: boolean;
|