@vkontakte/calls-sdk 2.8.11-dev.50a3a6bf.0 → 2.8.11-dev.54a3a1c9.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.
@@ -117,7 +117,7 @@ export default class Conversation extends EventEmitter {
117
117
  destroy(): Promise<void>;
118
118
  private _getConversationParams;
119
119
  private _setConversationParams;
120
- private _addGeoParamsToEndpoint;
120
+ private _buildSignalingEndpoint;
121
121
  /**
122
122
  * @throws ErrorEvent
123
123
  */
@@ -12,5 +12,7 @@ export default abstract class WorkerBase {
12
12
  protected _sendToWorker(type: string, data?: {
13
13
  [key: string]: any;
14
14
  }, transfer?: any[]): void;
15
+ private _formatWorkerError;
16
+ private _formatWorkerMessageError;
15
17
  static isBrowserSupported(): boolean;
16
18
  }
@@ -48,6 +48,7 @@ export declare class Transport extends EventEmitter {
48
48
  private readonly _logger;
49
49
  private readonly _statAggregator;
50
50
  private readonly _codecStatsAggregator;
51
+ private _vadController;
51
52
  constructor(topology: TransportTopology, signaling: BaseSignaling, mediaSource: MediaSource, serverSettings: ServerSettings, debug?: DebugLogger, logger?: StatsLogger | null, statAggregator?: StatAggregator | null, codecStatsAggregator?: CodecStatsAggregator | null);
52
53
  updateSettings(settings: ServerSettings): void;
53
54
  updateStatisticsInterval(): void;
@@ -91,6 +92,8 @@ export declare class Transport extends EventEmitter {
91
92
  private _onAnimojiStream;
92
93
  /** Обработчик, досылающий MediaSourceEvent.SOURCE_CHANGED событие до аллокации транспортов */
93
94
  private _onAnimojiStatus;
95
+ private _createVad;
96
+ private _updateVadTrack;
94
97
  private _createAnimojiTransport;
95
98
  private _removeAnimojiTransport;
96
99
  getStreamWaitingTimeMs(streamId: string, targetRtpTimestamp: number): number;
package/default/Api.d.ts CHANGED
@@ -13,6 +13,11 @@ export default class Api extends BaseApi {
13
13
  protected _call(method: string, data?: any, noSession?: boolean): Promise<any>;
14
14
  userId(participantId: ParticipantId): Promise<ExternalParticipantId>;
15
15
  authorize(): Promise<void>;
16
+ private _getAnonymLoginCacheKey;
17
+ private _getCachedAnonymLogin;
18
+ private _setCachedAnonymLogin;
19
+ private _removeCachedAnonymLogin;
20
+ private _applyAnonymLogin;
16
21
  logClientStats(items: ClientStats[]): void;
17
22
  logClientEvents(items: ClientEvent[]): void;
18
23
  uploadDebugLogs(conversationId: string, startTime: number, endTime: number, log: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.11-dev.50a3a6bf.0",
3
+ "version": "2.8.11-dev.54a3a1c9.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",
@@ -14,7 +14,7 @@
14
14
  "**/*.d.ts"
15
15
  ],
16
16
  "dependencies": {
17
- "@vkontakte/calls-audio-effects": "1.2.8",
17
+ "@vkontakte/calls-audio-effects": "1.2.10-dev.652c81ba.0",
18
18
  "@vkontakte/calls-video-effects": "2.2.3-beta.7",
19
19
  "@vkontakte/calls-vmoji": "1.0.10-beta.17",
20
20
  "@vkontakte/libvpx": "2.0.9",
@@ -1,5 +1,5 @@
1
1
  import type { VideoEffects } from '@vkontakte/calls-video-effects';
2
- import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
2
+ import type { EffectVoiceChange, VadControllerOptions, VadLib } from '@vkontakte/calls-audio-effects';
3
3
  import type * as Vmoji from '@vkontakte/calls-vmoji';
4
4
  import { IAsrData } from '../types/Asr';
5
5
  import { ConversationData } from '../types/Conversation';
@@ -188,6 +188,14 @@ export type ParamsObject = {
188
188
  * Можно установить позднее методом `setAudioEffects`
189
189
  */
190
190
  audioEffects: EffectVoiceChange | null;
191
+ /**
192
+ * Namespace библиотеки VAD из `@vkontakte/calls-audio-effects`.
193
+ *
194
+ * Можно установить методом `setVad`
195
+ */
196
+ vad: VadLib | null;
197
+ /** Настройки VAD (threshold, hangoverMs, enabled) */
198
+ vadOptions: VadControllerOptions;
191
199
  /**
192
200
  * Максимальная ширина видео в пикселях для видео эффекта
193
201
  *
@@ -954,6 +962,10 @@ export default abstract class Params {
954
962
  static get displaySurface(): DisplayCaptureSurfaceType;
955
963
  static get audioEffects(): EffectVoiceChange | null;
956
964
  static set audioEffects(value: EffectVoiceChange | null);
965
+ static get vad(): VadLib | null;
966
+ static set vad(value: VadLib | null);
967
+ static get vadOptions(): VadControllerOptions;
968
+ static set vadOptions(value: VadControllerOptions);
957
969
  static get videoEffects(): VideoEffects | null;
958
970
  static set videoEffects(value: VideoEffects | null);
959
971
  static get videoEffectMaxWidth(): number;