@vkontakte/calls-sdk 2.8.2-dev.968ce3b.0 → 2.8.2-dev.983237e.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 +73 -36
- package/abstract/BaseApi.d.ts +10 -8
- package/abstract/BaseSignaling.d.ts +7 -5
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioOutput.d.ts +8 -3
- package/classes/Conversation.d.ts +14 -10
- package/classes/MediaSource.d.ts +5 -4
- package/classes/ParticipantIdRegistry.d.ts +5 -0
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/codec/IEncoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +1 -1
- package/classes/codec/Types.d.ts +1 -1
- package/classes/codec/WebCodecsEncoder.d.ts +1 -1
- package/classes/screenshare/PacketHistory.d.ts +1 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +2 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +6 -1
- package/classes/transport/DirectTransport.d.ts +6 -0
- package/classes/transport/ServerTransport.d.ts +2 -0
- package/classes/transport/Statistics.d.ts +20 -2
- package/classes/transport/Transport.d.ts +1 -0
- package/constants/Rooms.d.ts +1 -0
- package/default/Api.d.ts +14 -14
- package/default/ApiExternal.d.ts +11 -0
- package/default/Signaling.d.ts +9 -8
- package/enums/SignalingCommandType.d.ts +6 -2
- package/enums/SignalingNotification.d.ts +2 -1
- package/package.json +3 -6
- package/static/ApiTransport.d.ts +3 -1
- package/static/AuthData.d.ts +6 -6
- package/static/External.d.ts +36 -6
- package/static/Params.d.ts +110 -33
- package/static/Utils.d.ts +3 -2
- package/types/Asr.d.ts +1 -1
- package/types/AudienceMode.d.ts +8 -0
- package/types/Conversation.d.ts +3 -0
- package/types/ExternalId.d.ts +13 -15
- package/types/MuteStates.d.ts +1 -1
- package/types/Params.d.ts +1 -0
- package/types/ParticipantLayout.d.ts +2 -2
- package/types/ParticipantStreamDescription.d.ts +0 -1
- package/types/RequestAsr.d.ts +3 -0
- package/types/Room.d.ts +3 -0
- package/types/SignalingMessage.d.ts +18 -0
- package/types/Statistics.d.ts +7 -2
- package/types/Streams.d.ts +10 -0
- package/types/VideoSettings.d.ts +15 -0
package/types/Statistics.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TransportTopology } from '../classes/transport/Transport';
|
|
2
|
-
import { ExternalParticipantId } from './ExternalId';
|
|
3
2
|
export type StatTransport = {
|
|
4
3
|
totalRoundTripTime: number;
|
|
5
4
|
currentRoundTripTime: number;
|
|
@@ -7,6 +6,11 @@ export type StatTransport = {
|
|
|
7
6
|
bytesReceived: number;
|
|
8
7
|
local?: ILocalIceCandidateStat;
|
|
9
8
|
remote?: IRemoteIceCandidateStat;
|
|
9
|
+
averageNetStat?: AverageNetStat;
|
|
10
|
+
};
|
|
11
|
+
export type AverageNetStat = {
|
|
12
|
+
currentRoundTripTime: number;
|
|
13
|
+
lostPercent: number;
|
|
10
14
|
};
|
|
11
15
|
export interface IRemoteIceCandidateStat {
|
|
12
16
|
type: RTCIceCandidateType;
|
|
@@ -32,7 +36,7 @@ export type StatRtp = {
|
|
|
32
36
|
pliCount: number;
|
|
33
37
|
firCount: number;
|
|
34
38
|
nackCount: number;
|
|
35
|
-
userId?: string
|
|
39
|
+
userId?: string;
|
|
36
40
|
bandwidth?: number;
|
|
37
41
|
packetLoss?: number;
|
|
38
42
|
clockRate?: number;
|
|
@@ -60,6 +64,7 @@ export type StatItem = {
|
|
|
60
64
|
timestamp: number;
|
|
61
65
|
transport: StatTransport;
|
|
62
66
|
rtps: StatRtp[];
|
|
67
|
+
remoteRtps?: StatRtp[];
|
|
63
68
|
};
|
|
64
69
|
export type StatResult = {
|
|
65
70
|
inbound: {
|
package/types/Streams.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ParticipantId } from './Participant';
|
|
1
2
|
export interface IStartStreamData {
|
|
2
3
|
movieId: string | null;
|
|
3
4
|
name: string | null;
|
|
@@ -9,3 +10,12 @@ export interface IStartStreamData {
|
|
|
9
10
|
export interface IStopStreamData {
|
|
10
11
|
roomId: number | null;
|
|
11
12
|
}
|
|
13
|
+
export interface IPublishStreamData {
|
|
14
|
+
roomId: number | null;
|
|
15
|
+
}
|
|
16
|
+
export interface IRecordConfData {
|
|
17
|
+
king?: ParticipantId;
|
|
18
|
+
pawns?: ParticipantId[];
|
|
19
|
+
hideParticipantCount: boolean;
|
|
20
|
+
roomId: number | null;
|
|
21
|
+
}
|
package/types/VideoSettings.d.ts
CHANGED
|
@@ -20,6 +20,21 @@ export type VideoSettings = {
|
|
|
20
20
|
* https://www.w3.org/TR/mst-content-hint/#dom-rtcdegradationpreference
|
|
21
21
|
*/
|
|
22
22
|
degradationPreference: string;
|
|
23
|
+
/**
|
|
24
|
+
* Настройка временных слоев
|
|
25
|
+
* https://www.w3.org/TR/webrtc-svc/
|
|
26
|
+
*/
|
|
27
|
+
scalabilityMode: string;
|
|
23
28
|
};
|
|
24
29
|
export default VideoSettings;
|
|
25
30
|
export declare function compareVideoSettings(vs1: VideoSettings | null, vs2: VideoSettings | null): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Настройки временных слоев для режима масштабируемости
|
|
33
|
+
* https://www.w3.org/TR/webrtc-svc/#scalabilitymodes*
|
|
34
|
+
* 1, 2 и 3 слоя, чем хуже качество сети, тем больше нужно
|
|
35
|
+
*/
|
|
36
|
+
export declare enum VideoScalability {
|
|
37
|
+
L1T1 = "L1T1",
|
|
38
|
+
L1T2 = "L1T2",
|
|
39
|
+
L1T3 = "L1T3"
|
|
40
|
+
}
|