@vkontakte/calls-sdk 2.6.2-dev.8c5f377.0 → 2.6.2-dev.b477f0a.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.
@@ -250,6 +250,7 @@ export default class Conversation extends EventEmitter {
250
250
  videoEffect(effect: IEffect | null): Promise<void>;
251
251
  getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
252
252
  getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<ExternalParticipantListChunk>;
253
+ private _getInitialParticiapntListChunk;
253
254
  private _onLocalMediaStreamChanged;
254
255
  private _onScreenSharingStatus;
255
256
  private _changeRemoteMediaSettings;
@@ -305,6 +306,7 @@ export default class Conversation extends EventEmitter {
305
306
  private _toggleJoinAvailability;
306
307
  private _updateDisplayLayoutFromCache;
307
308
  private _setParticipantsStatus;
309
+ private _onJoinLinkChanged;
308
310
  }
309
311
  export declare class UpdateDisplayLayoutError extends Error {
310
312
  readonly participantErrors: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.6.2-dev.8c5f377.0",
3
+ "version": "2.6.2-dev.b477f0a.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",
@@ -187,8 +187,10 @@ declare namespace External {
187
187
  * @param unmute Разрешение включить устройство
188
188
  * @param userId Пользователь, для которого изменились разрешения или `null` для текущего пользователя
189
189
  * @param adminId Пользователь, который изменил разрешения
190
+ * @param stateUpdated Если `true`, значит глобальное/персональное состояние изменилось и поля `muteStates`/`unmuteOptions` содержат обновления, если `false`, значит, эти поля не имеют значения
191
+ * @param requestedMedia Какие устройства попросили влючить участника
190
192
  */
191
- function onMuteStates(muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll?: boolean, unmute?: boolean, userId?: ExternalParticipantId | null, adminId?: ExternalParticipantId | null): void;
193
+ function onMuteStates(muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll?: boolean, unmute?: boolean, userId?: ExternalParticipantId | null, adminId?: ExternalParticipantId | null, stateUpdated?: boolean, requestedMedia?: MediaOption[]): void;
192
194
  /**
193
195
  * Изменились роли собеседника в звонке
194
196
  *
@@ -348,5 +350,10 @@ declare namespace External {
348
350
  * @param stream стрим от WebRTC
349
351
  */
350
352
  function onRemoteMixedAudioStream(stream: MediaStream): void;
353
+ /**
354
+ * Получена новая ссылка на звонок
355
+ * @param joinLink токен присоединения к звонку
356
+ */
357
+ function onJoinLinkChanged(joinLink: string): void;
351
358
  }
352
359
  export default External;
@@ -349,7 +349,7 @@ export declare type ParamsObject = {
349
349
  /**
350
350
  * Изменились состояния устройств пользователя или разрешения включать камеру/микрофон
351
351
  */
352
- onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalParticipantId | null, adminId: ExternalParticipantId | null) => void;
352
+ onMuteStates?: (muteStates: MuteStates, unmuteOptions: MediaOption[], mediaOptions: MediaOption[], muteAll: boolean, unmute: boolean, userId: ExternalParticipantId | null, adminId: ExternalParticipantId | null, stateUpdated?: boolean, requestedMedia?: MediaOption[]) => void;
353
353
  /**
354
354
  * Изменились роли собеседника в звонке
355
355
  */
@@ -465,6 +465,11 @@ export declare type ParamsObject = {
465
465
  * @param stream стрим от WebRTC
466
466
  */
467
467
  onRemoteMixedAudioStream?: (stream: MediaStream) => void;
468
+ /**
469
+ * Получена новая ссылка на звонок
470
+ * @param joinLink токен присоединения к звонку
471
+ */
472
+ onJoinLinkChanged?: (joinLink: string) => void;
468
473
  };
469
474
  export default abstract class Params {
470
475
  private static _params;
@@ -474,7 +479,7 @@ export default abstract class Params {
474
479
  static get(name: string): any;
475
480
  static get appName(): string;
476
481
  static get appVersion(): number;
477
- static get sdkVersion(): string | number | boolean;
482
+ static get sdkVersion(): string;
478
483
  static get debug(): string | number | boolean;
479
484
  static get protocolVersion(): 5 | 6;
480
485
  static get platform(): string;
@@ -148,6 +148,8 @@ declare namespace SignalingMessage {
148
148
  muteStates: MuteStates;
149
149
  unmuteOptions?: MediaOption[];
150
150
  mediaOptions: MediaOption[];
151
+ requestedMedia?: MediaOption[];
152
+ stateUpdated?: boolean;
151
153
  unmute?: boolean;
152
154
  muteAll?: boolean;
153
155
  }
@@ -240,6 +242,7 @@ declare namespace SignalingMessage {
240
242
  demote: boolean;
241
243
  mediaModifiers: MediaModifiers;
242
244
  conversation: Conversation;
245
+ participants?: ParticipantListChunk;
243
246
  }
244
247
  export interface ChatRoomUpdated extends Notification {
245
248
  eventType: ChatRoomEventType;
@@ -273,6 +276,9 @@ declare namespace SignalingMessage {
273
276
  participants?: ParticipantListChunk;
274
277
  chatRoom?: ChatRoom;
275
278
  }
279
+ export interface JoinLinkChanged extends Notification {
280
+ joinLink: string;
281
+ }
276
282
  export {};
277
283
  }
278
284
  export default SignalingMessage;