@vkontakte/calls-sdk 2.8.5-dev.226a9d96.0 → 2.8.5-dev.2cb03422.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 +17 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +4 -2
- package/classes/HangupReason.d.ts +13 -0
- package/classes/MediaSource.d.ts +13 -5
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/LibVPxDecoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +0 -3
- package/classes/codec/WebCodecsDecoder.d.ts +1 -1
- package/classes/transport/DirectTransport.d.ts +5 -0
- package/enums/HangupType.d.ts +2 -1
- package/package.json +3 -2
- package/static/External.d.ts +2 -1
- package/static/Params.d.ts +11 -2
- package/static/Utils.d.ts +2 -2
- package/static/WebRTCUtils.d.ts +2 -2
- package/types/Conversation.d.ts +0 -2
- package/types/SignalingMessage.d.ts +5 -0
- package/types/VideoSettings.d.ts +1 -1
package/CallsSDK.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* CallsSDK
|
|
3
3
|
*/
|
|
4
4
|
import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
5
|
+
import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
|
|
5
6
|
import type * as Vmoji from '@vkontakte/calls-vmoji';
|
|
6
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
7
8
|
import { AddParticipantParams } from './abstract/BaseSignaling';
|
|
@@ -62,6 +63,7 @@ import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
|
62
63
|
import { ApiExternal } from './default/ApiExternal';
|
|
63
64
|
import AuthData from './static/AuthData';
|
|
64
65
|
import { VmojiError } from './types/Vmoji';
|
|
66
|
+
import { VolumeDetector } from './classes/VolumeDetector';
|
|
65
67
|
/**
|
|
66
68
|
* Информация о текущем браузере
|
|
67
69
|
*/
|
|
@@ -194,16 +196,22 @@ export declare const utils: {
|
|
|
194
196
|
};
|
|
195
197
|
export declare function setLogger(logger: BaseLogger): void;
|
|
196
198
|
/**
|
|
197
|
-
* Устанавливает библиотеку эффектов
|
|
199
|
+
* Устанавливает библиотеку видео эффектов
|
|
198
200
|
*
|
|
199
201
|
* @param effects Экземпляр класса `VideoEffects` из `@vkontakte/calls-video-effects`
|
|
200
202
|
*/
|
|
201
203
|
export declare function setVideoEffects(effects: VideoEffects): void;
|
|
204
|
+
/**
|
|
205
|
+
* Устанавливает библиотеку аудио эффектов
|
|
206
|
+
*
|
|
207
|
+
* @param effects Экземпляр класса `EffectVoiceChange` из `@vkontakte/calls-audio-effects`
|
|
208
|
+
*/
|
|
209
|
+
export declare function setAudioEffects(effects: EffectVoiceChange): void;
|
|
202
210
|
/**
|
|
203
211
|
* Устанавливает библиотеку вимоджи
|
|
204
212
|
*
|
|
205
213
|
* @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
|
|
206
|
-
* @param sdk Экземпляр модуля `@vkontakte/calls-
|
|
214
|
+
* @param sdk Экземпляр модуля `@vkontakte/calls-sdk`, нужен для проброски дебаг сообщений
|
|
207
215
|
*/
|
|
208
216
|
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Partial<Vmoji.RenderingOptions>, protocolVersion?: Vmoji.AnimojiVersion): void;
|
|
209
217
|
/**
|
|
@@ -610,6 +618,12 @@ export declare function debugMessage(type: DebugMessageType, ...args: any[]): vo
|
|
|
610
618
|
* @param effect
|
|
611
619
|
*/
|
|
612
620
|
export declare function changeVideoEffect(effect: IEffect | null): Promise<void>;
|
|
621
|
+
/**
|
|
622
|
+
* Эффект локального аудио
|
|
623
|
+
*
|
|
624
|
+
* @param effect
|
|
625
|
+
*/
|
|
626
|
+
export declare function changeAudioEffect(effects: string[], isPreset?: boolean): Promise<void>;
|
|
613
627
|
/**
|
|
614
628
|
* Позволяет установить кастомный стрим для аудио
|
|
615
629
|
*
|
|
@@ -706,4 +720,4 @@ export declare function sendTestCommand(name: string, params?: any): void;
|
|
|
706
720
|
*/
|
|
707
721
|
export declare function version(): string;
|
|
708
722
|
export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, VmojiError, };
|
|
709
|
-
export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
|
|
723
|
+
export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, VolumeDetector, };
|