@vkontakte/calls-sdk 2.8.13-dev.1736275e.0 → 2.8.13-dev.1b7a392d.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.13-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/calls-sdk v2.8.13-dev.1b7a392d.0
|
|
3
|
+
* Wed, 28 Oct 2026 12:29:44 GMT
|
|
4
4
|
* https://calls-sdk.cdn-vk.ru/doc/latest/index.html
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -2302,7 +2302,7 @@ var wn = Cn.getInstance(), N = class e {
|
|
|
2302
2302
|
return 1.1;
|
|
2303
2303
|
}
|
|
2304
2304
|
static get sdkVersion() {
|
|
2305
|
-
return "2.8.13-dev.
|
|
2305
|
+
return "2.8.13-dev.1b7a392d.0";
|
|
2306
2306
|
}
|
|
2307
2307
|
static get debug() {
|
|
2308
2308
|
return e._params.debug;
|
|
@@ -9612,9 +9612,6 @@ var Ls = "sessions", Rs = 5, zs = class e {
|
|
|
9612
9612
|
this._release(), t !== "missing" && e();
|
|
9613
9613
|
});
|
|
9614
9614
|
}
|
|
9615
|
-
abandon() {
|
|
9616
|
-
this._status !== "active" && this._status !== "starting" || (this._clearTimer(), this._status = "abandoned", this._release());
|
|
9617
|
-
}
|
|
9618
9615
|
_requestLock() {
|
|
9619
9616
|
let t = this._key, n = !1;
|
|
9620
9617
|
if (t !== null) try {
|
|
@@ -10058,7 +10055,7 @@ var nc = class extends f {
|
|
|
10058
10055
|
return e._pending = [], e._pendingOverflow = !1, t;
|
|
10059
10056
|
}
|
|
10060
10057
|
constructor(e, t, n, r = () => void 0) {
|
|
10061
|
-
super(), h(this, "
|
|
10058
|
+
super(), h(this, "_externalLogger", void 0), h(this, "_conversationIdProvider", void 0), h(this, "_topologyProvider", void 0), h(this, "_legacy", void 0), this._externalLogger = t, this._conversationIdProvider = n, this._topologyProvider = r, this._legacy = N.statQueueEnabled ? null : new nc(e, t, n, r);
|
|
10062
10059
|
}
|
|
10063
10060
|
log(e, t, n = !1) {
|
|
10064
10061
|
this._externalLogger && this._externalLogger.log(e, t, n);
|
|
@@ -10073,7 +10070,6 @@ var nc = class extends f {
|
|
|
10073
10070
|
this._legacy.logClientStats(t, n);
|
|
10074
10071
|
return;
|
|
10075
10072
|
}
|
|
10076
|
-
if (this.unloading) return;
|
|
10077
10073
|
Ks.ensure();
|
|
10078
10074
|
let i = v.userId;
|
|
10079
10075
|
if (i === null) {
|
|
@@ -10885,8 +10881,8 @@ var xc = class {
|
|
|
10885
10881
|
constructor(e, t, n, r, i) {
|
|
10886
10882
|
h(this, "logger", void 0), h(this, "lifecycle", void 0), h(this, "statAggregator", void 0), h(this, "codecStatsAggregator", void 0), h(this, "pings", void 0), h(this, "signalingCommands", void 0), h(this, "apiCalls", void 0), h(this, "resources", void 0), h(this, "battery", void 0), h(this, "_api", void 0), h(this, "_tail", void 0), this.logger = new rc(e, t, n, r), this._tail = N.statQueueEnabled && Ws.isSupported() ? new Ws(this.logger, () => this._callSummaries()) : null, this.lifecycle = new xc(this.logger, void 0, this._tail), this.resources = new Cc(i), this.statAggregator = new Tc(this.logger, this.resources), this.codecStatsAggregator = new wc(this.logger, r), this.pings = new Ac(this.logger), this.signalingCommands = new jc(this.logger), this.apiCalls = new ic(this.statAggregator), this._api = e, this._api.setApiCallStats(this.apiCalls), this.battery = new oc(this.logger);
|
|
10887
10883
|
}
|
|
10888
|
-
|
|
10889
|
-
N.statQueueEnabled
|
|
10884
|
+
onPageHide() {
|
|
10885
|
+
N.statQueueEnabled || this.destroy();
|
|
10890
10886
|
}
|
|
10891
10887
|
resetPingBaseline() {
|
|
10892
10888
|
this.pings.resetBaseline();
|
|
@@ -10898,7 +10894,7 @@ var xc = class {
|
|
|
10898
10894
|
this.codecStatsAggregator.destroy(), this.pings.logMetrics(), this.pings.destroy(), this.signalingCommands.logMetrics(), this.signalingCommands.destroy();
|
|
10899
10895
|
}
|
|
10900
10896
|
destroy() {
|
|
10901
|
-
this._api.setApiCallStats(null), this.lifecycle.markTerminated(), this.lifecycle.destroy(), this.statAggregator.destroy(), this.codecStatsAggregator.destroy(), this.pings.destroy(), this.signalingCommands.destroy(), this.resources.destroy(), this.battery.destroy(), this.logger.destroy(), N.statQueueEnabled &&
|
|
10897
|
+
this._api.setApiCallStats(null), this.lifecycle.markTerminated(), this.lifecycle.destroy(), this.statAggregator.destroy(), this.codecStatsAggregator.destroy(), this.pings.destroy(), this.signalingCommands.destroy(), this.resources.destroy(), this.battery.destroy(), this.logger.destroy(), N.statQueueEnabled && tc.notifyCallFinished();
|
|
10902
10898
|
}
|
|
10903
10899
|
_callSummaries() {
|
|
10904
10900
|
return [
|
|
@@ -10973,7 +10969,7 @@ var Lc = 15, $ = class e extends Ye {
|
|
|
10973
10969
|
updateDisplayLayout: (e) => this.updateDisplayLayout(e),
|
|
10974
10970
|
onNonFatalError: (e) => this._onNonFatalError(e)
|
|
10975
10971
|
}), this._onUnload = () => {
|
|
10976
|
-
this._stopFirstMediaSentProbe(), this._stats.resetPingBaseline(), this._conversation && this._api && this._sendHangupApi(this._conversation.id, this._state === "IDLE" ? O.CANCELED : O.HUNGUP), this._stats.
|
|
10972
|
+
this._stopFirstMediaSentProbe(), this._stats.resetPingBaseline(), this._conversation && this._api && this._sendHangupApi(this._conversation.id, this._state === "IDLE" ? O.CANCELED : O.HUNGUP), this._stats.onPageHide();
|
|
10977
10973
|
}, this._onRestore = () => {
|
|
10978
10974
|
this._stats.resetPingBaseline();
|
|
10979
10975
|
}, this._onVisibilityChange = () => {
|
|
@@ -44,8 +44,6 @@ export declare class CallStatTail {
|
|
|
44
44
|
* вызывается.
|
|
45
45
|
*/
|
|
46
46
|
complete(write: () => void): void;
|
|
47
|
-
/** Вкладка закрывается: хвост остаётся готовым финишем, замок снимаем. */
|
|
48
|
-
abandon(): void;
|
|
49
47
|
private _requestLock;
|
|
50
48
|
/** Замок держится, пока не разрешён возвращённый промис. */
|
|
51
49
|
private _onLockGranted;
|
|
@@ -24,8 +24,12 @@ export declare class ConversationStats {
|
|
|
24
24
|
private readonly _api;
|
|
25
25
|
private readonly _tail;
|
|
26
26
|
constructor(api: BaseApi, externalLogger: BaseLogger | null, getConversationId: () => string | null, getTopology: () => TransportTopology | undefined, resourceSources: ClientResourceSources);
|
|
27
|
-
/**
|
|
28
|
-
|
|
27
|
+
/**
|
|
28
|
+
* pagehide. С очередью ничего не делаем: финиш и итоги звонка лежат в
|
|
29
|
+
* хвосте, его перенесёт другая вкладка или следующий старт SDK. Старая
|
|
30
|
+
* схема отправляет финиш сразу.
|
|
31
|
+
*/
|
|
32
|
+
onPageHide(): void;
|
|
29
33
|
resetPingBaseline(): void;
|
|
30
34
|
logHangup(reason: HangupReason): void;
|
|
31
35
|
flushCallMetrics(): void;
|
|
@@ -24,8 +24,6 @@ export default class StatEventCollector extends BaseLogger {
|
|
|
24
24
|
private static _pendingOverflow;
|
|
25
25
|
private static _remember;
|
|
26
26
|
private static _takePending;
|
|
27
|
-
/** Вкладка закрывается (pagehide): в очередь больше не пишем. */
|
|
28
|
-
unloading: boolean;
|
|
29
27
|
private readonly _externalLogger;
|
|
30
28
|
private readonly _conversationIdProvider;
|
|
31
29
|
private readonly _topologyProvider;
|