@vkontakte/calls-sdk 2.6.2-dev.9711e28.0 → 2.6.2-dev.9a503c1.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.
@@ -6,13 +6,16 @@ import ChatRoomEventType from '../enums/ChatRoomEventType';
6
6
  import ConversationOption from '../enums/ConversationOption';
7
7
  import FatalError from '../enums/FatalError';
8
8
  import MediaOption from '../enums/MediaOption';
9
+ import RoomsEventType from '../enums/RoomsEventType';
9
10
  import UserRole from '../enums/UserRole';
10
11
  import { ExternalId, ExternalParticipant, ExternalParticipantId, ExternalParticipantListChunk, ExternalParticipantListMarkers } from '../types/ExternalId';
11
12
  import IceServer from '../types/IceServer';
12
13
  import MediaModifiers from '../types/MediaModifiers';
13
14
  import MediaSettings from '../types/MediaSettings';
15
+ import { IOnRemoteMovieData, ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from '../types/MovieShare';
14
16
  import MuteStates from '../types/MuteStates';
15
17
  import { ParticipantStateMapped } from '../types/Participant';
18
+ import { Room, RoomParticipantUpdate, RoomsUpdate } from '../types/Room';
16
19
  import AuthData from './AuthData';
17
20
  import { DebugMessageType } from './Debug';
18
21
  import { ParticipantStatus } from './External';
@@ -24,6 +27,7 @@ import { FacingMode } from './WebRTCUtils';
24
27
  export declare type ParamsObject = {
25
28
  platform: string;
26
29
  clientType: string;
30
+ externalUserType: string;
27
31
  device: string;
28
32
  /**
29
33
  * API ключ приложения
@@ -43,6 +47,11 @@ export declare type ParamsObject = {
43
47
  * Домен, чтобы попасть в тестовую группу. Для тестирования экспериментальных улучшений существуют отдельные сервера, чтобы собирать фидбек и уже потом раскатывать на всех юзеров. Если передать сюда специальный ключ, то конверсейшн будет обрабатываться на таком сервере.
44
48
  */
45
49
  domain: string;
50
+ /**
51
+ * Домен, куда будет ходить Ok api за данными
52
+ * @hidden
53
+ */
54
+ externalDomain: string;
46
55
  iceServers: IceServer[];
47
56
  wssBase: string;
48
57
  wssToken: string;
@@ -186,6 +195,7 @@ export declare type ParamsObject = {
186
195
  * Работает только при приёме экрана через дата-канал.
187
196
  *
188
197
  * _По умолчанию: `true`_
198
+ * @deprecated
189
199
  */
190
200
  producerScreenTrack: boolean;
191
201
  /**
@@ -193,12 +203,19 @@ export declare type ParamsObject = {
193
203
  * Работает только при отправке экрана через дата-канал.
194
204
  *
195
205
  * _По умолчанию: `true`_
206
+ * @deprecated
196
207
  */
197
208
  consumerScreenTrack: boolean;
198
209
  producerNotificationDataChannel: boolean;
199
210
  producerCommandDataChannel: boolean;
200
211
  consumerScreenDataChannel: boolean;
201
212
  producerScreenDataChannel: boolean;
213
+ /**
214
+ * Размер пакета для отправки трансляции экрана в датаканал в байтах.
215
+ * Максимальный размер пакета 65536 bytes в хроме, но по стандарту лучше максимум 16 Кб.
216
+ * @hidden
217
+ */
218
+ consumerScreenDataChannelPacketSize: number;
202
219
  screenShareWebmBuilder: boolean;
203
220
  noiseSuppression: boolean;
204
221
  /**
@@ -239,6 +256,11 @@ export declare type ParamsObject = {
239
256
  * Включать RED-extension (redundancy) для p2p звонков
240
257
  */
241
258
  p2pAudioRed: boolean;
259
+ /**
260
+ * Добавлять флаг spsPpsIdrInKeyframe для h264 кодека. В результате ключевые фреймы без sps и pps
261
+ * не используются как ключевые. Решает проблему с артефактами на видео в случае потерь пакетов.
262
+ */
263
+ h264spsPpsIdrInKeyframe: boolean;
242
264
  /**
243
265
  * Получать список участников звонка третьим аргументом в `onConversation`
244
266
  * @hidden
@@ -292,11 +314,24 @@ export declare type ParamsObject = {
292
314
  * Получен стрим трансляция или мувик от собеседника.
293
315
  * Если сервер закончил стримить экран собеседника, вместо стрима будет передан null
294
316
  */
295
- onRemoteLive?: (userId: ExternalParticipantId, streamId: string, stream: MediaStream | null) => void;
317
+ onRemoteLive?: (userId: ExternalParticipantId, data: IOnRemoteMovieData) => void;
318
+ /**
319
+ * Получен собственный стрим трансляция или мувик.
320
+ * Если сервер закончил стримить экран собеседника, вместо стрима будет передан null
321
+ */
322
+ onLocalLive?: (userId: ExternalParticipantId, data: IOnRemoteMovieData) => void;
323
+ /**
324
+ * Получено обновление стрима или лайва от собеседника.
325
+ */
326
+ onRemoteLiveUpdate?: (userId: ExternalParticipantId, data: ISharedMovieState) => void;
327
+ /**
328
+ * Получено обновление собственного стрима или лайва.
329
+ */
330
+ onLocalLiveUpdate?: (userId: ExternalParticipantId, data: ISharedMovieState) => void;
296
331
  /**
297
332
  * Начат звонок
298
333
  */
299
- onConversation?: (userId: ExternalParticipantId, mediaModifiers: MediaModifiers, muteStates: MuteStates, participants?: ExternalParticipant[]) => void;
334
+ onConversation?: (userId: ExternalParticipantId, mediaModifiers: MediaModifiers, muteStates: MuteStates, participants?: ExternalParticipant[], rooms?: Room[]) => void;
300
335
  /**
301
336
  * Начальный список участников для постраничного звонка
302
337
  */
@@ -305,6 +340,26 @@ export declare type ParamsObject = {
305
340
  * Изменились данные стрима собеседника
306
341
  */
307
342
  onRemoteMediaSettings?: (userId: ExternalParticipantId, mediaSettings: MediaSettings, markers?: ExternalParticipantListMarkers) => void;
343
+ /**
344
+ * Изменились данные стрима собеседника
345
+ */
346
+ onLocalMediaSettings?: (userId: ExternalParticipantId, mediaSettings: MediaSettings) => void;
347
+ /**
348
+ * Полученны данные по стримам (лайв/мувик) от собеседника
349
+ */
350
+ onRemoteSharedMovieInfo?: (userId: ExternalParticipantId, sharedMovieInfo: ISharedMovieInfo) => void;
351
+ /**
352
+ * Полученны данные по остановленным стримам (лайв/мувик) от собеседника
353
+ */
354
+ onRemoteSharedMovieStoppedInfo?: (userId: ExternalParticipantId, sharedMovieStoppedInfo: ISharedMovieStoppedInfo) => void;
355
+ /**
356
+ * Полученны данные по собственным стримам (лайв/мувик)
357
+ */
358
+ onLocalSharedMovieInfo?: (userId: ExternalParticipantId, sharedMovieInfo: ISharedMovieInfo) => void;
359
+ /**
360
+ * Полученны данные по собственным остановленным стримам (лайв/мувик)
361
+ */
362
+ onLocalSharedMovieStoppedInfo?: (userId: ExternalParticipantId, sharedMovieStoppedInfo: ISharedMovieStoppedInfo) => void;
308
363
  /**
309
364
  * Добавили участника
310
365
  */
@@ -349,7 +404,7 @@ export declare type ParamsObject = {
349
404
  /**
350
405
  * Изменились состояния устройств пользователя или разрешения включать камеру/микрофон
351
406
  */
352
- onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalParticipantId | null, adminId: ExternalParticipantId | null) => void;
407
+ onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalParticipantId | null, adminId: ExternalParticipantId | null, stateUpdated?: boolean, requestedMedia?: MediaOption[]) => void;
353
408
  /**
354
409
  * Изменились роли собеседника в звонке
355
410
  */
@@ -470,6 +525,15 @@ export declare type ParamsObject = {
470
525
  * @param joinLink токен присоединения к звонку
471
526
  */
472
527
  onJoinLinkChanged?: (joinLink: string) => void;
528
+ /**
529
+ */
530
+ onRoomsUpdated?: (updates: Partial<Record<RoomsEventType, RoomsUpdate>>) => void;
531
+ /**
532
+ */
533
+ onRoomUpdated?: (eventTypes: RoomsEventType[], roomId: number, room: Room | null) => void;
534
+ /**
535
+ */
536
+ onRoomParticipantsUpdated?: (update: RoomParticipantUpdate) => void;
473
537
  };
474
538
  export default abstract class Params {
475
539
  private static _params;
@@ -479,13 +543,15 @@ export default abstract class Params {
479
543
  static get(name: string): any;
480
544
  static get appName(): string;
481
545
  static get appVersion(): number;
482
- static get sdkVersion(): string | number | boolean;
546
+ static get sdkVersion(): string;
483
547
  static get debug(): string | number | boolean;
484
548
  static get protocolVersion(): 5 | 6;
485
549
  static get platform(): string;
486
550
  static set platform(value: string);
487
551
  static get clientType(): string;
488
552
  static set clientType(value: string);
553
+ static get externalUserType(): string;
554
+ static set externalUserType(value: string);
489
555
  static get device(): string;
490
556
  static get apiKey(): string;
491
557
  static get apiEnv(): string;
@@ -495,6 +561,7 @@ export default abstract class Params {
495
561
  static get anonymToken(): string;
496
562
  static set anonymToken(value: string);
497
563
  static get domain(): string;
564
+ static get externalDomain(): string;
498
565
  static get iceServers(): IceServer[];
499
566
  static set iceServers(value: IceServer[]);
500
567
  static get wssBase(): string;
@@ -544,6 +611,7 @@ export default abstract class Params {
544
611
  static get producerCommandDataChannel(): boolean;
545
612
  static get consumerScreenDataChannel(): boolean;
546
613
  static get producerScreenDataChannel(): boolean;
614
+ static get consumerScreenDataChannelPacketSize(): number;
547
615
  static get screenShareWebmBuilder(): boolean;
548
616
  static get noiseSuppression(): boolean;
549
617
  static set noiseSuppression(value: boolean);
@@ -562,6 +630,7 @@ export default abstract class Params {
562
630
  static get participantListChunkInitCount(): number;
563
631
  static get serverAudioRed(): boolean;
564
632
  static get p2pAudioRed(): boolean;
633
+ static get h264spsPpsIdrInKeyframe(): boolean;
565
634
  static get batchParticipantsOnStart(): boolean;
566
635
  static get filterObservers(): boolean;
567
636
  static get muteMode(): boolean;
package/static/Utils.d.ts CHANGED
@@ -6,7 +6,7 @@ import VideoSettings from '../types/VideoSettings';
6
6
  export declare const PARAMETERS_SEPARATOR = ":";
7
7
  export declare const DEVICE_IDX_PARAMETER = "d";
8
8
  declare namespace Utils {
9
- function patchSDP(sdp: string, preferH264: boolean, brokenH264: boolean, preferVP9: boolean, isAudioNack?: boolean, preferRed?: boolean): string;
9
+ function patchSDP(sdp: string, preferH264: boolean, brokenH264: boolean, preferVP9: boolean, h264spsPpsIdrInKeyframe: boolean, isAudioNack?: boolean, preferRed?: boolean): string;
10
10
  function getPeerIdString(peerId: SignalingMessage.PeerId): string;
11
11
  function comparePeerId(peerId1: SignalingMessage.PeerId, peerId2: SignalingMessage.PeerId): boolean;
12
12
  function getPeerConnectionHostInfo(pc: RTCPeerConnection): Promise<any>;
@@ -60,5 +60,9 @@ declare namespace Utils {
60
60
  * https://stash.odkl.ru/projects/ODKL/repos/odnoklassniki-webrtc/browse/src/main/java/one/webrtc/domain/conversation/ParticipantIndex.java#67-78
61
61
  */
62
62
  function participantMarkerCompare(marker1: ExternalParticipantListMarker | undefined, marker2: ExternalParticipantListMarker | undefined): number;
63
+ /** убирает все ключи со значением `V` на 1 уровне */
64
+ function objectFilterOutValues<T extends Record<string, V>, V = unknown>(obj: T, value?: V | V[]): Partial<T>;
65
+ function objectReduce<R, T extends Object>(obj: T, callback: (acc: R, value: T[keyof T], key: keyof T) => R, initialValue: R): R;
66
+ const setImmediate: (fn: VoidFunction) => VoidFunction;
63
67
  }
64
68
  export default Utils;
@@ -0,0 +1,12 @@
1
+ import MediaOption from '../enums/MediaOption';
2
+ import MediaSettings from './MediaSettings';
3
+ import { Participant } from './Participant';
4
+ export interface IProcessMuteStateParams {
5
+ mediaOptions?: MediaOption[];
6
+ muteAll?: boolean;
7
+ unmute?: boolean;
8
+ serverSettings?: MediaSettings | null;
9
+ admin?: Participant | null;
10
+ stateUpdated?: boolean;
11
+ requestedMedia?: MediaOption[];
12
+ }
@@ -10,5 +10,6 @@ declare type ConversationParams = {
10
10
  isp_as_org?: string;
11
11
  loc_cc?: string;
12
12
  loc_reg?: string;
13
+ external_user_type: string;
13
14
  };
14
15
  export default ConversationParams;
@@ -1,6 +1,7 @@
1
1
  import MediaOption from '../enums/MediaOption';
2
2
  import { ParticipantStatus } from '../static/External';
3
3
  import MediaSettings from './MediaSettings';
4
+ import { ISharedMovieInfo } from './MovieShare';
4
5
  import MuteStates from './MuteStates';
5
6
  import { ParticipantListMarker, ParticipantListType, ParticipantStateMapped } from './Participant';
6
7
  import SignalingMessage from './SignalingMessage';
@@ -94,6 +95,7 @@ export interface ExternalParticipant {
94
95
  */
95
96
  unmuteOptions: MediaOption[];
96
97
  markers?: ExternalParticipantListMarkers;
98
+ movieShareInfos?: ISharedMovieInfo[];
97
99
  }
98
100
  export interface ExternalParticipantListChunk {
99
101
  participants: ExternalParticipant[];
@@ -0,0 +1,5 @@
1
+ import { Layout, RequestKeyFrame, StopStream } from './ParticipantLayout';
2
+ export declare const REQUEST_KEY_FRAME_CODE = "kf";
3
+ export declare function isStopStreaming(layout: Layout | StopStream | RequestKeyFrame): layout is StopStream;
4
+ export declare function isRequestKeyFrame(layout: Layout | StopStream | RequestKeyFrame): layout is RequestKeyFrame;
5
+ export declare function layoutToString(layout: Layout | StopStream | RequestKeyFrame): string;
@@ -19,7 +19,7 @@ export declare type MediaSettings = {
19
19
  export declare type VideoStreamInfo = {
20
20
  id: string;
21
21
  source: string;
22
- vkMovieId?: string;
22
+ externalMovieId?: string;
23
23
  };
24
24
  export default MediaSettings;
25
25
  export declare function compareMediaSettings(ms1: MediaSettings, ms2: MediaSettings): boolean;
@@ -0,0 +1,42 @@
1
+ import { OkUserId, CompositeUserId } from './Participant';
2
+ import { MediaType } from './ParticipantStreamDescription';
3
+ export interface IMoviePreview {
4
+ url: string;
5
+ width: number;
6
+ height: number;
7
+ }
8
+ export interface IAddMovieParams {
9
+ movieId: string;
10
+ gain?: number;
11
+ metadata?: {
12
+ title?: string;
13
+ thumbnails?: IMoviePreview[];
14
+ };
15
+ }
16
+ export declare type ISharedMovieStateResponse = [number, number, boolean, number, number];
17
+ export interface ISharedMovieState {
18
+ participantId: CompositeUserId;
19
+ gain?: number;
20
+ pause?: boolean;
21
+ offset?: number;
22
+ duration?: number;
23
+ }
24
+ export interface ISharedMovieInfo {
25
+ movieId: OkUserId;
26
+ initiatorId: CompositeUserId;
27
+ title: string;
28
+ source: MediaType;
29
+ externalMovieId: string;
30
+ duration: number;
31
+ thumbnails: IMoviePreview[];
32
+ }
33
+ export interface ISharedMovieStoppedInfo {
34
+ movieId: OkUserId;
35
+ initiatorId: CompositeUserId;
36
+ source: MediaType;
37
+ }
38
+ export interface IOnRemoteMovieData {
39
+ streamName: string;
40
+ stream: MediaStream | null;
41
+ mediaType: MediaType;
42
+ }
@@ -4,6 +4,7 @@ import UserRole from '../enums/UserRole';
4
4
  import { ParticipantStatus } from '../static/External';
5
5
  import MediaSettings from '../types/MediaSettings';
6
6
  import { ExternalId, ExternalParticipantId, ExternalParticipantListMarkers } from './ExternalId';
7
+ import { ISharedMovieInfo } from './MovieShare';
7
8
  import MuteStates from './MuteStates';
8
9
  import ParticipantLayout from './ParticipantLayout';
9
10
  /**
@@ -55,6 +56,7 @@ export interface Participant {
55
56
  unmuteOptions: MediaOption[];
56
57
  observedIds: CompositeUserId[];
57
58
  markers?: ExternalParticipantListMarkers;
59
+ movieShareInfos?: ISharedMovieInfo[];
58
60
  }
59
61
  export interface IGetParticipantsParameters {
60
62
  externalIds: ExternalId[];
@@ -31,10 +31,16 @@ export declare type StopStream = {
31
31
  */
32
32
  stopStream: true;
33
33
  };
34
+ /**
35
+ * Request key frame from source. Should not be called often, negatively impacts video quality.
36
+ */
37
+ export declare type RequestKeyFrame = {
38
+ keyFrameRequested: true;
39
+ };
34
40
  /**
35
41
  * Лейаут собеседника в звонке
36
42
  */
37
- export declare type ParticipantLayout = (Layout | StopStream) & {
43
+ export declare type ParticipantLayout = (Layout | StopStream | RequestKeyFrame) & {
38
44
  /**
39
45
  * Внешний ID пользователя
40
46
  */
@@ -0,0 +1,60 @@
1
+ import { ExternalParticipantId, ExternalParticipantListChunk } from './ExternalId';
2
+ import { Participant, ParticipantListMarkers } from './Participant';
3
+ export interface Room {
4
+ id: number;
5
+ /**
6
+ * name of this room
7
+ */
8
+ name: string;
9
+ /**
10
+ * count of participants (read/write, optional)
11
+ */
12
+ participantCount: number;
13
+ /**
14
+ * ids of all participants (read/write, optional)
15
+ */
16
+ participantIds: ExternalParticipantId[];
17
+ /**
18
+ * ids of participants to be added to this room (read/write, optional)
19
+ */
20
+ addParticipantIds?: ExternalParticipantId[];
21
+ /**
22
+ * ids of participants to be removed from this room (read/write, optional)
23
+ */
24
+ removeParticipantIds?: ExternalParticipantId[];
25
+ /**
26
+ * if participant requested then contains first chunk of participants in this rooms
27
+ * (if client fails to support chunks, then contains all participant in this room)
28
+ * (read, optional)
29
+ */
30
+ participants?: ExternalParticipantListChunk;
31
+ /**
32
+ * if this room is active (read/write, optional)
33
+ */
34
+ active?: boolean;
35
+ }
36
+ export interface RoomsUpdate {
37
+ rooms?: Room[];
38
+ roomIds?: number[];
39
+ }
40
+ export interface RoomParticipantUpdate {
41
+ roomId: number;
42
+ /**
43
+ * total number of participants in the room
44
+ */
45
+ participantCount: number;
46
+ /**
47
+ * ids of added participants, always present (if any) so participants would be able
48
+ * to identify their presence in particular room
49
+ */
50
+ addedParticipantIds?: ExternalParticipantId[];
51
+ /**
52
+ * optional, data for added participants
53
+ */
54
+ addedParticipants?: Participant[];
55
+ /**
56
+ * optional, depending on the context may contain either markers
57
+ * for all (sorted) lists available or be empty (if client fails to support chunked participants)
58
+ */
59
+ removedParticipantMarkers?: ParticipantListMarkers;
60
+ }
@@ -5,10 +5,12 @@ import ConversationOption from '../enums/ConversationOption';
5
5
  import HangupType from '../enums/HangupType';
6
6
  import MediaOption from '../enums/MediaOption';
7
7
  import ParticipantState from '../enums/ParticipantState';
8
+ import RoomsEventType from '../enums/RoomsEventType';
8
9
  import UserRole from '../enums/UserRole';
9
10
  import UserType from '../enums/UserType';
10
11
  import MediaModifiers from './MediaModifiers';
11
12
  import MediaSettings from './MediaSettings';
13
+ import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
12
14
  import MuteStates from './MuteStates';
13
15
  import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
14
16
  import VideoSettings from './VideoSettings';
@@ -54,6 +56,7 @@ declare namespace SignalingMessage {
54
56
  unmuteOptions?: MediaOption[];
55
57
  markers?: ParticipantListMarkers;
56
58
  observedIds?: CompositeUserId[];
59
+ movieShareInfos?: ISharedMovieInfo[];
57
60
  }
58
61
  export interface ParticipantListChunk extends Notification {
59
62
  participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
@@ -72,10 +75,21 @@ declare namespace SignalingMessage {
72
75
  multichatId: string | null;
73
76
  tamtamMultichatId: string | null;
74
77
  recordInfo: RecordInfo | null;
78
+ featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
75
79
  pinnedParticipantId: ParticipantId | null;
76
80
  options: ConversationOption[];
77
81
  muteStates?: MuteStates;
78
82
  }
83
+ export interface Room extends SignalingMessage {
84
+ id?: number;
85
+ name?: string;
86
+ participantCount?: number;
87
+ participantIds?: CompositeUserId[];
88
+ addParticipantIds?: CompositeUserId[];
89
+ removeParticipantIds?: CompositeUserId[];
90
+ participants?: ParticipantListChunk;
91
+ active?: boolean;
92
+ }
79
93
  interface Notification extends SignalingMessage {
80
94
  type?: string;
81
95
  notification?: string;
@@ -148,6 +162,8 @@ declare namespace SignalingMessage {
148
162
  muteStates: MuteStates;
149
163
  unmuteOptions?: MediaOption[];
150
164
  mediaOptions: MediaOption[];
165
+ requestedMedia?: MediaOption[];
166
+ stateUpdated?: boolean;
151
167
  unmute?: boolean;
152
168
  muteAll?: boolean;
153
169
  }
@@ -184,6 +200,7 @@ declare namespace SignalingMessage {
184
200
  }
185
201
  export interface FeatureSetChanged extends Notification {
186
202
  features: ConversationFeature[];
203
+ featuresPerRole?: Partial<Record<ConversationFeature, UserRole[]>> | null;
187
204
  }
188
205
  export interface MultipartyChatCreated extends Notification {
189
206
  chatId: string;
@@ -240,6 +257,7 @@ declare namespace SignalingMessage {
240
257
  demote: boolean;
241
258
  mediaModifiers: MediaModifiers;
242
259
  conversation: Conversation;
260
+ participants?: ParticipantListChunk;
243
261
  }
244
262
  export interface ChatRoomUpdated extends Notification {
245
263
  eventType: ChatRoomEventType;
@@ -272,10 +290,40 @@ declare namespace SignalingMessage {
272
290
  mediaModifiers: MediaModifiers;
273
291
  participants?: ParticipantListChunk;
274
292
  chatRoom?: ChatRoom;
293
+ rooms?: {
294
+ rooms: Room[];
295
+ };
275
296
  }
276
297
  export interface JoinLinkChanged extends Notification {
277
298
  joinLink: string;
278
299
  }
300
+ export interface SharedMovieState extends Notification {
301
+ data: ISharedMovieState[];
302
+ }
303
+ export interface SharedMovieInfo extends Notification {
304
+ movieShareInfo: ISharedMovieInfo;
305
+ }
306
+ export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
307
+ }
308
+ export interface RoomsUpdated extends Notification {
309
+ updates: Partial<Record<RoomsEventType, {
310
+ rooms?: Room;
311
+ roomIds?: number[];
312
+ }>>;
313
+ }
314
+ export interface RoomUpdated extends Notification {
315
+ events: RoomsEventType[];
316
+ room?: Room;
317
+ roomId: number;
318
+ deactivate?: boolean;
319
+ }
320
+ export interface RoomParticipantsUpdated extends Notification {
321
+ roomId: number;
322
+ participantCount: number;
323
+ addedParticipantIds?: CompositeUserId[];
324
+ addedParticipants?: Participant[];
325
+ removedParticipantMarkers?: ParticipantListMarkers;
326
+ }
279
327
  export {};
280
328
  }
281
329
  export default SignalingMessage;
@@ -0,0 +1,2 @@
1
+ import { MuteState, MediaOption, MuteStates } from '../CallsSDK';
2
+ export declare const getMediaOptionsByMuteState: (muteStates: MuteStates, value: MuteState) => MediaOption[];
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Fork from messagepack internals.
3
+ * Package messagepack doesn't export createWriteBuffer and createReadBuffer methods.
4
+ */
5
+ export declare function createWriteBuffer(): {
6
+ put(v: BufferSource): void;
7
+ putI8(v: number): void;
8
+ putI16(v: number): void;
9
+ putI32(v: number): void;
10
+ putI64(v: number): void;
11
+ putUi8(v: number): void;
12
+ putUi16(v: number): void;
13
+ putUi32(v: number): void;
14
+ putUi64(v: number): void;
15
+ putF(v: number): void;
16
+ ui8array(): Uint8Array;
17
+ };
18
+ export declare function createReadBuffer(buf: BufferSource): {
19
+ peek(): number;
20
+ get(len: number): ArrayBuffer;
21
+ getI8(): number;
22
+ getI16(): number;
23
+ getI32(): number;
24
+ getI64(): number;
25
+ getUi8(): number;
26
+ getUi16(): number;
27
+ getUi32(): number;
28
+ getUi64(): number;
29
+ getF32(): number;
30
+ getF64(): number;
31
+ };