@vkontakte/calls-sdk 2.8.12-dev.c0dd153e.0 → 2.8.12-dev.e23c81f4.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/abstract/BaseApi.d.ts +1 -1
- package/calls-sdk.cjs.js +7 -7
- package/calls-sdk.esm.js +1384 -1405
- package/classes/Conversation.d.ts +1 -0
- package/default/Api.d.ts +1 -1
- package/default/Signaling.d.ts +2 -2
- package/default/SignalingTransport.d.ts +1 -3
- package/package.json +1 -1
- package/static/Params.d.ts +9 -0
- package/types/WebTransport.d.ts +16 -17
|
@@ -160,6 +160,7 @@ export default class Conversation extends EventEmitter {
|
|
|
160
160
|
private _getExistedParticipantByIdOrCreate;
|
|
161
161
|
private _getExternalIdByParticipantId;
|
|
162
162
|
private _getExternalIdsByOkIdsFromCache;
|
|
163
|
+
private _getOrCacheExternalIdByCompositeId;
|
|
163
164
|
private _registerParticipantAndSetMarkersIfChunkEnabled;
|
|
164
165
|
private _warnParticipantNotInConversation;
|
|
165
166
|
private _denormalizeMarkers;
|
package/default/Api.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export default class Api extends BaseApi {
|
|
|
12
12
|
private _idCache;
|
|
13
13
|
private _callUnsafe;
|
|
14
14
|
protected _call(method: string, data?: any, noSession?: boolean): Promise<any>;
|
|
15
|
-
userId(participantId: ParticipantId):
|
|
15
|
+
userId(participantId: ParticipantId): ExternalParticipantId;
|
|
16
16
|
authorize(): Promise<void>;
|
|
17
17
|
private _getAnonymLoginCacheKey;
|
|
18
18
|
private _getCachedAnonymLogin;
|
package/default/Signaling.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import BaseSignaling, { AddParticipantParams } from '../abstract/BaseSignaling';
|
|
2
|
+
import StatsLogger from '../classes/StatsLogger';
|
|
2
3
|
import { ParticipantIdRegistry } from '../classes/ParticipantIdRegistry';
|
|
3
4
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
4
5
|
import { StatAggregator } from '../classes/stat/StatAggregator';
|
|
5
6
|
import { StatPings } from '../classes/stat/StatPings';
|
|
6
7
|
import { StatSignalingCommands } from '../classes/stat/StatSignalingCommands';
|
|
7
|
-
import
|
|
8
|
+
import TransportTopology from '../enums/TransportTopology';
|
|
8
9
|
import ConversationFeature from '../enums/ConversationFeature';
|
|
9
10
|
import ConversationOption from '../enums/ConversationOption';
|
|
10
11
|
import MediaOption from '../enums/MediaOption';
|
|
11
12
|
import SignalingConnectionType from '../enums/SignalingConnectionType';
|
|
12
|
-
import TransportTopology from '../enums/TransportTopology';
|
|
13
13
|
import UserRole from '../enums/UserRole';
|
|
14
14
|
import { type DebugLogger } from '../static/Debug';
|
|
15
15
|
import { JSONObject } from '../static/Json';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import SignalingConnectionType from '../enums/SignalingConnectionType';
|
|
2
2
|
import { SignalingTransportType } from '../enums/SignalingTransportStat';
|
|
3
|
-
import { DebugLogger } from '../static/Debug';
|
|
4
3
|
export declare enum SignalingTransportFailure {
|
|
5
4
|
EMPTY_ENDPOINT = "EMPTY_ENDPOINT",
|
|
6
5
|
NETWORK_ERROR = "NETWORK_ERROR",
|
|
@@ -39,8 +38,7 @@ export default class SignalingTransport {
|
|
|
39
38
|
private abortSignal;
|
|
40
39
|
private manualClose;
|
|
41
40
|
private currentType;
|
|
42
|
-
|
|
43
|
-
constructor(debug: DebugLogger | undefined, handlers: SignalingTransportHandlers);
|
|
41
|
+
constructor(handlers: SignalingTransportHandlers);
|
|
44
42
|
get readyState(): number | null;
|
|
45
43
|
get type(): SignalingTransportType;
|
|
46
44
|
setEndpoint(endpoint: string): void;
|
package/package.json
CHANGED
package/static/Params.d.ts
CHANGED
|
@@ -485,6 +485,13 @@ export type ParamsObject = {
|
|
|
485
485
|
* _По умолчанию: `false`_
|
|
486
486
|
*/
|
|
487
487
|
webtransport: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Включить поддержку webtransport для сигналинга в FireFox
|
|
490
|
+
* Отдельная ручка, так как есть проблемы сейчас с FF
|
|
491
|
+
*
|
|
492
|
+
* _По умолчанию: `false`_
|
|
493
|
+
*/
|
|
494
|
+
webtransportFF: boolean;
|
|
488
495
|
/**
|
|
489
496
|
* Ждать подтверждения от бэкенда для команд startStream/stopStream.
|
|
490
497
|
* При включении: reject без соединения, resolve/reject по ответу бэкенда,
|
|
@@ -1024,6 +1031,7 @@ export default abstract class Params {
|
|
|
1024
1031
|
static get enableVideoEffectsFpsDegradation(): boolean;
|
|
1025
1032
|
static get simulcast(): boolean;
|
|
1026
1033
|
static get webtransport(): boolean;
|
|
1034
|
+
static get webtransportFF(): boolean;
|
|
1027
1035
|
static get waitForRecordResponse(): boolean;
|
|
1028
1036
|
static get transparentAudio(): boolean;
|
|
1029
1037
|
static get enableSessionStateUpdates(): boolean;
|
|
@@ -1060,6 +1068,7 @@ export default abstract class Params {
|
|
|
1060
1068
|
switchVideoAtBadNetwork: boolean;
|
|
1061
1069
|
simulcast: boolean;
|
|
1062
1070
|
webtransport: boolean;
|
|
1071
|
+
webtransportFF: boolean;
|
|
1063
1072
|
waitForRecordResponse: boolean;
|
|
1064
1073
|
transparentAudio: boolean;
|
|
1065
1074
|
enableSessionStateUpdates: boolean;
|
package/types/WebTransport.d.ts
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import { WebTransportOptions } from '@fails-components/webtransport';
|
|
2
|
-
import { DebugLogger } from '../static/Debug';
|
|
3
2
|
declare class WebTransportEventual {
|
|
4
|
-
static isBrowserSupported(): boolean;
|
|
5
|
-
onopen: ((this: WebTransportEventual, ev: Event) => any) | null;
|
|
6
|
-
onmessage: ((this: WebTransportEventual, ev: MessageEvent) => any) | null;
|
|
7
|
-
onerror: ((this: WebTransportEventual, ev: Event) => any) | null;
|
|
8
|
-
onclose: ((this: WebTransportEventual, ev: CloseEvent) => any) | null;
|
|
9
|
-
readyState: number;
|
|
10
3
|
private webTransport;
|
|
4
|
+
private stream;
|
|
11
5
|
private writer;
|
|
6
|
+
private reader;
|
|
12
7
|
private readonly url;
|
|
13
8
|
private readonly options;
|
|
14
9
|
private readonly compression;
|
|
10
|
+
private closeRequested;
|
|
11
|
+
private closeEventEmitted;
|
|
15
12
|
private encoder;
|
|
16
13
|
private decoder;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
onopen: ((this: WebTransportEventual, ev: Event) => any) | null;
|
|
15
|
+
onmessage: ((this: WebTransportEventual, ev: MessageEvent) => any) | null;
|
|
16
|
+
onerror: ((this: WebTransportEventual, ev: Event) => any) | null;
|
|
17
|
+
onclose: ((this: WebTransportEventual, ev: CloseEvent) => any) | null;
|
|
18
|
+
readyState: number;
|
|
19
|
+
constructor(url: string, options?: WebTransportOptions);
|
|
21
20
|
private getCompressionTypeFromUrl;
|
|
22
21
|
private connect;
|
|
23
|
-
private
|
|
22
|
+
private readChunks;
|
|
24
23
|
private readLoop;
|
|
25
|
-
|
|
26
|
-
private handleStreamError;
|
|
27
|
-
private requestNativeClose;
|
|
28
|
-
private finishClose;
|
|
29
|
-
private emitEvent;
|
|
24
|
+
send(data: string): Promise<void>;
|
|
30
25
|
private createErrorEvent;
|
|
26
|
+
close(code?: number, reason?: string): void;
|
|
27
|
+
private closeConnectedTransport;
|
|
28
|
+
private emitClose;
|
|
29
|
+
static isBrowserSupported(): boolean;
|
|
31
30
|
}
|
|
32
31
|
export { WebTransportEventual as WebTransport };
|