@vkontakte/calls-sdk 2.7.2-beta.9 → 2.7.2-dev.1355151.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 +4 -8
- package/abstract/BaseApi.d.ts +5 -1
- package/abstract/BaseSignaling.d.ts +1 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +14 -57
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/LibVPxDecoder.d.ts +1 -1
- package/classes/screenshare/BaseRenderer.d.ts +1 -1
- package/classes/screenshare/BaseStreamBuilder.d.ts +8 -2
- package/classes/screenshare/CanvasRenderer.d.ts +1 -2
- package/classes/screenshare/ScreenCaptureReceiver.d.ts +3 -1
- package/classes/screenshare/StreamBuilder.d.ts +2 -2
- package/classes/screenshare/WebmBuilder.d.ts +2 -2
- package/classes/transport/DirectTransport.d.ts +1 -0
- package/classes/transport/PerfStatReporter.d.ts +2 -0
- package/classes/transport/ServerTransport.d.ts +2 -3
- package/classes/transport/Statistics.d.ts +16 -0
- package/classes/transport/Transport.d.ts +2 -1
- package/default/Signaling.d.ts +2 -2
- package/enums/HangupType.d.ts +2 -1
- package/enums/Stat.d.ts +2 -1
- package/package.json +2 -2
- package/static/External.d.ts +5 -3
- package/static/Params.d.ts +44 -5
- package/static/WebRTCUtils.d.ts +0 -4
- package/types/Conversation.d.ts +63 -1
- package/types/Room.d.ts +4 -0
- package/types/ScreenSharingStat.d.ts +3 -0
- package/types/SignalingMessage.d.ts +4 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
|
6
6
|
import BaseApi from './abstract/BaseApi';
|
|
7
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
8
8
|
import BaseSignaling, { AddParticipantParams } from './abstract/BaseSignaling';
|
|
9
|
-
import { ConversationData } from './classes/Conversation';
|
|
10
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
11
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
12
11
|
import { StatResult } from './classes/transport/Statistics';
|
|
@@ -58,6 +57,7 @@ import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
|
58
57
|
import ConversationFeature from './enums/ConversationFeature';
|
|
59
58
|
import { IFeaturesPerRole } from './types/ConversationFeature';
|
|
60
59
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
60
|
+
import { ConversationData } from './types/Conversation';
|
|
61
61
|
/**
|
|
62
62
|
* Информация о текущем браузере
|
|
63
63
|
*/
|
|
@@ -126,10 +126,6 @@ export declare const browser: {
|
|
|
126
126
|
* Устанавливает размер видео в стриме
|
|
127
127
|
*/
|
|
128
128
|
setResolution: typeof WebRTCUtils.setResolution;
|
|
129
|
-
/**
|
|
130
|
-
* Запоминает выбранное устройство
|
|
131
|
-
*/
|
|
132
|
-
saveDeviceId: typeof WebRTCUtils.saveDeviceId;
|
|
133
129
|
/**
|
|
134
130
|
* Проверяет поддержку WebRTC браузером
|
|
135
131
|
*
|
|
@@ -207,7 +203,7 @@ export declare function setVideoEffects(effects: VideoEffects): void;
|
|
|
207
203
|
* @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
|
|
208
204
|
* @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
|
|
209
205
|
*/
|
|
210
|
-
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null): void;
|
|
206
|
+
export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Vmoji.RenderingOptions | null): void;
|
|
211
207
|
/**
|
|
212
208
|
* Инициализирует библиотеку
|
|
213
209
|
*
|
|
@@ -400,8 +396,8 @@ export declare function muteParticipantInternal({ uid, muteStates, requestedMedi
|
|
|
400
396
|
* @param externalId Внешний ID пользователя
|
|
401
397
|
* @param unpin Открепить
|
|
402
398
|
*/
|
|
403
|
-
export declare function pinParticipant(externalId: string | ExternalParticipantId, unpin?: boolean): Promise<void>;
|
|
404
|
-
export declare function pinParticipantInternal(uid: OkUserId, unpin?: boolean, deviceIdx?: number): Promise<void>;
|
|
399
|
+
export declare function pinParticipant(externalId: string | ExternalParticipantId, unpin?: boolean, roomId?: number | null): Promise<void>;
|
|
400
|
+
export declare function pinParticipantInternal(uid: OkUserId, unpin?: boolean, deviceIdx?: number, roomId?: number | null): Promise<void>;
|
|
405
401
|
/**
|
|
406
402
|
* Устанавливает настройки пользовательского медиа
|
|
407
403
|
*
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import CallType from '../enums/CallType';
|
|
2
|
+
import { ConversationData } from '../types/Conversation';
|
|
2
3
|
import ConversationParams from '../types/ConversationParams';
|
|
3
4
|
import ConversationResponse from '../types/ConversationResponse';
|
|
4
5
|
import { ExternalId, ExternalUserId } from '../types/ExternalId';
|
|
5
6
|
import { CompositeUserId, OkUserId } from '../types/Participant';
|
|
6
7
|
export type LogItem = {
|
|
7
8
|
count?: number;
|
|
8
|
-
custom:
|
|
9
|
+
custom: {
|
|
10
|
+
vcid: ConversationData['id'] | null;
|
|
11
|
+
[k: string]: string | number;
|
|
12
|
+
};
|
|
9
13
|
data?: string[];
|
|
10
14
|
groups?: string[];
|
|
11
15
|
network?: string;
|
|
@@ -82,7 +82,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
82
82
|
abstract grantRoles(participantId: CompositeUserId, roles: UserRole[], revoke: boolean): Promise<SignalingMessage>;
|
|
83
83
|
abstract muteParticipant(participantId: ParticipantId | null, muteStates: MuteStates, requestedMedia: MediaOption[], roomId: number | null): Promise<SignalingMessage>;
|
|
84
84
|
abstract enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<SignalingMessage>;
|
|
85
|
-
abstract pinParticipant(participantId: ParticipantId, unpin: boolean): Promise<SignalingMessage>;
|
|
85
|
+
abstract pinParticipant(participantId: ParticipantId, unpin: boolean, roomId: number | null): Promise<SignalingMessage>;
|
|
86
86
|
abstract updateMediaModifiers(mediaModifiers: MediaModifiers): Promise<SignalingMessage>;
|
|
87
87
|
abstract changeOptions(changes: {
|
|
88
88
|
[key in ConversationOption]?: boolean;
|