@vkontakte/calls-sdk 2.4.4-dev.c28b095.0 → 2.5.2-dev.75f890a.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/CallsSDK.d.ts +2 -1
- package/abstract/BaseApi.d.ts +1 -1
- package/calls-sdk.cjs.js +16 -9
- package/calls-sdk.esm.js +16 -9
- package/classes/Conversation.d.ts +1 -1
- package/classes/Logger.d.ts +3 -0
- package/classes/codec/IDecoder.d.ts +2 -2
- package/classes/codec/LibVPxDecoder.d.ts +2 -2
- package/classes/codec/WebCodecsDecoder.d.ts +2 -2
- package/classes/screenshare/ScreenCaptureReceiver.d.ts +6 -1
- package/classes/transport/PerfStatReporter.d.ts +16 -0
- package/classes/transport/ServerTransport.d.ts +1 -0
- package/classes/transport/Statistics.d.ts +1 -0
- package/classes/transport/Transport.d.ts +1 -0
- package/enums/HangupType.d.ts +1 -0
- package/package.json +3 -1
- package/static/Params.d.ts +9 -7
- package/types/MediaSettings.d.ts +1 -0
|
@@ -86,7 +86,6 @@ export default class Conversation extends EventEmitter {
|
|
|
86
86
|
private _activeSpeakerId;
|
|
87
87
|
private _lastSignalledActiveSpeakerId;
|
|
88
88
|
private _serverSettings;
|
|
89
|
-
private _signalingServerSettings;
|
|
90
89
|
private static _current;
|
|
91
90
|
private static _activationMutex;
|
|
92
91
|
private static _delayedHangup;
|
|
@@ -284,6 +283,7 @@ export default class Conversation extends EventEmitter {
|
|
|
284
283
|
private _toggleJoinAvailability;
|
|
285
284
|
private _updateDisplayLayoutFromCache;
|
|
286
285
|
private _setParticipantsStatus;
|
|
286
|
+
replayShare(blob: Blob): void;
|
|
287
287
|
}
|
|
288
288
|
export declare class UpdateDisplayLayoutError extends Error {
|
|
289
289
|
readonly participantErrors: {
|
package/classes/Logger.d.ts
CHANGED
|
@@ -15,8 +15,11 @@ export default class Logger extends BaseLogger {
|
|
|
15
15
|
private _stopTimeout;
|
|
16
16
|
private _onUnload;
|
|
17
17
|
log(name: Stat, value?: string, immediately?: boolean): void;
|
|
18
|
+
logCustom(name: string, params: Record<string, string | number>, immediately?: boolean): void;
|
|
19
|
+
_logInternal(operation: string, custom: Record<string, string | number>, immediately: boolean): void;
|
|
18
20
|
destroy(): void;
|
|
19
21
|
static create(api: BaseApi, externalLogger: BaseLogger | null): void;
|
|
20
22
|
static log(name: Stat, value?: string, immediately?: boolean): void;
|
|
23
|
+
static logCustom(name: string, params: Record<string, string | number>, immediately?: boolean): void;
|
|
21
24
|
static destroy(): void;
|
|
22
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default interface IDecoder {
|
|
2
|
-
init(onFrameImage: (image: ImageBitmap | ImageData) => void): Promise<void>;
|
|
3
|
-
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, keyFrame?: boolean): void;
|
|
2
|
+
init(onFrameImage: (image: ImageBitmap | ImageData, frameCrc: string | null) => void): Promise<void>;
|
|
3
|
+
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, frameCrc: string, keyFrame?: boolean): void;
|
|
4
4
|
destroy(): void;
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import IDecoder from './IDecoder';
|
|
2
2
|
import WorkerBase from './WorkerBase';
|
|
3
3
|
export default class LibVPxDecoder extends WorkerBase implements IDecoder {
|
|
4
|
-
init(onFrameImage: (image: ImageData | ImageBitmap) => void): Promise<void>;
|
|
5
|
-
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, keyFrame?: boolean): void;
|
|
4
|
+
init(onFrameImage: (image: ImageData | ImageBitmap, frameCrc: string) => void): Promise<void>;
|
|
5
|
+
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, frameCrc: string, keyFrame?: boolean): void;
|
|
6
6
|
destroy(): void;
|
|
7
7
|
static isBrowserSupported(): boolean;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import IDecoder from './IDecoder';
|
|
2
2
|
import WorkerBase from './WorkerBase';
|
|
3
3
|
export default class WebCodecsDecoder extends WorkerBase implements IDecoder {
|
|
4
|
-
init(onFrameImage: (image: ImageBitmap) => void): Promise<void>;
|
|
5
|
-
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, keyFrame?: boolean): void;
|
|
4
|
+
init(onFrameImage: (image: ImageBitmap, frameCrc: string) => void): Promise<void>;
|
|
5
|
+
decodeFrame(timestamp: number, data: Uint8Array, isVP9: boolean, frameCrc: string, keyFrame?: boolean): void;
|
|
6
6
|
destroy(): void;
|
|
7
7
|
static isBrowserSupported(): boolean;
|
|
8
8
|
}
|
|
@@ -6,7 +6,12 @@ export default class ScreenCaptureReceiver {
|
|
|
6
6
|
private _streamBuilders;
|
|
7
7
|
private _onStream;
|
|
8
8
|
private _onEos;
|
|
9
|
-
|
|
9
|
+
private _parts;
|
|
10
|
+
private _lastChunk;
|
|
11
|
+
constructor(source: RTCDataChannel | Blob, participantIdRegistry: ParticipantIdRegistry, onStream: (streamId: string, stream: MediaStream) => void, onEos: (streamId: string) => void);
|
|
12
|
+
private _replay;
|
|
13
|
+
private _sleep;
|
|
14
|
+
private _readUint32;
|
|
10
15
|
private _onDataChannelMessage;
|
|
11
16
|
close(participantId: CompositeUserId): void;
|
|
12
17
|
destroy(): void;
|
|
@@ -6,11 +6,27 @@ export declare type PerfStatReport = {
|
|
|
6
6
|
framesDecoded: number;
|
|
7
7
|
framesReceived: number;
|
|
8
8
|
};
|
|
9
|
+
export declare type CallStarReport = {
|
|
10
|
+
nack_sent: number;
|
|
11
|
+
nack_received: number;
|
|
12
|
+
pli_sent: number;
|
|
13
|
+
pli_received: number;
|
|
14
|
+
fir_sent: number;
|
|
15
|
+
fir_received: number;
|
|
16
|
+
frames_dropped: number;
|
|
17
|
+
jitter_video: number;
|
|
18
|
+
jitter_audio: number;
|
|
19
|
+
interframe_delay_variance: number;
|
|
20
|
+
};
|
|
9
21
|
export default class PerfStatReporter extends EventEmitter {
|
|
10
22
|
private _previousTimestamp;
|
|
23
|
+
private _previousCallStatReportTimestamp;
|
|
24
|
+
private _previousCallStatReport;
|
|
11
25
|
private _signaling;
|
|
12
26
|
constructor(transport: ServerTransport | DirectTransport, signaling: BaseSignaling);
|
|
13
27
|
destroy(): void;
|
|
14
28
|
static getEstimatedPerformanceIndex(): number;
|
|
15
29
|
private _handleStats;
|
|
30
|
+
private reportPerfStats;
|
|
31
|
+
private _reportCallStats;
|
|
16
32
|
}
|
|
@@ -54,6 +54,7 @@ export default class ServerTransport extends EventEmitter {
|
|
|
54
54
|
private _createCaptureSender;
|
|
55
55
|
private _removeCaptureSender;
|
|
56
56
|
private _createCaptureReceiver;
|
|
57
|
+
replayShare(blob: Blob): void;
|
|
57
58
|
private _removeCaptureReceiver;
|
|
58
59
|
private _applyConsumerSettings;
|
|
59
60
|
private _onScreenSharingStatus;
|
package/enums/HangupType.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/calls-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2-dev.75f890a.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",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"@vkontakte/libvpx": "2.0.9",
|
|
19
19
|
"big-integer": "1.6.48",
|
|
20
20
|
"bit-buffer": "0.2.5",
|
|
21
|
+
"crc": "3.8.0",
|
|
22
|
+
"file-saver": "2.0.5",
|
|
21
23
|
"messagepack": "1.1.12",
|
|
22
24
|
"simple-ebml-builder": "^0.2.2",
|
|
23
25
|
"webrtc-adapter": "7.7.0"
|
package/static/Params.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare type ParamsObject = {
|
|
|
28
28
|
* API ключ приложения
|
|
29
29
|
*/
|
|
30
30
|
apiKey: string;
|
|
31
|
-
apiEnv?: 'PROD' | 'TEST' | 'VIDEOTEST' |
|
|
31
|
+
apiEnv?: 'AUTO' | 'PROD' | 'TEST' | 'VIDEOTEST' | string;
|
|
32
32
|
apiAuth?: typeof AuthData;
|
|
33
33
|
/**
|
|
34
34
|
* Токен авторизации
|
|
@@ -161,6 +161,7 @@ export declare type ParamsObject = {
|
|
|
161
161
|
[key: string]: number;
|
|
162
162
|
};
|
|
163
163
|
perfStatReportEnabled: boolean;
|
|
164
|
+
callStatReportEnabled: boolean;
|
|
164
165
|
unifiedPlanBrowsers: {
|
|
165
166
|
[key: string]: number;
|
|
166
167
|
};
|
|
@@ -212,6 +213,7 @@ export declare type ParamsObject = {
|
|
|
212
213
|
* он хочет видеть, через вызов updateDisplayLayout
|
|
213
214
|
*/
|
|
214
215
|
videoTracksCount: number;
|
|
216
|
+
movieShare: boolean;
|
|
215
217
|
filteredMessages: boolean;
|
|
216
218
|
breakVideoPayloadTypes: boolean;
|
|
217
219
|
/**
|
|
@@ -416,8 +418,8 @@ export default abstract class Params {
|
|
|
416
418
|
static get(name: string): any;
|
|
417
419
|
static get appName(): string;
|
|
418
420
|
static get appVersion(): number;
|
|
419
|
-
static get sdkVersion(): string
|
|
420
|
-
static get debug(): string
|
|
421
|
+
static get sdkVersion(): string;
|
|
422
|
+
static get debug(): string;
|
|
421
423
|
static get protocolVersion(): number;
|
|
422
424
|
static get platform(): string;
|
|
423
425
|
static set platform(value: string);
|
|
@@ -426,10 +428,8 @@ export default abstract class Params {
|
|
|
426
428
|
static get device(): string;
|
|
427
429
|
static get apiAppId(): number;
|
|
428
430
|
static get apiKey(): string;
|
|
429
|
-
static get apiEnv():
|
|
430
|
-
|
|
431
|
-
connect: string;
|
|
432
|
-
};
|
|
431
|
+
static get apiEnv(): string;
|
|
432
|
+
static get apiEndpoint(): string;
|
|
433
433
|
static get authToken(): string;
|
|
434
434
|
static set authToken(value: string);
|
|
435
435
|
static get anonymToken(): string;
|
|
@@ -478,6 +478,7 @@ export default abstract class Params {
|
|
|
478
478
|
static set statisticsInterval(value: number);
|
|
479
479
|
static get networkStatisticsInterval(): number;
|
|
480
480
|
static get perfStatReportEnabled(): boolean;
|
|
481
|
+
static get callStatReportEnabled(): boolean;
|
|
481
482
|
static get producerNotificationDataChannel(): boolean;
|
|
482
483
|
static get producerCommandDataChannel(): boolean;
|
|
483
484
|
static get consumerScreenDataChannel(): boolean;
|
|
@@ -491,6 +492,7 @@ export default abstract class Params {
|
|
|
491
492
|
static get consumerScreenTrack(): boolean;
|
|
492
493
|
static get producerScreenTrack(): boolean;
|
|
493
494
|
static isUnifiedPlanSupported(name: string, version: number): boolean;
|
|
495
|
+
static get movieShare(): boolean;
|
|
494
496
|
static get videoTracksCount(): number;
|
|
495
497
|
static get breakVideoPayloadTypes(): boolean;
|
|
496
498
|
static get filteredMessages(): boolean;
|
package/types/MediaSettings.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare type MediaSettings = {
|
|
|
19
19
|
export declare type VideoStreamInfo = {
|
|
20
20
|
id: string;
|
|
21
21
|
source: string;
|
|
22
|
+
vkMovieId?: string;
|
|
22
23
|
};
|
|
23
24
|
export default MediaSettings;
|
|
24
25
|
export declare function compareMediaSettings(ms1: MediaSettings, ms2: MediaSettings): boolean;
|