@vkontakte/calls-sdk 2.6.2-dev.aa45c56.0 → 2.6.2-dev.abaf7cc.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 +43 -4
- package/abstract/BaseApi.d.ts +1 -1
- package/abstract/BaseSignaling.d.ts +8 -0
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +15 -0
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/codec/IEncoder.d.ts +3 -0
- package/classes/codec/LibVPxEncoder.d.ts +4 -1
- package/classes/codec/Types.d.ts +6 -1
- package/classes/codec/WebCodecsEncoder.d.ts +4 -1
- package/classes/screenshare/PacketHistory.d.ts +30 -0
- package/classes/screenshare/PacketHistory.test.d.ts +1 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +15 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +25 -0
- package/classes/screenshare/SharingStatReport.d.ts +6 -0
- package/classes/screenshare/Utils.d.ts +5 -0
- package/default/Api.d.ts +1 -1
- package/default/Signaling.d.ts +8 -0
- package/enums/LiveStatus.d.ts +7 -0
- package/enums/RoomsEventType.d.ts +6 -0
- package/enums/SignalingCommandType.d.ts +10 -1
- package/enums/SignalingNotification.d.ts +6 -1
- package/package.json +1 -1
- package/static/External.d.ts +23 -1
- package/static/Params.d.ts +31 -1
- package/types/Asr.d.ts +5 -0
- package/types/MovieShare.d.ts +4 -1
- package/types/Participant.d.ts +1 -0
- package/types/ParticipantListChunk.d.ts +2 -0
- package/types/Room.d.ts +72 -0
- package/types/SignalingMessage.d.ts +44 -0
- package/utils/ArrayDequeue.d.ts +8 -4
- package/worker/LibVPxEncoderWorker.d.ts +1 -1
|
@@ -5,10 +5,12 @@ import ConversationOption from '../enums/ConversationOption';
|
|
|
5
5
|
import HangupType from '../enums/HangupType';
|
|
6
6
|
import MediaOption from '../enums/MediaOption';
|
|
7
7
|
import ParticipantState from '../enums/ParticipantState';
|
|
8
|
+
import RoomsEventType from '../enums/RoomsEventType';
|
|
8
9
|
import UserRole from '../enums/UserRole';
|
|
9
10
|
import UserType from '../enums/UserType';
|
|
10
11
|
import { IFeaturesPerRole } from './ConversationFeature';
|
|
11
12
|
import { IFeedback } from './Feedback';
|
|
13
|
+
import { AsrInfo } from './Asr';
|
|
12
14
|
import MediaModifiers from './MediaModifiers';
|
|
13
15
|
import MediaSettings from './MediaSettings';
|
|
14
16
|
import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
|
|
@@ -81,6 +83,18 @@ declare namespace SignalingMessage {
|
|
|
81
83
|
options: ConversationOption[];
|
|
82
84
|
muteStates?: MuteStates;
|
|
83
85
|
}
|
|
86
|
+
export interface Room extends SignalingMessage {
|
|
87
|
+
id?: number;
|
|
88
|
+
name?: string;
|
|
89
|
+
participantCount?: number;
|
|
90
|
+
participantIds?: CompositeUserId[];
|
|
91
|
+
addParticipantIds?: CompositeUserId[];
|
|
92
|
+
removeParticipantIds?: CompositeUserId[];
|
|
93
|
+
participants?: ParticipantListChunk;
|
|
94
|
+
active?: boolean;
|
|
95
|
+
countdownSec?: number;
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
}
|
|
84
98
|
interface Notification extends SignalingMessage {
|
|
85
99
|
type?: string;
|
|
86
100
|
notification?: string;
|
|
@@ -281,6 +295,10 @@ declare namespace SignalingMessage {
|
|
|
281
295
|
mediaModifiers: MediaModifiers;
|
|
282
296
|
participants?: ParticipantListChunk;
|
|
283
297
|
chatRoom?: ChatRoom;
|
|
298
|
+
rooms?: {
|
|
299
|
+
rooms: Room[];
|
|
300
|
+
roomId?: number;
|
|
301
|
+
};
|
|
284
302
|
}
|
|
285
303
|
export interface JoinLinkChanged extends Notification {
|
|
286
304
|
joinLink: string;
|
|
@@ -296,9 +314,35 @@ declare namespace SignalingMessage {
|
|
|
296
314
|
}
|
|
297
315
|
export interface SharedMovieStoppedInfo extends Notification, ISharedMovieStoppedInfo {
|
|
298
316
|
}
|
|
317
|
+
export interface RoomsUpdated extends Notification {
|
|
318
|
+
updates: Partial<Record<RoomsEventType, {
|
|
319
|
+
rooms?: Room;
|
|
320
|
+
roomIds?: number[];
|
|
321
|
+
deactivated?: boolean;
|
|
322
|
+
}>>;
|
|
323
|
+
}
|
|
324
|
+
export interface RoomUpdated extends Notification {
|
|
325
|
+
events: RoomsEventType[];
|
|
326
|
+
room?: Room;
|
|
327
|
+
roomId: number;
|
|
328
|
+
deactivate?: boolean;
|
|
329
|
+
}
|
|
330
|
+
export interface RoomParticipantsUpdated extends Notification {
|
|
331
|
+
roomId: number;
|
|
332
|
+
participantCount: number;
|
|
333
|
+
addedParticipantIds?: CompositeUserId[];
|
|
334
|
+
addedParticipants?: Participant[];
|
|
335
|
+
removedParticipantMarkers?: ParticipantListMarkers[];
|
|
336
|
+
}
|
|
299
337
|
export interface FeaturesPerRoleChanged extends Notification {
|
|
300
338
|
featuresPerRole?: IFeaturesPerRole | null;
|
|
301
339
|
}
|
|
340
|
+
export interface AsrStarted extends Notification {
|
|
341
|
+
asrInfo: AsrInfo;
|
|
342
|
+
}
|
|
343
|
+
export interface AsrStopped extends Notification {
|
|
344
|
+
movieId: number;
|
|
345
|
+
}
|
|
302
346
|
export {};
|
|
303
347
|
}
|
|
304
348
|
export default SignalingMessage;
|
package/utils/ArrayDequeue.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export declare class ArrayDequeue<T = any> {
|
|
2
2
|
/** очередь */
|
|
3
|
-
private readonly
|
|
3
|
+
private readonly _queue;
|
|
4
4
|
/** курсор для чтения */
|
|
5
|
-
private
|
|
5
|
+
private _readCursor;
|
|
6
6
|
/** курсор для записи */
|
|
7
|
-
private
|
|
7
|
+
private _writeCursor;
|
|
8
8
|
/** подвинуть курсор чтения */
|
|
9
|
-
private
|
|
9
|
+
private _moveReadCursor;
|
|
10
|
+
/** сколько осталось в очереди элементов */
|
|
11
|
+
private _left;
|
|
10
12
|
constructor(length: number);
|
|
11
13
|
/** возвращает длину, переданную в конструктор */
|
|
12
14
|
get length(): number;
|
|
15
|
+
/** возвращает текущую длину очереди */
|
|
16
|
+
get left(): number;
|
|
13
17
|
toArray(): T[];
|
|
14
18
|
/** добавить элемент в очередь */
|
|
15
19
|
add(element: T): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference lib="webworker" />
|
|
2
2
|
import type libvpx from '@vkontakte/libvpx';
|
|
3
|
-
declare const _default: (vpx: typeof libvpx, urlResolver: (url: string) => string) => void;
|
|
3
|
+
declare const _default: (vpx: typeof libvpx, urlResolver: (url: string) => string, useCongestionControl: boolean, maxBitrate: number) => void;
|
|
4
4
|
export default _default;
|