@vkontakte/calls-sdk 2.8.11-dev.fdf6f999.0 → 2.8.11
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 +12 -24
- package/abstract/BaseApi.d.ts +3 -5
- package/abstract/BaseSignaling.d.ts +3 -4
- package/calls-sdk.cjs.js +9 -11
- package/calls-sdk.esm.js +5961 -5828
- package/classes/CallRegistry.d.ts +26 -0
- package/classes/Conversation.d.ts +39 -18
- package/classes/MediaSource.d.ts +7 -0
- package/classes/SpecListener.d.ts +5 -0
- package/classes/StatsLogger.d.ts +0 -3
- package/classes/codec/WorkerBase.d.ts +2 -0
- package/classes/transport/DirectTransport.d.ts +5 -10
- package/classes/transport/ServerTransport.d.ts +0 -14
- package/classes/transport/Transport.d.ts +3 -20
- package/default/Api.d.ts +9 -8
- package/default/Signaling.d.ts +2 -0
- package/enums/SignalingNotification.d.ts +3 -1
- package/package.json +1 -1
- package/static/Capabilities.d.ts +5 -0
- package/static/External.d.ts +143 -76
- package/static/Params.d.ts +101 -95
- package/static/ParticipantConnectionStatusUtils.d.ts +16 -0
- package/types/Capabilities.d.ts +24 -0
- package/types/ExternalId.d.ts +1 -1
- package/types/Participant.d.ts +12 -1
- package/types/PushData.d.ts +3 -0
- package/types/SignalingMessage.d.ts +14 -1
- package/types/Statistics.d.ts +0 -4
- package/static/DebugVideoStats.d.ts +0 -37
- package/types/VideoStreamDebug.d.ts +0 -5
|
@@ -19,7 +19,7 @@ import MediaModifiers from './MediaModifiers';
|
|
|
19
19
|
import MediaSettings from './MediaSettings';
|
|
20
20
|
import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
|
|
21
21
|
import MuteStates from './MuteStates';
|
|
22
|
-
import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
|
|
22
|
+
import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType, ParticipantSessionState } from './Participant';
|
|
23
23
|
import { MediaType, ParticipantStreamDescription } from './ParticipantStreamDescription';
|
|
24
24
|
import { IRoomId } from './Room';
|
|
25
25
|
import VideoSettings from './VideoSettings';
|
|
@@ -89,6 +89,7 @@ declare namespace SignalingMessage {
|
|
|
89
89
|
state: Record<string, string>;
|
|
90
90
|
stateUpdateTs: Record<string, number>;
|
|
91
91
|
};
|
|
92
|
+
sessionState?: ParticipantSessionState;
|
|
92
93
|
roles?: UserRole[];
|
|
93
94
|
peerId?: PeerId;
|
|
94
95
|
restricted?: boolean;
|
|
@@ -97,6 +98,7 @@ declare namespace SignalingMessage {
|
|
|
97
98
|
markers?: ParticipantListMarkers;
|
|
98
99
|
observedIds?: CompositeUserId[];
|
|
99
100
|
movieShareInfos?: ISharedMovieInfo[];
|
|
101
|
+
onHold?: boolean;
|
|
100
102
|
}
|
|
101
103
|
export interface ParticipantListChunk extends Notification {
|
|
102
104
|
participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
|
|
@@ -323,6 +325,13 @@ declare namespace SignalingMessage {
|
|
|
323
325
|
export interface SpeakerChanged extends Notification {
|
|
324
326
|
speaker: ParticipantId;
|
|
325
327
|
}
|
|
328
|
+
export interface SessionState extends Notification {
|
|
329
|
+
connected: boolean;
|
|
330
|
+
participantId: OkUserId;
|
|
331
|
+
participantType: UserType;
|
|
332
|
+
deviceIdx?: number;
|
|
333
|
+
markers?: ParticipantListMarkers;
|
|
334
|
+
}
|
|
326
335
|
export interface OptionsChanged extends Notification {
|
|
327
336
|
options: ConversationOption[];
|
|
328
337
|
}
|
|
@@ -456,6 +465,10 @@ declare namespace SignalingMessage {
|
|
|
456
465
|
export interface VideoSuspendSuggest extends Notification {
|
|
457
466
|
bandwidth: number;
|
|
458
467
|
}
|
|
468
|
+
export interface Hold extends Notification {
|
|
469
|
+
participantId: ParticipantId;
|
|
470
|
+
hold: boolean;
|
|
471
|
+
}
|
|
459
472
|
export {};
|
|
460
473
|
}
|
|
461
474
|
export default SignalingMessage;
|
package/types/Statistics.d.ts
CHANGED
|
@@ -113,10 +113,6 @@ export interface StatRtp extends StatRtpOutboundVideo {
|
|
|
113
113
|
* Идентификатор пользователя, связанный с этим потоком
|
|
114
114
|
*/
|
|
115
115
|
userId?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Идентификатор media track, связанный с этим RTP потоком
|
|
118
|
-
*/
|
|
119
|
-
trackId?: string;
|
|
120
116
|
/**
|
|
121
117
|
* Пропускная способность в битах в секунду
|
|
122
118
|
*/
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ExternalParticipantId } from '../types/ExternalId';
|
|
2
|
-
import type { MediaType } from '../types/ParticipantStreamDescription';
|
|
3
|
-
export declare const enum VideoStreamDebugDirection {
|
|
4
|
-
INBOUND = "inbound",
|
|
5
|
-
OUTBOUND = "outbound"
|
|
6
|
-
}
|
|
7
|
-
export type VideoStreamDebugData = {
|
|
8
|
-
mediaType: MediaType.CAMERA | MediaType.SCREEN;
|
|
9
|
-
direction: VideoStreamDebugDirection;
|
|
10
|
-
externalParticipantId: ExternalParticipantId;
|
|
11
|
-
trackId?: string;
|
|
12
|
-
mimeType?: string;
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
frameRate?: number;
|
|
16
|
-
bitrate?: number;
|
|
17
|
-
packetsLost?: number;
|
|
18
|
-
screenShareMethod?: string;
|
|
19
|
-
layers?: VideoStreamDebugLayer[];
|
|
20
|
-
};
|
|
21
|
-
export type VideoStreamDebugLayer = {
|
|
22
|
-
rid?: string;
|
|
23
|
-
ssrc?: number;
|
|
24
|
-
trackId?: string;
|
|
25
|
-
mimeType?: string;
|
|
26
|
-
width?: number;
|
|
27
|
-
height?: number;
|
|
28
|
-
frameRate?: number;
|
|
29
|
-
bitrate?: number;
|
|
30
|
-
packetsLost?: number;
|
|
31
|
-
};
|
|
32
|
-
declare namespace DebugVideoStats {
|
|
33
|
-
function format(data: VideoStreamDebugData): string;
|
|
34
|
-
function send(data: VideoStreamDebugData): void;
|
|
35
|
-
function clear(externalParticipantId: ExternalParticipantId, mediaType: MediaType.CAMERA | MediaType.SCREEN): void;
|
|
36
|
-
}
|
|
37
|
-
export default DebugVideoStats;
|