@vkontakte/calls-sdk 2.8.11-dev.d67d6abf.0 → 2.8.11-dev.fa0dcb9d.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.
@@ -36,6 +36,7 @@ export default class Conversation extends EventEmitter {
36
36
  private _conversation;
37
37
  private _myLastRequestedLayouts;
38
38
  private _state;
39
+ private _previousState;
39
40
  private _participantState;
40
41
  private _participants;
41
42
  private _pendingParticipants;
@@ -59,8 +59,6 @@ export declare class Transport extends EventEmitter {
59
59
  close(participantId: ParticipantId): void;
60
60
  destroy(): void;
61
61
  getTopology(): TransportTopology;
62
- preventRestart(): void;
63
- allowRestart(): void;
64
62
  isAllocated(participantId: ParticipantId): boolean;
65
63
  allocated(): string[];
66
64
  opened(): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.d67d6abf.0",
3
+ "version": "2.8.11-dev.fa0dcb9d.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",
@@ -284,15 +284,14 @@ declare namespace External {
284
284
  /**
285
285
  * Разрешения на доступы были запрошены в браузере
286
286
  */
287
- function onPermissionsRequested(conversationId?: string): void;
287
+ function onPermissionsRequested(): void;
288
288
  /**
289
289
  * Ошибка получения трека с камеры или микрофона
290
290
  *
291
291
  * @param error
292
292
  * @param original
293
- * @param conversationId
294
293
  */
295
- function onPermissionsError(error: FatalError, original: Error, conversationId?: string): void;
294
+ function onPermissionsError(error: FatalError, original: Error): void;
296
295
  /**
297
296
  * Пользователь отключился от звонка
298
297
  *
@@ -419,9 +418,8 @@ declare namespace External {
419
418
  *
420
419
  * @param volume
421
420
  * @param isMicEnabled
422
- * @param conversationId
423
421
  */
424
- function onLocalVolume(volume: number, isMicEnabled: boolean, conversationId?: string): void;
422
+ function onLocalVolume(volume: number, isMicEnabled: boolean): void;
425
423
  function onJoinStatus(available: boolean, chatId: string, conversationId?: string): void;
426
424
  /**
427
425
  * Звонок был завершен
@@ -430,19 +428,19 @@ declare namespace External {
430
428
  * @param conversationId ID звонка
431
429
  */
432
430
  function onHangup(data: HangupReason, conversationId: string | null): void;
433
- function onMultipartyChatCreated(conversation: ConversationData, conversationId?: string): void;
431
+ function onMultipartyChatCreated(conversation: ConversationData): void;
434
432
  /**
435
433
  * Список устройств изменился
436
434
  */
437
- function onDeviceChange(conversationId?: string): void;
435
+ function onDeviceChange(): void;
438
436
  /**
439
437
  * Изменилась подпись звонка 1:1
440
438
  */
441
- function onFingerprintChange(fingerprint: string, conversationId?: string): void;
439
+ function onFingerprintChange(fingerprint: string): void;
442
440
  /**
443
441
  * Требуется обновление токена
444
442
  */
445
- function onTokenExpired(conversationId?: string): void;
443
+ function onTokenExpired(): void;
446
444
  /**
447
445
  * Получено сообщение чата
448
446
  *
@@ -510,13 +508,12 @@ declare namespace External {
510
508
  *
511
509
  * @param connection Статистика соединения
512
510
  * @param memory Статистика памяти
513
- * @param conversationId
514
511
  */
515
- function onStatistics(connection: StatResult, memory: Record<string, number>, conversationId?: string): void;
512
+ function onStatistics(connection: StatResult, memory: Record<string, number>): void;
516
513
  /**
517
514
  * Ошибка воспроизведения звука
518
515
  */
519
- function onAutoplayError(conversationId?: string): void;
516
+ function onAutoplayError(): void;
520
517
  /**
521
518
  * Изменилось состояние зала ожидания/зала в режиме Audience
522
519
  *
@@ -618,11 +618,11 @@ export type ParamsObject = {
618
618
  /**
619
619
  * Разрешения на доступы были запрошены в браузере
620
620
  */
621
- onPermissionsRequested?: (conversationId?: string) => void;
621
+ onPermissionsRequested?: () => void;
622
622
  /**
623
623
  * Ошибка получения трека с камеры или микрофона
624
624
  */
625
- onPermissionsError?: (error: FatalError, original: Error, conversationId?: string) => void;
625
+ onPermissionsError?: (error: FatalError, original: Error) => void;
626
626
  /**
627
627
  * Пользователь отключился от звонка
628
628
  */
@@ -674,8 +674,8 @@ export type ParamsObject = {
674
674
  /**
675
675
  * Громкость своего микрофона
676
676
  */
677
- onLocalVolume?: (volume: number, isMicEnabled: boolean, conversationId?: string) => void;
678
- onJoinStatus?: (conversationId?: string) => void;
677
+ onLocalVolume?: (volume: number, isMicEnabled: boolean) => void;
678
+ onJoinStatus?: (available: boolean, chatId: string, conversationId?: string) => void;
679
679
  /**
680
680
  * Звонок был завершен
681
681
  */
@@ -692,16 +692,16 @@ export type ParamsObject = {
692
692
  /**
693
693
  * Список устройств изменился
694
694
  */
695
- onDeviceChange?: (conversationId?: string) => void;
695
+ onDeviceChange?: () => void;
696
696
  onMultipartyChatCreated?: (conversation: ConversationData) => void;
697
697
  /**
698
698
  * Изменилась подпись звонка 1:1
699
699
  */
700
- onFingerprintChange?: (fingerprint: string, conversationId?: string) => void;
700
+ onFingerprintChange?: (fingerprint: string) => void;
701
701
  /**
702
702
  * Требуется обновление токена
703
703
  */
704
- onTokenExpired?: (conversationId?: string) => void;
704
+ onTokenExpired?: () => void;
705
705
  /**
706
706
  * Получено сообщение чата
707
707
  */
@@ -740,11 +740,11 @@ export type ParamsObject = {
740
740
  /**
741
741
  * Статистика звонка
742
742
  */
743
- onStatistics?: (stats: {}, conversationId?: string) => void;
743
+ onStatistics?: (stats: {}) => void;
744
744
  /**
745
745
  * Ошибка воспроизведения звука
746
746
  */
747
- onAutoplayError?: (conversationId?: string) => void;
747
+ onAutoplayError?: () => void;
748
748
  /**
749
749
  * Изменилось состояние зала ожидания/зала в режиме Audience
750
750
  *