@vkontakte/calls-sdk 2.8.11-dev.c08ac4e9.0 → 2.8.11-dev.d94b3aa4.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 -8
- package/calls-sdk.cjs.js +5 -5
- package/calls-sdk.esm.js +200 -302
- package/classes/Conversation.d.ts +1 -3
- package/classes/stat/StatFirstMediaReceived.d.ts +2 -1
- package/package.json +1 -1
- package/static/Params.d.ts +0 -8
- package/types/ParticipantLayout.d.ts +0 -33
- package/classes/DisplayLayoutRequester.d.ts +0 -32
|
@@ -20,7 +20,7 @@ import { IVideoDimentions } from '../types/MediaSettings';
|
|
|
20
20
|
import { IAddMovieParams, IUpdateMovieData } from '../types/MovieShare';
|
|
21
21
|
import MuteStates from '../types/MuteStates';
|
|
22
22
|
import { CompositeUserId, IGetParticipantsParameters, ParticipantId, ParticipantStateData } from '../types/Participant';
|
|
23
|
-
import {
|
|
23
|
+
import { ParticipantLayout } from '../types/ParticipantLayout';
|
|
24
24
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
25
25
|
import ParticipantPriority from '../types/ParticipantPriority';
|
|
26
26
|
import { ParticipantStreamDescription } from '../types/ParticipantStreamDescription';
|
|
@@ -32,7 +32,6 @@ export default class Conversation extends EventEmitter {
|
|
|
32
32
|
private readonly _api;
|
|
33
33
|
private readonly _signaling;
|
|
34
34
|
private readonly _signalingActor;
|
|
35
|
-
private readonly _displayLayoutRequester;
|
|
36
35
|
private _mediaSource;
|
|
37
36
|
private _conversation;
|
|
38
37
|
private _myLastRequestedLayouts;
|
|
@@ -205,7 +204,6 @@ export default class Conversation extends EventEmitter {
|
|
|
205
204
|
requestKeyFrame(participantStreamDescription: ParticipantStreamDescription): Promise<void | SignalingMessage>;
|
|
206
205
|
requestTestMode(consumerCommand: string, producerCommand: string): Promise<void>;
|
|
207
206
|
updateDisplayLayout(layouts: ParticipantLayout[]): Promise<void>;
|
|
208
|
-
requestDisplayLayout(requests: DisplayLayoutRequest[]): Promise<void>;
|
|
209
207
|
feedback(key: string): Promise<SignalingMessage>;
|
|
210
208
|
userFeedbackStats(userResponse: number, reason?: string, groupCallUsersCount?: number): void;
|
|
211
209
|
sendClientEvent(eventType: string, eventData?: Record<string, string | number | boolean>, immediately?: boolean): void;
|
|
@@ -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"
|
|
@@ -14,8 +15,8 @@ export declare class StatFirstMediaReceived {
|
|
|
14
15
|
protected _callType: ECallType | null;
|
|
15
16
|
markAcceptCall(topology: TransportTopology): void;
|
|
16
17
|
markAcceptedCall(topology?: TransportTopology): void;
|
|
17
|
-
markParticipantJoined(topology: TransportTopology): void;
|
|
18
18
|
markOnJoin(topology: TransportTopology): void;
|
|
19
|
+
markTopologyChanged(topology: TransportTopology): void;
|
|
19
20
|
private mark;
|
|
20
21
|
measure(): void;
|
|
21
22
|
}
|
package/package.json
CHANGED
package/static/Params.d.ts
CHANGED
|
@@ -306,12 +306,6 @@ export type ParamsObject = {
|
|
|
306
306
|
* _По умолчанию: `30`_
|
|
307
307
|
*/
|
|
308
308
|
videoTracksCount: number;
|
|
309
|
-
/**
|
|
310
|
-
* Минимальный интервал отправки diff для requestDisplayLayout в миллисекундах.
|
|
311
|
-
*
|
|
312
|
-
* _По умолчанию: `250`_
|
|
313
|
-
*/
|
|
314
|
-
requestDisplayLayoutThrottleMs: number;
|
|
315
309
|
/** @hidden */
|
|
316
310
|
movieShare: boolean;
|
|
317
311
|
/** @hidden */
|
|
@@ -969,7 +963,6 @@ export default abstract class Params {
|
|
|
969
963
|
static get audioNack(): boolean;
|
|
970
964
|
static get movieShare(): boolean;
|
|
971
965
|
static get videoTracksCount(): number;
|
|
972
|
-
static get requestDisplayLayoutThrottleMs(): number;
|
|
973
966
|
static get breakVideoPayloadTypes(): boolean;
|
|
974
967
|
static get useCallsToContacts(): boolean;
|
|
975
968
|
static get useParticipantListChunk(): boolean;
|
|
@@ -1017,7 +1010,6 @@ export default abstract class Params {
|
|
|
1017
1010
|
screenShareCongestionControl: boolean;
|
|
1018
1011
|
screenShareCongestionControlThreshold: number;
|
|
1019
1012
|
videoTracksCount: number;
|
|
1020
|
-
requestDisplayLayoutThrottleMs: number;
|
|
1021
1013
|
asrDataChannel: boolean;
|
|
1022
1014
|
videoMaxHeight: number;
|
|
1023
1015
|
videoMaxWidth: number;
|
|
@@ -54,37 +54,4 @@ export type ParticipantLayout = (Layout | StopStream | RequestKeyFrame) & {
|
|
|
54
54
|
*/
|
|
55
55
|
streamName?: string;
|
|
56
56
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Запрос стрима, который клиент хочет получать для отображения.
|
|
59
|
-
*/
|
|
60
|
-
export type DisplayLayoutRequest = {
|
|
61
|
-
/**
|
|
62
|
-
* Внешний ID пользователя
|
|
63
|
-
*/
|
|
64
|
-
uid: ExternalParticipantId | string;
|
|
65
|
-
/**
|
|
66
|
-
* Тип медиа (видео с камеры, картинка с экрана, лайв или мувик)
|
|
67
|
-
*/
|
|
68
|
-
mediaType: MediaType;
|
|
69
|
-
/**
|
|
70
|
-
* Ширина окошка в котором отображается видео, в пикселях
|
|
71
|
-
*/
|
|
72
|
-
width: number;
|
|
73
|
-
/**
|
|
74
|
-
* Высота окошка в котором отображается видео, в пикселях
|
|
75
|
-
*/
|
|
76
|
-
height: number;
|
|
77
|
-
/**
|
|
78
|
-
* Отображать видео как CSS object-fit: cover. По умолчанию используется contain.
|
|
79
|
-
*/
|
|
80
|
-
cover?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Приоритет
|
|
83
|
-
*/
|
|
84
|
-
priority?: number;
|
|
85
|
-
/**
|
|
86
|
-
* ID лайва или мувика. null для камеры или скрин-шары.
|
|
87
|
-
*/
|
|
88
|
-
streamName?: string;
|
|
89
|
-
};
|
|
90
57
|
export default ParticipantLayout;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import BaseApi from '../abstract/BaseApi';
|
|
2
|
-
import { DisplayLayoutRequest, ParticipantLayout } from '../types/ParticipantLayout';
|
|
3
|
-
import { Participant, ParticipantId } from '../types/Participant';
|
|
4
|
-
type DisplayLayoutRequesterParams = {
|
|
5
|
-
api: BaseApi;
|
|
6
|
-
getParticipants: () => Promise<Record<ParticipantId, Participant>>;
|
|
7
|
-
isMe: (participantId: ParticipantId) => boolean;
|
|
8
|
-
updateDisplayLayout: (layouts: ParticipantLayout[]) => Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
export default class DisplayLayoutRequester {
|
|
11
|
-
private readonly _api;
|
|
12
|
-
private readonly _getParticipants;
|
|
13
|
-
private readonly _isMe;
|
|
14
|
-
private readonly _updateDisplayLayout;
|
|
15
|
-
private _requestedLayouts;
|
|
16
|
-
private _pendingRequests;
|
|
17
|
-
private _pendingPromises;
|
|
18
|
-
private _timer;
|
|
19
|
-
private _inFlight;
|
|
20
|
-
private _lastFlushAt;
|
|
21
|
-
private _generation;
|
|
22
|
-
constructor({ api, getParticipants, isMe, updateDisplayLayout }: DisplayLayoutRequesterParams);
|
|
23
|
-
request(requests: DisplayLayoutRequest[]): Promise<void>;
|
|
24
|
-
cleanupParticipant(participantId: ParticipantId): void;
|
|
25
|
-
clear(): void;
|
|
26
|
-
private _schedule;
|
|
27
|
-
private _flush;
|
|
28
|
-
private _getRequestLayouts;
|
|
29
|
-
private _getDiff;
|
|
30
|
-
private _isChanged;
|
|
31
|
-
}
|
|
32
|
-
export {};
|