@vkontakte/calls-sdk 2.6.3-dev.df409e1.0 → 2.6.3-dev.e77d93a.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
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * CallsSDK
3
3
  */
4
+ import type * as Vmoji from '@vkontakte/calls-vmoji';
4
5
  import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
5
6
  import BaseApi from './abstract/BaseApi';
6
7
  import BaseLogger from './abstract/BaseLogger';
@@ -47,6 +48,7 @@ import ParticipantPriority from './types/ParticipantPriority';
47
48
  import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
48
49
  import { Room, RoomsUpdate, RoomParticipantUpdate } from './types/Room';
49
50
  import RoomsEventType from './enums/RoomsEventType';
51
+ import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
50
52
  import SignalingMessage from './types/SignalingMessage';
51
53
  import { WaitingHallResponse } from './types/WaitingHall';
52
54
  import { IFeedbackExternal } from './types/Feedback';
@@ -181,6 +183,13 @@ export declare function setLogger(logger: BaseLogger): void;
181
183
  * @param effects Экземпляр класса `VideoEffects` из `@vkontakte/calls-video-effects`
182
184
  */
183
185
  export declare function setVideoEffects(effects: VideoEffects): void;
186
+ /**
187
+ * Устанавливает библиотеку вимоджи
188
+ *
189
+ * @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
190
+ * @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
191
+ */
192
+ export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null): void;
184
193
  /**
185
194
  * Инициализирует библиотеку
186
195
  *
@@ -289,16 +298,17 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
289
298
  /**
290
299
  * Включить/выключить захват экрана
291
300
  *
292
- * @param state Включить или выключить
301
+ * @param stateOrSettings
302
+ * state Включить или выключить захват экрана
303
+ * settings Параметры захваты экрана
293
304
  */
294
- export declare function captureScreen(state: boolean): Promise<void>;
305
+ export declare function captureScreen(stateOrSettings: boolean | ScreenCaptureSettings): Promise<void>;
295
306
  /**
296
- * Включить/выключить захват экрана
307
+ * Включить/выключить передачу точек вимоджи
297
308
  *
298
- * @param screenState Включить или выключить захват экрана.
299
- * @param audioShareState Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
309
+ * @param state Включить или выключить
300
310
  */
301
- export declare function captureScreenAndAudio(screenState: boolean, audioShareState?: boolean): Promise<void>;
311
+ export declare function captureVmoji(state: boolean): void;
302
312
  /**
303
313
  * Позволяет установить кастомный стрим для видео
304
314
  * например для стрима из canvas, с наложением изображений
@@ -553,6 +563,17 @@ export declare function changeVideoEffect(effect: IEffect | null): Promise<void>
553
563
  * @hidden
554
564
  */
555
565
  export declare function setAudioStream(stream: MediaStream): Promise<void>;
566
+ /**
567
+ * Позволяет установить svg аватар для участника звонка
568
+ *
569
+ * @param {(string|ArrayBuffer)} svg - svg в незашифрованном (string)
570
+ * или зашифрованном (ArrayBuffer) виде
571
+ * @param {(ExternalParticipantId|null)} externalId - externalId внешнего участника звонка,
572
+ * не требуется для текущего участника (текущего пользователя клиента)
573
+ * @param {(string|null)} customKey - кастомный ключ расшифровки svg,
574
+ * нужен только в случае присвоения участнику чужого аватара
575
+ */
576
+ export declare function setVmojiSvg(svg: string | ArrayBuffer, externalId?: ExternalParticipantId | null, customKey?: string | null): Promise<void>;
556
577
  /**
557
578
  * Получить состояние зала ожидания
558
579
  *
@@ -594,5 +615,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
594
615
  * Версия SDK
595
616
  */
596
617
  export declare function version(): string;
597
- export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
618
+ export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
598
619
  export { Api, BaseApi, BaseLogger, BaseSignaling, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, Utils, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, };