@vkontakte/calls-sdk 2.8.5-dev.086cc589.0 → 2.8.5-dev.0c1f6988.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 +23 -4
- package/abstract/BaseApi.d.ts +1 -0
- package/abstract/BaseSignaling.d.ts +10 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioFix.d.ts +4 -0
- package/classes/AudioOutput.d.ts +3 -0
- package/classes/Conversation.d.ts +5 -15
- package/classes/MediaSource.d.ts +26 -5
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/VideoEffectsFpsLimiter.d.ts +23 -0
- 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/stat/StatFirstMediaReceived.d.ts +6 -5
- package/classes/transport/ServerTransport.d.ts +5 -0
- package/classes/transport/Transport.d.ts +1 -0
- package/default/Api.d.ts +1 -0
- package/default/Signaling.d.ts +3 -1
- package/enums/FatalError.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +2 -1
- package/package.json +4 -3
- package/static/ApiTransport.d.ts +1 -0
- package/static/ConversationDebugLogger.d.ts +13 -0
- package/static/External.d.ts +2 -1
- package/static/Params.d.ts +51 -2
- package/static/SimulcastInfo.d.ts +13 -0
- package/static/Utils.d.ts +4 -3
- package/static/WebRTCUtils.d.ts +5 -3
- package/types/ChangeSimulcast.d.ts +6 -0
- package/types/Conversation.d.ts +2 -14
- package/types/GetLogUploadUrlParams.d.ts +6 -0
- package/types/GetLogUploadUrlResponse.d.ts +3 -0
- package/types/Params.d.ts +1 -1
- package/types/SimulcastInfo.d.ts +10 -0
- package/types/Statistics.d.ts +11 -4
- package/types/VideoSettings.d.ts +12 -0
- package/utils/Conversation.d.ts +4 -0
- package/utils/DebugStorage.d.ts +6 -0
- package/utils/Media.d.ts +1 -2
- package/utils/NavigatorPermissions.d.ts +13 -0
package/types/Params.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type IApiEnv = 'AUTO' | 'PROD' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | string;
|
|
1
|
+
export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | string;
|
package/types/Statistics.d.ts
CHANGED
|
@@ -24,7 +24,15 @@ export interface ILocalIceCandidateStat extends IRemoteIceCandidateStat {
|
|
|
24
24
|
relayProtocol: string;
|
|
25
25
|
networkType: RTCNetworkType;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
interface StatRtpOutboundVideo {
|
|
28
|
+
frameHeight?: number;
|
|
29
|
+
frameWidth?: number;
|
|
30
|
+
rid?: string;
|
|
31
|
+
framesSent?: number;
|
|
32
|
+
framesPerSecond?: number;
|
|
33
|
+
targetBitrate?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface StatRtp extends StatRtpOutboundVideo {
|
|
28
36
|
ssrc: number;
|
|
29
37
|
type: string;
|
|
30
38
|
kind: string;
|
|
@@ -45,8 +53,6 @@ export type StatRtp = {
|
|
|
45
53
|
packetLoss?: number;
|
|
46
54
|
clockRate?: number;
|
|
47
55
|
mimeType?: string;
|
|
48
|
-
frameHeight?: number;
|
|
49
|
-
frameWidth?: number;
|
|
50
56
|
framesDecoded?: number;
|
|
51
57
|
framesReceived?: number;
|
|
52
58
|
framesDropped?: number;
|
|
@@ -63,7 +69,7 @@ export type StatRtp = {
|
|
|
63
69
|
totalFreezesDurationDelta?: number;
|
|
64
70
|
freezeCount: number;
|
|
65
71
|
freezeCountDelta?: number;
|
|
66
|
-
}
|
|
72
|
+
}
|
|
67
73
|
export type StatItem = {
|
|
68
74
|
timestamp: number;
|
|
69
75
|
transport: StatTransport;
|
|
@@ -87,3 +93,4 @@ export type StatResult = {
|
|
|
87
93
|
rtps: StatRtp[];
|
|
88
94
|
};
|
|
89
95
|
};
|
|
96
|
+
export {};
|
package/types/VideoSettings.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ export type VideoSettings = {
|
|
|
25
25
|
* https://www.w3.org/TR/webrtc-svc/
|
|
26
26
|
*/
|
|
27
27
|
scalabilityMode: string;
|
|
28
|
+
/**
|
|
29
|
+
* Таблица с битрейтами в зависимости от разрешения
|
|
30
|
+
*/
|
|
31
|
+
bitrates?: Record<'generic' | string, VideoBitrateSettings[]>;
|
|
28
32
|
};
|
|
29
33
|
export default VideoSettings;
|
|
30
34
|
export declare function compareVideoSettings(vs1: VideoSettings | null, vs2: VideoSettings | null): boolean;
|
|
@@ -38,3 +42,11 @@ export declare enum VideoScalability {
|
|
|
38
42
|
L1T2 = "L1T2",
|
|
39
43
|
L1T3 = "L1T3"
|
|
40
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Настройка битрейта под конкретное разрешение
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export type VideoBitrateSettings = {
|
|
50
|
+
dimension: number;
|
|
51
|
+
bitrate: number;
|
|
52
|
+
};
|
package/utils/Conversation.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import MediaOption from '../enums/MediaOption';
|
|
2
2
|
import MuteState from '../enums/MuteState';
|
|
3
3
|
import MuteStates from '../types/MuteStates';
|
|
4
|
+
import SignalingMessage from '../types/SignalingMessage';
|
|
4
5
|
export declare const getMediaOptionsByMuteState: (muteStates: MuteStates, value: MuteState) => MediaOption[];
|
|
6
|
+
export declare function extractConnectionMuteStates(connection: SignalingMessage.Connection | SignalingMessage.PromoteParticipant): MuteStates | undefined;
|
|
7
|
+
export declare function filterReconnectedParticipantMuteStates(participant: SignalingMessage.Participant): MuteStates;
|
|
8
|
+
export declare function filterReconnectedConversationMuteStates(connection: SignalingMessage.Connection | SignalingMessage.PromoteParticipant, muteStates: MuteStates): MuteStates;
|
package/utils/DebugStorage.d.ts
CHANGED
package/utils/Media.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IVideoDimentions } from '../types/MediaSettings';
|
|
2
1
|
export declare const stopMediaStreamTrack: (track: MediaStreamTrack) => void;
|
|
3
2
|
export declare const stopMediaStreamTracks: (stream: MediaStream) => void;
|
|
4
3
|
export declare const stopMediaStreamVideoTracks: (stream: MediaStream) => void;
|
|
5
4
|
export declare const cloneVideoTrack: (stream: MediaStream) => MediaStreamTrack;
|
|
6
|
-
export declare function
|
|
5
|
+
export declare function setVideoConstraints(track: MediaStreamTrack, constraints: MediaTrackConstraints): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Device = 'camera' | 'microphone';
|
|
2
|
+
type PermissionStatusState = typeof PermissionStatus.prototype.state;
|
|
3
|
+
type EventListener = (name: Device, state: PermissionStatusState) => void;
|
|
4
|
+
export declare class NavigatorPermissions {
|
|
5
|
+
private _cameraPermissionStatus;
|
|
6
|
+
private _microphonePermissionStatus;
|
|
7
|
+
private _listener;
|
|
8
|
+
static isSupported(): boolean;
|
|
9
|
+
init(listener: EventListener): Promise<void>;
|
|
10
|
+
private handlePermissionChange;
|
|
11
|
+
getPermissionState(device: Device): PermissionState | null;
|
|
12
|
+
}
|
|
13
|
+
export {};
|