@vkontakte/calls-sdk 2.8.11-dev.5500645b.0 → 2.8.11-dev.cb5b05f6.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/calls-sdk.cjs.js +10 -11
- package/calls-sdk.esm.js +10 -11
- package/classes/Conversation.d.ts +0 -4
- package/classes/transport/DirectTransport.d.ts +0 -5
- package/classes/transport/ServerTransport.d.ts +0 -8
- package/classes/transport/Transport.d.ts +1 -16
- package/package.json +1 -1
- package/static/External.d.ts +0 -4
- package/static/Params.d.ts +0 -17
- package/types/Statistics.d.ts +0 -4
- package/static/DebugVideoStats.d.ts +0 -22
|
@@ -60,7 +60,6 @@ export default class Conversation extends EventEmitter {
|
|
|
60
60
|
private _audioFix;
|
|
61
61
|
private _streamByStreamId;
|
|
62
62
|
private _streamIdByStreamDescription;
|
|
63
|
-
private _participantIdByDebugStreamId;
|
|
64
63
|
private _streamWaitTimerByStreamDescription;
|
|
65
64
|
private _sequenceNumberByStreamDescription;
|
|
66
65
|
private _cooldownTimestampByStreamDescription;
|
|
@@ -217,7 +216,6 @@ export default class Conversation extends EventEmitter {
|
|
|
217
216
|
private _sendUpdateDisplayLayout;
|
|
218
217
|
private _cleanupCooldownQueue;
|
|
219
218
|
private _onParticipantSourcesUpdate;
|
|
220
|
-
private _registerVideoStreamDebugParticipant;
|
|
221
219
|
private _onParticipantPromoted;
|
|
222
220
|
private _onChatRoomUpdated;
|
|
223
221
|
private _onSharedMovieUpdate;
|
|
@@ -374,8 +372,6 @@ export default class Conversation extends EventEmitter {
|
|
|
374
372
|
private _onAudioMixStall;
|
|
375
373
|
private _onRemoteSignalledStall;
|
|
376
374
|
private _onRemoteDataStats;
|
|
377
|
-
private _onVideoStreamDebug;
|
|
378
|
-
private _resolveVideoStreamDebugParticipantId;
|
|
379
375
|
private _fixAudioDevice;
|
|
380
376
|
private _fixVideoDevice;
|
|
381
377
|
private _toggleJoinAvailability;
|
|
@@ -7,9 +7,6 @@ import BaseTransport from './BaseTransport';
|
|
|
7
7
|
export default class DirectTransport extends BaseTransport {
|
|
8
8
|
private readonly _participantId;
|
|
9
9
|
private readonly _isMaster;
|
|
10
|
-
private _hasOutboundVideoDebug;
|
|
11
|
-
private _hasInboundVideoDebug;
|
|
12
|
-
private _videoDebugBytes;
|
|
13
10
|
private _remoteSDP;
|
|
14
11
|
private _remoteCandidates;
|
|
15
12
|
private _lastRemoteSDP;
|
|
@@ -70,8 +67,6 @@ export default class DirectTransport extends BaseTransport {
|
|
|
70
67
|
private static _patchRemoteDescription;
|
|
71
68
|
private _onReplacedTrack;
|
|
72
69
|
private _startStatInterval;
|
|
73
|
-
private _reportVideoStreamDebug;
|
|
74
|
-
private _getVideoDebugBitrate;
|
|
75
70
|
/**
|
|
76
71
|
* Check SVC support
|
|
77
72
|
* @see https://webrtc.internaut.com/mc/
|
|
@@ -5,9 +5,6 @@ import ServerSettings from '../../types/ServerSettings';
|
|
|
5
5
|
import { MediaSource } from '../MediaSource';
|
|
6
6
|
import BaseTransport from './BaseTransport';
|
|
7
7
|
export default class ServerTransport extends BaseTransport {
|
|
8
|
-
private _hasOutboundVideoDebug;
|
|
9
|
-
private _inboundVideoDebugParticipants;
|
|
10
|
-
private _videoDebugBytes;
|
|
11
8
|
private _producerNotification;
|
|
12
9
|
private _producerCommand;
|
|
13
10
|
private _producerScreen;
|
|
@@ -39,7 +36,6 @@ export default class ServerTransport extends BaseTransport {
|
|
|
39
36
|
private _participantIdRegistry;
|
|
40
37
|
private _disabledSenders;
|
|
41
38
|
private _rtpReceiversByStreamId;
|
|
42
|
-
private _participantIdByVideoTrackId;
|
|
43
39
|
private _producerSessionId;
|
|
44
40
|
private _newAudioShareTrack;
|
|
45
41
|
private _simulcastInfo;
|
|
@@ -78,10 +74,6 @@ export default class ServerTransport extends BaseTransport {
|
|
|
78
74
|
private _stopSettingsInterval;
|
|
79
75
|
private _collectStat;
|
|
80
76
|
private _reportStats;
|
|
81
|
-
private _reportVideoStreamDebug;
|
|
82
|
-
private _getVideoDebugStreamId;
|
|
83
|
-
private _getVideoDebugTrackId;
|
|
84
|
-
private _getVideoDebugBitrate;
|
|
85
77
|
private _detectStaleTracks;
|
|
86
78
|
private _allocateConsumer;
|
|
87
79
|
private _processOffer;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AnimojiSvgData, RGBTuple } from '@vkontakte/calls-vmoji';
|
|
2
2
|
import BaseSignaling from '../../abstract/BaseSignaling';
|
|
3
|
-
import { VideoStreamDebugDirection } from '../../static/DebugVideoStats';
|
|
4
3
|
import { ParticipantId } from '../../types/Participant';
|
|
5
4
|
import ServerSettings from '../../types/ServerSettings';
|
|
6
5
|
import EventEmitter from '../EventEmitter';
|
|
@@ -22,8 +21,7 @@ export declare const enum TransportEvent {
|
|
|
22
21
|
ASR_TRANSCRIPTION = "ASR_TRANSCRIPTION",
|
|
23
22
|
ANIMOJI_STREAM = "ANIMOJI_STREAM",
|
|
24
23
|
ANIMOJI_ERROR = "ANIMOJI_ERROR",
|
|
25
|
-
SCREEN_SHARING_STAT = "SCREEN_SHARING_STAT"
|
|
26
|
-
VIDEO_STREAM_DEBUG = "VIDEO_STREAM_DEBUG"
|
|
24
|
+
SCREEN_SHARING_STAT = "SCREEN_SHARING_STAT"
|
|
27
25
|
}
|
|
28
26
|
export declare const enum TransportState {
|
|
29
27
|
IDLE = "IDLE",
|
|
@@ -38,18 +36,6 @@ export declare const enum TransportTopology {
|
|
|
38
36
|
DIRECT = "DIRECT",
|
|
39
37
|
SERVER = "SERVER"
|
|
40
38
|
}
|
|
41
|
-
export type VideoStreamDebugEvent = {
|
|
42
|
-
direction: VideoStreamDebugDirection;
|
|
43
|
-
streamId?: ParticipantId;
|
|
44
|
-
trackId?: string;
|
|
45
|
-
mimeType?: string;
|
|
46
|
-
width?: number;
|
|
47
|
-
height?: number;
|
|
48
|
-
frameRate?: number;
|
|
49
|
-
bitrate?: number;
|
|
50
|
-
packetsLost?: number;
|
|
51
|
-
clear?: boolean;
|
|
52
|
-
};
|
|
53
39
|
export declare class Transport extends EventEmitter {
|
|
54
40
|
private readonly _signaling;
|
|
55
41
|
private readonly _mediaSource;
|
|
@@ -99,7 +85,6 @@ export declare class Transport extends EventEmitter {
|
|
|
99
85
|
private _onPeerConnectionClosed;
|
|
100
86
|
private _onServerAudioMixStall;
|
|
101
87
|
private _onRemoteDataStats;
|
|
102
|
-
private _onVideoStreamDebug;
|
|
103
88
|
private _onRemoteTrackAdded;
|
|
104
89
|
private _onRemoteTrackRemoved;
|
|
105
90
|
private _onAsrTranscription;
|
package/package.json
CHANGED
package/static/External.d.ts
CHANGED
|
@@ -563,9 +563,5 @@ declare namespace External {
|
|
|
563
563
|
* Собеседник подключился к сигналлингу
|
|
564
564
|
*/
|
|
565
565
|
function onPeerRegistered(): void;
|
|
566
|
-
/**
|
|
567
|
-
* Дебаг информация по видеопотоку, отформатированная SDK для отображения в клиенте.
|
|
568
|
-
*/
|
|
569
|
-
function onVideoStreamDebug(externalParticipantId: ExternalParticipantId, debug: string): void;
|
|
570
566
|
}
|
|
571
567
|
export default External;
|
package/static/Params.d.ts
CHANGED
|
@@ -104,13 +104,6 @@ export type ParamsObject = {
|
|
|
104
104
|
debugLog: boolean;
|
|
105
105
|
/** @hidden */
|
|
106
106
|
debug: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Вкчлючает отправку на клиент статы по входящим/исходящим видео-потокам
|
|
109
|
-
* @hidden
|
|
110
|
-
*
|
|
111
|
-
* _По умолчанию: `false`_
|
|
112
|
-
*/
|
|
113
|
-
debugVideoStreams: boolean;
|
|
114
107
|
/**
|
|
115
108
|
* Выставляет таймаут в ms для fetch запросов от sdk
|
|
116
109
|
* По умолчанию 5000 ms
|
|
@@ -870,15 +863,6 @@ export type ParamsObject = {
|
|
|
870
863
|
* Собеседник подключился к сигналлингу
|
|
871
864
|
*/
|
|
872
865
|
onPeerRegistered?: () => void;
|
|
873
|
-
/**
|
|
874
|
-
* Дебаг информация по видеопотоку, отформатированная SDK для отображения в клиенте.
|
|
875
|
-
*
|
|
876
|
-
* Работает только если включен `debugVideoStreams`.
|
|
877
|
-
*
|
|
878
|
-
* @param externalParticipantId Id участника, к которому относится видеопоток
|
|
879
|
-
* @param debug Отформатированный текст для отображения
|
|
880
|
-
*/
|
|
881
|
-
onVideoStreamDebug?: (externalParticipantId: ExternalParticipantId, debug: string) => void;
|
|
882
866
|
};
|
|
883
867
|
export default abstract class Params {
|
|
884
868
|
private static _params;
|
|
@@ -930,7 +914,6 @@ export default abstract class Params {
|
|
|
930
914
|
static get waitMessageDelay(): number;
|
|
931
915
|
static get waitAnotherTabDelay(): number;
|
|
932
916
|
static get debugLog(): boolean;
|
|
933
|
-
static get debugVideoStreams(): false | ((externalParticipantId: ExternalParticipantId, debug: string) => void) | undefined;
|
|
934
917
|
static get forceRelayPolicy(): boolean;
|
|
935
918
|
static set forceRelayPolicy(value: boolean);
|
|
936
919
|
static get videoMinWidth(): number;
|
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,22 +0,0 @@
|
|
|
1
|
-
import { ExternalParticipantId } from '../types/ExternalId';
|
|
2
|
-
export declare const enum VideoStreamDebugDirection {
|
|
3
|
-
INBOUND = "inbound",
|
|
4
|
-
OUTBOUND = "outbound"
|
|
5
|
-
}
|
|
6
|
-
export type VideoStreamDebugData = {
|
|
7
|
-
direction: VideoStreamDebugDirection;
|
|
8
|
-
externalParticipantId: ExternalParticipantId;
|
|
9
|
-
trackId?: string;
|
|
10
|
-
mimeType?: string;
|
|
11
|
-
width?: number;
|
|
12
|
-
height?: number;
|
|
13
|
-
frameRate?: number;
|
|
14
|
-
bitrate?: number;
|
|
15
|
-
packetsLost?: number;
|
|
16
|
-
};
|
|
17
|
-
declare namespace DebugVideoStats {
|
|
18
|
-
function format(data: VideoStreamDebugData): string;
|
|
19
|
-
function send(data: VideoStreamDebugData): void;
|
|
20
|
-
function clear(externalParticipantId: ExternalParticipantId): void;
|
|
21
|
-
}
|
|
22
|
-
export default DebugVideoStats;
|