@vkontakte/calls-sdk 2.5.3-dev.5cb1042.0 → 2.5.3-dev.5dc4e16.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 +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +0 -1
- package/classes/SpeakerDetector.d.ts +4 -5
- package/classes/VolumesDetector.d.ts +1 -1
- package/classes/transport/Transport.d.ts +0 -2
- package/enums/CallDirection.d.ts +1 -1
- package/enums/MuteState.d.ts +1 -1
- package/enums/ParticipantState.d.ts +1 -1
- package/enums/SignalingNotification.d.ts +1 -1
- package/enums/UserType.d.ts +1 -1
- package/package.json +1 -1
- package/static/External.d.ts +1 -3
- package/static/Params.d.ts +2 -5
- package/static/Utils.d.ts +0 -7
|
@@ -278,7 +278,6 @@ export default class Conversation extends EventEmitter {
|
|
|
278
278
|
private _onRemoteTrackRemoved;
|
|
279
279
|
private _removeAudioTrack;
|
|
280
280
|
private _removeVideoTrack;
|
|
281
|
-
private _onRemoteActivityNoSignal;
|
|
282
281
|
private _onTopologyChanged;
|
|
283
282
|
private _onRemoteAllStall;
|
|
284
283
|
private _onRemoteSignalledStall;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ParticipantId } from '../types/Participant';
|
|
2
2
|
import EventEmitter from './EventEmitter';
|
|
3
|
-
import { Transport } from './transport/Transport';
|
|
3
|
+
import { Transport, TransportTopology } from './transport/Transport';
|
|
4
4
|
import { VolumeLevel } from './VolumeDetector';
|
|
5
5
|
import { VolumesDetector } from './VolumesDetector';
|
|
6
6
|
export declare const enum SpeakerDetectorEvent {
|
|
@@ -8,13 +8,12 @@ export declare const enum SpeakerDetectorEvent {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class SpeakerDetector extends EventEmitter {
|
|
10
10
|
private _speakerId;
|
|
11
|
-
private
|
|
12
|
-
constructor(volumesDetector: VolumesDetector, transport: Transport);
|
|
11
|
+
private _serverSideSpeakerDetection;
|
|
12
|
+
constructor(volumesDetector: VolumesDetector, transport: Transport, topology: TransportTopology);
|
|
13
13
|
destroy(): void;
|
|
14
14
|
_onVolumesDetected(volumes: {
|
|
15
15
|
[key: string]: VolumeLevel;
|
|
16
16
|
}): void;
|
|
17
17
|
_onServerSpeakerChanged(speakerId: ParticipantId): void;
|
|
18
|
-
|
|
19
|
-
_onStoppedReceivingServerAudioActivity(): void;
|
|
18
|
+
private _onTopologyChanged;
|
|
20
19
|
}
|
|
@@ -12,7 +12,6 @@ export declare const enum TransportEvent {
|
|
|
12
12
|
STATE_CHANGED = "STATE_CHANGED",
|
|
13
13
|
LOCAL_STATE_CHANGED = "LOCAL_STATE_CHANGED",
|
|
14
14
|
SIGNALLED_ACTIVE_PARTICIPANTS = "SIGNALLED_ACTIVE_PARTICIPANTS",
|
|
15
|
-
ACTIVE_PARTICIPANTS_NO_SIGNAL = "ACTIVE_PARTICIPANTS_NO_SIGNAL",
|
|
16
15
|
SIGNALLED_SPEAKER_CHANGED = "SIGNALLED_SPEAKER_CHANGED",
|
|
17
16
|
SIGNALLED_STALLED_PARTICIPANTS = "SIGNALLED_STALLED_PARTICIPANTS",
|
|
18
17
|
TOPOLOGY_CHANGED = "TOPOLOGY_CHANGED",
|
|
@@ -69,7 +68,6 @@ export declare class Transport extends EventEmitter {
|
|
|
69
68
|
private _setLocalNoiseSuppression;
|
|
70
69
|
private _onDirectTransportChanged;
|
|
71
70
|
private _onServerTransportChanged;
|
|
72
|
-
private _onTransportActiveParticipantsNoSignal;
|
|
73
71
|
private _onTransportActiveParticipants;
|
|
74
72
|
private _onTransportStalledParticipants;
|
|
75
73
|
private _onTransportSpeakerChanged;
|
package/enums/CallDirection.d.ts
CHANGED
package/enums/MuteState.d.ts
CHANGED
package/enums/UserType.d.ts
CHANGED
package/package.json
CHANGED
package/static/External.d.ts
CHANGED
|
@@ -106,9 +106,7 @@ declare namespace External {
|
|
|
106
106
|
* @param userId
|
|
107
107
|
* @param participantState
|
|
108
108
|
*/
|
|
109
|
-
function onRemoteParticipantState(userId: ExternalParticipantId, participantState:
|
|
110
|
-
[key: string]: string;
|
|
111
|
-
} | ParticipantStateMapped): void;
|
|
109
|
+
function onRemoteParticipantState(userId: ExternalParticipantId, participantState: ParticipantStateMapped): void;
|
|
112
110
|
/**
|
|
113
111
|
* Изменился статус соединения собеседников
|
|
114
112
|
*
|
package/static/Params.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import IceServer from '../types/IceServer';
|
|
|
12
12
|
import MediaModifiers from '../types/MediaModifiers';
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
14
|
import MuteStates from '../types/MuteStates';
|
|
15
|
+
import { ParticipantStateMapped } from '../types/Participant';
|
|
15
16
|
import AuthData from './AuthData';
|
|
16
17
|
import { DebugMessageType } from './Debug';
|
|
17
18
|
import { ParticipantStatus } from './External';
|
|
@@ -230,7 +231,6 @@ export declare type ParamsObject = {
|
|
|
230
231
|
* @hidden
|
|
231
232
|
*/
|
|
232
233
|
batchParticipantsOnStart: boolean;
|
|
233
|
-
participantStateMapped: boolean;
|
|
234
234
|
joinFromMultipleDevices: boolean;
|
|
235
235
|
/**
|
|
236
236
|
* Фильтровать наблюдателей во всех колбэках
|
|
@@ -284,9 +284,7 @@ export declare type ParamsObject = {
|
|
|
284
284
|
/**
|
|
285
285
|
* Изменились данные состояний собеседника
|
|
286
286
|
*/
|
|
287
|
-
onRemoteParticipantState?: (userId: ExternalParticipantId, participantState:
|
|
288
|
-
[key: string]: string;
|
|
289
|
-
}) => void;
|
|
287
|
+
onRemoteParticipantState?: (userId: ExternalParticipantId, participantState: ParticipantStateMapped) => void;
|
|
290
288
|
/**
|
|
291
289
|
* Изменился статус соединения собеседников
|
|
292
290
|
*/
|
|
@@ -519,7 +517,6 @@ export default abstract class Params {
|
|
|
519
517
|
static get serverAudioRed(): boolean;
|
|
520
518
|
static get p2pAudioRed(): boolean;
|
|
521
519
|
static get batchParticipantsOnStart(): boolean;
|
|
522
|
-
static get participantStateMapped(): boolean;
|
|
523
520
|
static get filterObservers(): boolean;
|
|
524
521
|
static get muteMode(): boolean;
|
|
525
522
|
}
|
package/static/Utils.d.ts
CHANGED
|
@@ -40,13 +40,6 @@ declare namespace Utils {
|
|
|
40
40
|
* @param participant список участников звонка
|
|
41
41
|
*/
|
|
42
42
|
function mapParticipantState(participant: Pick<SignalingMessage.Participant, 'participantState'>): ParticipantStateMapped;
|
|
43
|
-
/**
|
|
44
|
-
* Legacy маппер клиентского состояния участника звонка (когда `state` вида `{ [key: string]: string }`)
|
|
45
|
-
* @param participantState состояние участника
|
|
46
|
-
*/
|
|
47
|
-
function mapLegacyParticipantState(participantState: ParticipantStateMapped): {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
50
43
|
/**
|
|
51
44
|
* мапает данные `participants` перед передачей клиенту
|
|
52
45
|
*/
|