@vkontakte/calls-sdk 2.6.3-dev.c4e735f.0 → 2.6.3-dev.df409e1.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.
package/CallsSDK.d.ts CHANGED
@@ -165,6 +165,12 @@ export declare const browser: {
165
165
  * Возвращает AudioContext
166
166
  */
167
167
  getAudioContext: typeof WebRTCUtils.getAudioContext;
168
+ /**
169
+ * Браузер поддерживает захват звука при трансляции экрана
170
+ *
171
+ * _Метод доступен до инициализации_
172
+ */
173
+ isAudioShareSupported: typeof WebRTCUtils.isAudioShareSupported;
168
174
  };
169
175
  export declare function setApi(api: BaseApi): void;
170
176
  export declare function setSignalingFactory(signalingFactory: () => BaseSignaling): void;
@@ -292,7 +298,7 @@ export declare function captureScreen(state: boolean): Promise<void>;
292
298
  * @param screenState Включить или выключить захват экрана.
293
299
  * @param audioShareState Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
294
300
  */
295
- export declare function captureScreenAndAudio(screenState: boolean, audioShareState: boolean): Promise<void>;
301
+ export declare function captureScreenAndAudio(screenState: boolean, audioShareState?: boolean): Promise<void>;
296
302
  /**
297
303
  * Позволяет установить кастомный стрим для видео
298
304
  * например для стрима из canvas, с наложением изображений
@@ -472,7 +478,7 @@ export declare function getStreamInfo(): Promise<{
472
478
  * @param params
473
479
  */
474
480
  export declare function addMovie(params: IAddMovieParams): Promise<{
475
- movieId: string;
481
+ movieId: number;
476
482
  streamType: string;
477
483
  }>;
478
484
  /**
@@ -484,9 +490,9 @@ export declare function updateMovie(params: IUpdateMovieData): Promise<void>;
484
490
  /**
485
491
  * Удалить видео/лайв из звонка
486
492
  *
487
- * @param movieId
493
+ * @param movieId Id Ролика
488
494
  */
489
- export declare function removeMovie(movieId: string): Promise<void>;
495
+ export declare function removeMovie(movieId: number): Promise<void>;
490
496
  /**
491
497
  * Обновить сессионные залы
492
498
  * @param rooms id в случае обновления сессионного зала