@vkontakte/calls-sdk 2.8.6-dev.785c0ce9.0 → 2.8.6-dev.796773ba.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 +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +3 -2
- package/classes/MediaSource.d.ts +0 -3
- package/classes/ParticipantIdRegistry.d.ts +0 -1
- package/classes/transport/ServerTransport.d.ts +0 -3
- package/package.json +1 -1
- package/static/External.d.ts +1 -1
- package/static/Params.d.ts +1 -15
- package/types/ExternalId.d.ts +2 -0
- package/types/ServerSettings.d.ts +0 -2
- package/types/SignalingMessage.d.ts +2 -4
- package/types/Streams.d.ts +1 -0
|
@@ -221,7 +221,6 @@ export default class Conversation extends EventEmitter {
|
|
|
221
221
|
private _onUrlSharingInfoUpdated;
|
|
222
222
|
private _onFeaturesPerRoleChanged;
|
|
223
223
|
private _waitForStreamIfNeeded;
|
|
224
|
-
private _getStreamDescriptionById;
|
|
225
224
|
private _matchStreamDescription;
|
|
226
225
|
private _getWaitingTime;
|
|
227
226
|
private _isCallAdmin;
|
|
@@ -268,7 +267,7 @@ export default class Conversation extends EventEmitter {
|
|
|
268
267
|
switchRoom(toRoomId: number | null, participantId?: ParticipantId): Promise<void>;
|
|
269
268
|
removeRooms(roomIds: number[]): Promise<void>;
|
|
270
269
|
startStream(isRecord?: boolean, name?: string | null, movieId?: string | null, privacy?: 'PUBLIC' | 'FRIENDS' | 'DIRECT_LINK', groupId?: string | null, roomId?: number | null): Promise<undefined>;
|
|
271
|
-
stopStream(roomId?: number | null): Promise<undefined>;
|
|
270
|
+
stopStream(roomId?: number | null, remove?: boolean): Promise<undefined>;
|
|
272
271
|
publishStream(roomId?: number | null): Promise<undefined>;
|
|
273
272
|
recordSetConf(king?: ParticipantId, pawns?: ParticipantId[], hideParticipantCount?: boolean, roomId?: number | null): Promise<void>;
|
|
274
273
|
getStreamInfo(): Promise<{
|
|
@@ -315,6 +314,7 @@ export default class Conversation extends EventEmitter {
|
|
|
315
314
|
private _onChatMessage;
|
|
316
315
|
private _onCustomData;
|
|
317
316
|
private _onRecordInfo;
|
|
317
|
+
private _onStopRecordInfo;
|
|
318
318
|
private _changePinnedParticipantForRoom;
|
|
319
319
|
_changeRecordInfoForRoom(): Promise<void>;
|
|
320
320
|
private _changeAsrInfoForRoom;
|
|
@@ -347,6 +347,7 @@ export default class Conversation extends EventEmitter {
|
|
|
347
347
|
private _onAnimojiError;
|
|
348
348
|
private _onPeerConnectionClosed;
|
|
349
349
|
private _changeFeatureSet;
|
|
350
|
+
private _changeFeaturesPerRole;
|
|
350
351
|
private _changeNeedRate;
|
|
351
352
|
private _onVolumesDetected;
|
|
352
353
|
private _onSpeakerChanged;
|
package/classes/MediaSource.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export declare class MediaSource extends EventEmitter {
|
|
|
35
35
|
protected _stream: MediaStream | null;
|
|
36
36
|
private _screenTrack;
|
|
37
37
|
private _audioShareTrack;
|
|
38
|
-
private _screenShareTrack;
|
|
39
38
|
/** Трек для отправки в медиа-канал. Может отличаться при скриншаринге в дата-канал */
|
|
40
39
|
private _sendVideoTrack;
|
|
41
40
|
/** Трек с камеры. В стриме будет другой трек при включенных видео эффектах */
|
|
@@ -86,7 +85,6 @@ export declare class MediaSource extends EventEmitter {
|
|
|
86
85
|
private stopAudioShareTrack;
|
|
87
86
|
private _applyAudioEffect;
|
|
88
87
|
protected getSilentAudioShareTrack(): MediaStreamTrack;
|
|
89
|
-
protected getBlackScreenShareTrack(): MediaStreamTrack;
|
|
90
88
|
protected _replaceLocalTrack(newTrack: MediaStreamTrack, sendTrack?: MediaStreamTrack): Promise<void>;
|
|
91
89
|
private _setEffect;
|
|
92
90
|
private _stopEffect;
|
|
@@ -109,6 +107,5 @@ export declare class MediaSource extends EventEmitter {
|
|
|
109
107
|
private handleVideoEffectsLowFps;
|
|
110
108
|
private get _frameRate();
|
|
111
109
|
private _applyVideoConstraints;
|
|
112
|
-
getScreenShareTrack(): MediaStreamTrack | null;
|
|
113
110
|
}
|
|
114
111
|
export {};
|
|
@@ -6,6 +6,5 @@ export declare class ParticipantIdRegistry {
|
|
|
6
6
|
getStreamDescription(compactedId: number): ParticipantStreamDescription | undefined;
|
|
7
7
|
getCompactId(streamDescription: string): number | undefined;
|
|
8
8
|
handleMessage(data: ArrayBuffer): SignalingMessage | null;
|
|
9
|
-
private _decodeMediaType;
|
|
10
9
|
private _createParticipantSourcesUpdateNotification;
|
|
11
10
|
}
|
|
@@ -27,7 +27,6 @@ export default class ServerTransport extends BaseTransport {
|
|
|
27
27
|
private _lastStat;
|
|
28
28
|
private _serverSettings;
|
|
29
29
|
private _prevConsumerSettings;
|
|
30
|
-
private _prevConsumerFastSharingSettings;
|
|
31
30
|
private _asrTrack;
|
|
32
31
|
private _captureSender;
|
|
33
32
|
private _captureReceiver;
|
|
@@ -78,7 +77,6 @@ export default class ServerTransport extends BaseTransport {
|
|
|
78
77
|
private _findFirstSimTransceiver;
|
|
79
78
|
private _setupSimulcastTransceiver;
|
|
80
79
|
private _acceptProducer;
|
|
81
|
-
private _replaceScreenShareTrack;
|
|
82
80
|
private _handleTracks;
|
|
83
81
|
private _onSignalingNotification;
|
|
84
82
|
private _onAsrTranscription;
|
|
@@ -87,7 +85,6 @@ export default class ServerTransport extends BaseTransport {
|
|
|
87
85
|
static _onSignalingStateChange(pc: RTCPeerConnection, event: any): void;
|
|
88
86
|
private _onConnectionStateChange;
|
|
89
87
|
private _onReplacedTrack;
|
|
90
|
-
private _onSourcesChanged;
|
|
91
88
|
getStreamWaitingTimeMs(streamId: string, targetRtpTimestamp: number): number;
|
|
92
89
|
private _changeSimulcastInfo;
|
|
93
90
|
}
|
package/package.json
CHANGED
package/static/External.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ declare namespace External {
|
|
|
420
420
|
* Закончена запись звонка
|
|
421
421
|
* @param roomId ID зала в котором остановлена запись
|
|
422
422
|
*/
|
|
423
|
-
function onRecordStopped(roomId
|
|
423
|
+
function onRecordStopped(roomId: number | null | undefined, stopBy: ExternalParticipantId | null): void;
|
|
424
424
|
/**
|
|
425
425
|
* Состояние своей сети
|
|
426
426
|
*
|
package/static/Params.d.ts
CHANGED
|
@@ -442,18 +442,6 @@ export type ParamsObject = {
|
|
|
442
442
|
fastScreenShareWidth: number;
|
|
443
443
|
/** @hidden */
|
|
444
444
|
fastScreenShareHeight: number;
|
|
445
|
-
/**
|
|
446
|
-
* Включить отправку быстрой шары с клиента по RTP
|
|
447
|
-
*
|
|
448
|
-
* _По умолчанию: `false`_
|
|
449
|
-
*/
|
|
450
|
-
consumerFastScreenShare: boolean;
|
|
451
|
-
/**
|
|
452
|
-
* Включает отправку сервером нотификации video-quality-update
|
|
453
|
-
*
|
|
454
|
-
* _По умолчанию: `false`_
|
|
455
|
-
*/
|
|
456
|
-
consumerFastScreenShareQualityOnDemand: boolean;
|
|
457
445
|
/**
|
|
458
446
|
* Использовать новые правила allMute для админа
|
|
459
447
|
*/
|
|
@@ -727,7 +715,7 @@ export type ParamsObject = {
|
|
|
727
715
|
/**
|
|
728
716
|
* Закончена трансляция/запись звонка
|
|
729
717
|
*/
|
|
730
|
-
onRecordStopped?: (roomId: number | null) => void;
|
|
718
|
+
onRecordStopped?: (roomId: number | null, stopBy: ExternalParticipantId | null) => void;
|
|
731
719
|
/**
|
|
732
720
|
* Состояние своей сети
|
|
733
721
|
*
|
|
@@ -1003,8 +991,6 @@ export default abstract class Params {
|
|
|
1003
991
|
static get screenShareCongestionControlThreshold(): number;
|
|
1004
992
|
static get fastScreenShareWidth(): number;
|
|
1005
993
|
static get fastScreenShareHeight(): number;
|
|
1006
|
-
static get consumerFastScreenShare(): boolean;
|
|
1007
|
-
static get consumerFastScreenShareQualityOnDemand(): boolean;
|
|
1008
994
|
static get newMuteRules(): boolean;
|
|
1009
995
|
static get videoSuspend(): boolean;
|
|
1010
996
|
static get enumerateDevicesDelay(): number;
|
package/types/ExternalId.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import MediaOption from '../enums/MediaOption';
|
|
2
|
+
import UserRole from '../enums/UserRole';
|
|
2
3
|
import { ParticipantStatus } from '../static/External';
|
|
3
4
|
import MediaSettings from './MediaSettings';
|
|
4
5
|
import { ISharedMovieInfo } from './MovieShare';
|
|
@@ -96,6 +97,7 @@ export interface ExternalParticipant {
|
|
|
96
97
|
unmuteOptions: MediaOption[];
|
|
97
98
|
markers: ExternalParticipantListMarkers | null;
|
|
98
99
|
movieShareInfos?: ISharedMovieInfo[];
|
|
100
|
+
roles: UserRole[];
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
103
|
* Позиция в чанке
|
|
@@ -6,14 +6,12 @@ import VideoSettings from './VideoSettings';
|
|
|
6
6
|
export type ServerSettings = {
|
|
7
7
|
camera: VideoSettings | null;
|
|
8
8
|
screenSharing: VideoSettings | null;
|
|
9
|
-
fastScreenSharing: VideoSettings | null;
|
|
10
9
|
};
|
|
11
10
|
export default ServerSettings;
|
|
12
11
|
export declare function compareServerSettings(ss1: ServerSettings, ss2: ServerSettings): boolean;
|
|
13
12
|
export declare function merge(ss: ServerSettings, other: ServerSettings): {
|
|
14
13
|
camera: VideoSettings;
|
|
15
14
|
screenSharing: VideoSettings;
|
|
16
|
-
fastScreenSharing: VideoSettings;
|
|
17
15
|
};
|
|
18
16
|
export declare function createEmptyServerSettings(): ServerSettings;
|
|
19
17
|
export declare function clone(ss: ServerSettings): ServerSettings;
|
|
@@ -20,7 +20,7 @@ import MediaSettings from './MediaSettings';
|
|
|
20
20
|
import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
|
|
21
21
|
import MuteStates from './MuteStates';
|
|
22
22
|
import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
|
|
23
|
-
import {
|
|
23
|
+
import { ParticipantStreamDescription } from './ParticipantStreamDescription';
|
|
24
24
|
import { IRoomId } from './Room';
|
|
25
25
|
import VideoSettings from './VideoSettings';
|
|
26
26
|
import { ChatRoom } from './WaitingHall';
|
|
@@ -276,7 +276,6 @@ declare namespace SignalingMessage {
|
|
|
276
276
|
}
|
|
277
277
|
export interface FeatureSetChanged extends Notification {
|
|
278
278
|
features: ConversationFeature[];
|
|
279
|
-
featuresPerRole?: IFeaturesPerRole | null;
|
|
280
279
|
}
|
|
281
280
|
export interface MultipartyChatCreated extends Notification {
|
|
282
281
|
chatId: string;
|
|
@@ -289,6 +288,7 @@ declare namespace SignalingMessage {
|
|
|
289
288
|
recordInfo: RecordInfo;
|
|
290
289
|
}
|
|
291
290
|
export interface RecordStopped extends Notification {
|
|
291
|
+
/** кто остановил запись или если в комнатах, то это админ */
|
|
292
292
|
participant: ParticipantId;
|
|
293
293
|
recordMovieId: number;
|
|
294
294
|
}
|
|
@@ -309,7 +309,6 @@ declare namespace SignalingMessage {
|
|
|
309
309
|
export interface SettingsUpdate extends Notification {
|
|
310
310
|
camera: VideoSettings;
|
|
311
311
|
screenSharing: VideoSettings;
|
|
312
|
-
fastScreenSharing: VideoSettings;
|
|
313
312
|
settings: Record<string, any>;
|
|
314
313
|
}
|
|
315
314
|
export interface StalledActivity extends Notification {
|
|
@@ -351,7 +350,6 @@ declare namespace SignalingMessage {
|
|
|
351
350
|
maxBitrate: number;
|
|
352
351
|
maxDimension: number;
|
|
353
352
|
};
|
|
354
|
-
mediaType?: MediaType;
|
|
355
353
|
}
|
|
356
354
|
export interface CustomData extends Notification {
|
|
357
355
|
participantId: OkUserId;
|