@vkontakte/calls-sdk 2.8.8-dev.9b7cc0cd.0 → 2.8.8-dev.dc802fd6.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.cjs.js +10 -10
- package/calls-sdk.esm.js +10 -10
- package/default/Signaling.d.ts +0 -1
- package/package.json +1 -1
- package/static/External.d.ts +3 -1
- package/static/Params.d.ts +8 -1
- package/static/SignalingCapabilities.d.ts +24 -0
- package/types/SignalingMessage.d.ts +1 -0
package/default/Signaling.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export default class Signaling extends BaseSignaling {
|
|
|
56
56
|
private static get WAIT_CONNECTION_DELAY();
|
|
57
57
|
private static get WAIT_RESPONSE_DELAY();
|
|
58
58
|
private static get WAIT_MESSAGE_DELAY();
|
|
59
|
-
private static _getCapabilityFlags;
|
|
60
59
|
get ready(): boolean;
|
|
61
60
|
setEndpoint(endpoint: string): void;
|
|
62
61
|
setWebTransportEndpoint(endpoint: string | null): void;
|
package/package.json
CHANGED
package/static/External.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from '../typ
|
|
|
22
22
|
import { VmojiError } from '../types/Vmoji';
|
|
23
23
|
import { DebugMessageType } from './Debug';
|
|
24
24
|
import { JSONObject } from './Json';
|
|
25
|
+
import { ParticipantCapabilities } from './SignalingCapabilities';
|
|
25
26
|
/**
|
|
26
27
|
* Статус собеседника
|
|
27
28
|
*/
|
|
@@ -342,8 +343,9 @@ declare namespace External {
|
|
|
342
343
|
/**
|
|
343
344
|
* Исходящий звонок был принят кем-то
|
|
344
345
|
* @param userId
|
|
346
|
+
* @param capabilities
|
|
345
347
|
*/
|
|
346
|
-
function onAcceptedCall(userId: ExternalId): void;
|
|
348
|
+
function onAcceptedCall(userId: ExternalId, capabilities: ParticipantCapabilities): void;
|
|
347
349
|
function onRateNeeded(): void;
|
|
348
350
|
/**
|
|
349
351
|
* Изменился говорящий в звонке
|
package/static/Params.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { VmojiError } from '../types/Vmoji';
|
|
|
27
27
|
import { DebugMessageType } from './Debug';
|
|
28
28
|
import { ParticipantStatus } from './External';
|
|
29
29
|
import { JSONObject } from './Json';
|
|
30
|
+
import { ParticipantCapabilities } from './SignalingCapabilities';
|
|
30
31
|
import { FacingMode } from './WebRTCUtils';
|
|
31
32
|
/**
|
|
32
33
|
* Параметры инициализации
|
|
@@ -359,6 +360,10 @@ export type ParamsObject = {
|
|
|
359
360
|
* _По умолчанию: `false`_
|
|
360
361
|
*/
|
|
361
362
|
useChatRooms: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Включить поддержку добавления участника в разговор
|
|
365
|
+
*/
|
|
366
|
+
addParticipant: boolean;
|
|
362
367
|
/**
|
|
363
368
|
* Индекс участника для первого chunk'а который придет при установке соединения с сервером
|
|
364
369
|
*
|
|
@@ -713,7 +718,7 @@ export type ParamsObject = {
|
|
|
713
718
|
* Исходящий звонок был принят кем-то
|
|
714
719
|
* @param userId
|
|
715
720
|
*/
|
|
716
|
-
onAcceptedCall?: (userId: ExternalParticipantId) => void;
|
|
721
|
+
onAcceptedCall?: (userId: ExternalParticipantId, capabilities: ParticipantCapabilities) => void;
|
|
717
722
|
/**
|
|
718
723
|
* Список устройств изменился
|
|
719
724
|
*/
|
|
@@ -1004,6 +1009,7 @@ export default abstract class Params {
|
|
|
1004
1009
|
static get useParticipantListChunk(): boolean;
|
|
1005
1010
|
static get useRooms(): boolean;
|
|
1006
1011
|
static get useChatRooms(): boolean;
|
|
1012
|
+
static get addParticipant(): boolean;
|
|
1007
1013
|
static get participantListChunkInitIndex(): number;
|
|
1008
1014
|
static get participantListChunkInitCount(): number | null;
|
|
1009
1015
|
static get serverAudioRed(): boolean;
|
|
@@ -1044,6 +1050,7 @@ export default abstract class Params {
|
|
|
1044
1050
|
useParticipantListChunk: boolean;
|
|
1045
1051
|
useRooms: boolean;
|
|
1046
1052
|
useChatRooms: boolean;
|
|
1053
|
+
addParticipant: boolean;
|
|
1047
1054
|
fastScreenShare: boolean;
|
|
1048
1055
|
participantListChunkInitCount: number | null;
|
|
1049
1056
|
screenShareCongestionControl: boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const PREDICATES: {
|
|
2
|
+
readonly producerScreenTrack: () => boolean;
|
|
3
|
+
readonly videoTracksCount: () => boolean;
|
|
4
|
+
readonly waitingHall: () => boolean;
|
|
5
|
+
readonly filteredMessages: () => boolean;
|
|
6
|
+
readonly consumerScreenTrack: () => boolean;
|
|
7
|
+
readonly muteNotificationForAdmins: () => boolean;
|
|
8
|
+
readonly movieShare: () => boolean;
|
|
9
|
+
readonly useParticipantListChunk: () => boolean;
|
|
10
|
+
readonly useRooms: () => boolean;
|
|
11
|
+
readonly vmoji: () => boolean;
|
|
12
|
+
readonly useCallsToContacts: () => boolean;
|
|
13
|
+
readonly useChatRooms: () => boolean;
|
|
14
|
+
readonly audienceModeHandUpTimestamps: () => boolean;
|
|
15
|
+
readonly animojiBackendRender: () => boolean;
|
|
16
|
+
readonly addParticipant: () => boolean;
|
|
17
|
+
};
|
|
18
|
+
type ParticipantCapabilitiesKeys = keyof typeof PREDICATES;
|
|
19
|
+
export type ParticipantCapabilities = Record<ParticipantCapabilitiesKeys, boolean>;
|
|
20
|
+
export declare class SignalingCapabilities {
|
|
21
|
+
static getFlags(): string;
|
|
22
|
+
static parseCapabilities(mask?: string): ParticipantCapabilities;
|
|
23
|
+
}
|
|
24
|
+
export {};
|