@vkontakte/calls-sdk 2.8.12-dev.6d42bb04.0 → 2.8.12-dev.6d679417.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.
@@ -114,7 +114,7 @@ export default class Conversation extends EventEmitter {
114
114
  private _allocateParticipantTransport;
115
115
  private _cleanupRegistry;
116
116
  private _close;
117
- destroy(): Promise<void>;
117
+ destroy(): void;
118
118
  private _getConversationParams;
119
119
  private _setConversationParams;
120
120
  private _buildSignalingEndpoint;
@@ -156,6 +156,7 @@ export default class Conversation extends EventEmitter {
156
156
  private _getExistedParticipantByIdOrCreate;
157
157
  private _getExternalIdByParticipantId;
158
158
  private _getExternalIdsByOkIdsFromCache;
159
+ private _getOrCacheExternalIdByCompositeId;
159
160
  private _registerParticipantAndSetMarkersIfChunkEnabled;
160
161
  private _warnParticipantNotInConversation;
161
162
  private _denormalizeMarkers;
@@ -360,7 +361,7 @@ export default class Conversation extends EventEmitter {
360
361
  private _onRecordInfo;
361
362
  private _onStopRecordInfo;
362
363
  private _changePinnedParticipantForRoom;
363
- _changeRecordInfoForRoom(): Promise<void>;
364
+ _changeRecordInfoForRoom(): void;
364
365
  private _changeAsrInfoForRoom;
365
366
  private _changeUrlSharingInfoForRoom;
366
367
  private _onParticipantAnimojiChanged;
@@ -5,7 +5,7 @@ import { Participant, ParticipantId } from '../types/Participant';
5
5
  type DisplayLayoutRequesterParams = {
6
6
  api: BaseApi;
7
7
  debug: DebugLogger;
8
- getParticipants: () => Promise<Record<ParticipantId, Participant>>;
8
+ getParticipants: () => Record<ParticipantId, Participant>;
9
9
  isMe: (participantId: ParticipantId) => boolean;
10
10
  updateDisplayLayout: (layouts: ParticipantLayout[]) => Promise<void>;
11
11
  };
@@ -1,6 +1,7 @@
1
1
  import { ExternalId, ExternalParticipantId } from '../types/ExternalId';
2
2
  import { CompositeUserId, OkUserId, ParticipantId } from '../types/Participant';
3
3
  export declare class ExternalIdCache {
4
+ private static _normalizeType;
4
5
  private _okIdToExternalId;
5
6
  private _externalIdToOkId;
6
7
  private _decorativeIdToInitialId;
package/default/Api.d.ts CHANGED
@@ -11,7 +11,7 @@ export default class Api extends BaseApi {
11
11
  private _idCache;
12
12
  private _callUnsafe;
13
13
  protected _call(method: string, data?: any, noSession?: boolean, allowReauthorize?: boolean): Promise<any>;
14
- userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
14
+ userId(participantId: ParticipantId): ExternalParticipantId;
15
15
  authorize(): Promise<void>;
16
16
  private _getAnonymLoginCacheKey;
17
17
  private _getCachedAnonymLogin;
@@ -75,7 +75,7 @@ export default class Signaling extends BaseSignaling {
75
75
  connect(connectionType: SignalingConnectionType): Promise<SignalingMessage.Connection>;
76
76
  getNextCommandSequenceNumber(): number;
77
77
  hangup(reason: string): Promise<SignalingMessage | void>;
78
- sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidate): Promise<SignalingMessage>;
78
+ sendCandidate(participantId: ParticipantId, candidate: RTCIceCandidateInit): Promise<SignalingMessage>;
79
79
  requestTestMode(consumerCommand: string, producerCommand: string | null): Promise<SignalingMessage>;
80
80
  sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit, extraPayload?: Record<string, any>): Promise<SignalingMessage>;
81
81
  acceptCall(mediaSettings: MediaSettings): Promise<SignalingMessage>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.12-dev.6d42bb04.0",
3
+ "version": "2.8.12-dev.6d679417.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",
@@ -637,6 +637,6 @@ declare namespace External {
637
637
  /**
638
638
  * Собеседник подключился к сигналлингу
639
639
  */
640
- function onPeerRegistered(conversationId?: string): void;
640
+ function onPeerRegistered(conversationId?: string, externalIds?: ExternalId[]): void;
641
641
  }
642
642
  export default External;
@@ -505,6 +505,16 @@ export type ParamsObject = {
505
505
  * _По умолчанию: `false`_
506
506
  */
507
507
  enableSessionStateUpdates: boolean;
508
+ /**
509
+ * Использовать `<audio>` вместо `<video>` для воспроизведения звука в desktop Safari
510
+ * @hidden
511
+ */
512
+ safariAudioElement: boolean;
513
+ /**
514
+ * Отправлять пустой ICE candidate (end-of-candidates) удалённому пиру
515
+ * @hidden
516
+ */
517
+ forwardEmptyIceCandidate: boolean;
508
518
  /**
509
519
  * Получен локальный стрим с камеры/микрофона
510
520
  */
@@ -892,7 +902,7 @@ export type ParamsObject = {
892
902
  /**
893
903
  * Собеседник подключился к сигналлингу
894
904
  */
895
- onPeerRegistered?: (conversationId?: string) => void;
905
+ onPeerRegistered?: (conversationId?: string, externalIds?: ExternalId[]) => void;
896
906
  };
897
907
  export default abstract class Params {
898
908
  private static _params;
@@ -1027,6 +1037,8 @@ export default abstract class Params {
1027
1037
  static get waitForRecordResponse(): boolean;
1028
1038
  static get transparentAudio(): boolean;
1029
1039
  static get enableSessionStateUpdates(): boolean;
1040
+ static get safariAudioElement(): boolean;
1041
+ static get forwardEmptyIceCandidate(): boolean;
1030
1042
  static toJSON(): {
1031
1043
  apiKey: string;
1032
1044
  apiEnv: string;
@@ -1063,5 +1075,7 @@ export default abstract class Params {
1063
1075
  waitForRecordResponse: boolean;
1064
1076
  transparentAudio: boolean;
1065
1077
  enableSessionStateUpdates: boolean;
1078
+ safariAudioElement: boolean;
1079
+ forwardEmptyIceCandidate: boolean;
1066
1080
  };
1067
1081
  }
@@ -153,7 +153,9 @@ declare namespace WebRTCUtils {
153
153
  */
154
154
  function canPreferH264(): boolean;
155
155
  /**
156
- * Некоторые браузеры (Firefox, Safari) некорректно поддерживают симулкаст
156
+ * Поддержка simulcast браузером.
157
+ * Safari корректно поддерживает simulcast начиная с версии 18.
158
+ * Firefox поддерживает simulcast с VP8 начиная с версии 134.
157
159
  */
158
160
  function isSimulcastSupportedByBrowser(): boolean;
159
161
  /**