@vkontakte/calls-sdk 2.8.6-dev.708b0190.0 → 2.8.6-dev.7a7707c0.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 +3 -3
- package/abstract/BaseSignaling.d.ts +2 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +7 -7
- package/classes/Conversation.d.ts +3 -3
- package/classes/MediaSource.d.ts +1 -0
- package/default/Signaling.d.ts +2 -2
- package/package.json +2 -2
- package/static/WebRTCUtils.d.ts +4 -0
- package/types/MovieShare.d.ts +4 -0
- package/types/Participant.d.ts +9 -0
- package/types/PerfStatReporter.d.ts +1 -0
|
@@ -19,7 +19,7 @@ import MediaModifiers from '../types/MediaModifiers';
|
|
|
19
19
|
import { IVideoDimentions } from '../types/MediaSettings';
|
|
20
20
|
import { IAddMovieParams, IUpdateMovieData } from '../types/MovieShare';
|
|
21
21
|
import MuteStates from '../types/MuteStates';
|
|
22
|
-
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId } from '../types/Participant';
|
|
22
|
+
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantStateData } from '../types/Participant';
|
|
23
23
|
import { ParticipantLayout } from '../types/ParticipantLayout';
|
|
24
24
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
25
25
|
import ParticipantPriority from '../types/ParticipantPriority';
|
|
@@ -189,7 +189,7 @@ export default class Conversation extends EventEmitter {
|
|
|
189
189
|
* @deprecated Use updateDisplayLayout instead
|
|
190
190
|
*/
|
|
191
191
|
changePriorities(priorities: ParticipantPriority[]): Promise<void>;
|
|
192
|
-
changeParticipantState(state:
|
|
192
|
+
changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<void>;
|
|
193
193
|
putHandsDown(): Promise<void>;
|
|
194
194
|
requestKeyFrame(participantStreamDescription: ParticipantStreamDescription): Promise<void | SignalingMessage>;
|
|
195
195
|
requestTestMode(consumerCommand: string, producerCommand: string): Promise<void>;
|
|
@@ -249,7 +249,7 @@ export default class Conversation extends EventEmitter {
|
|
|
249
249
|
customData(data: JSONObject, participantId?: ParticipantId | null): Promise<void>;
|
|
250
250
|
createJoinLink(): Promise<string>;
|
|
251
251
|
removeJoinLink(): Promise<undefined>;
|
|
252
|
-
addMovie({ movieId, gain, metadata }: IAddMovieParams): Promise<{
|
|
252
|
+
addMovie({ movieId, gain, metadata, lang }: IAddMovieParams): Promise<{
|
|
253
253
|
movieId: number;
|
|
254
254
|
streamType: string;
|
|
255
255
|
}>;
|
package/classes/MediaSource.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import MediaSettings, { IVideoDimentions } from '../types/MediaSettings';
|
|
|
5
5
|
import { ScreenCaptureSettings } from '../types/ScreenCaptureSettings';
|
|
6
6
|
export declare const enum MediaSourceEvent {
|
|
7
7
|
SOURCE_CHANGED = "SOURCE_CHANGED",
|
|
8
|
+
SOURCE_READY = "SOURCE_READY",
|
|
8
9
|
TRACK_REPLACED = "TRACK_REPLACED",
|
|
9
10
|
SCREEN_STATUS = "SCREEN_STATUS",
|
|
10
11
|
ANIMOJI_STATUS = "ANIMOJI_STATUS"
|
package/default/Signaling.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import MediaModifiers from '../types/MediaModifiers';
|
|
|
15
15
|
import MediaSettings from '../types/MediaSettings';
|
|
16
16
|
import { IAddMovieParams, IUpdateMovieData } from '../types/MovieShare';
|
|
17
17
|
import MuteStates from '../types/MuteStates';
|
|
18
|
-
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
18
|
+
import { CompositeUserId, ParticipantId, ParticipantStateData } from '../types/Participant';
|
|
19
19
|
import ParticipantLayout, { RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
20
20
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
21
21
|
import { StreamDescriptionString } from '../types/ParticipantStreamDescription';
|
|
@@ -86,7 +86,7 @@ export default class Signaling extends BaseSignaling {
|
|
|
86
86
|
sendSdp(participantId: ParticipantId, sdp: RTCSessionDescriptionInit, extraPayload?: Record<string, any>): Promise<SignalingMessage>;
|
|
87
87
|
acceptCall(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
88
88
|
changeMediaSettings(mediaSettings: MediaSettings): Promise<SignalingMessage>;
|
|
89
|
-
changeParticipantState(state:
|
|
89
|
+
changeParticipantState(state: ParticipantStateData, compositeUserId?: CompositeUserId): Promise<SignalingMessage>;
|
|
90
90
|
putHandsDown(): Promise<SignalingMessage>;
|
|
91
91
|
addParticipant(participantIds: CompositeUserId[], params?: AddParticipantParams): Promise<SignalingMessage>;
|
|
92
92
|
removeParticipant(participantId: CompositeUserId, ban?: boolean): Promise<SignalingMessage>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/calls-sdk",
|
|
3
|
-
"version": "2.8.6-dev.
|
|
3
|
+
"version": "2.8.6-dev.7a7707c0.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Library for video calls based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@vkontakte/calls-audio-effects": "1.2.8",
|
|
18
18
|
"@vkontakte/calls-video-effects": "2.2.3-beta.5",
|
|
19
|
-
"@vkontakte/calls-vmoji": "1.0.10-beta.
|
|
19
|
+
"@vkontakte/calls-vmoji": "1.0.10-beta.17",
|
|
20
20
|
"@vkontakte/libvpx": "2.0.9",
|
|
21
21
|
"bit-buffer": "0.2.5",
|
|
22
22
|
"messagepack": "1.1.12",
|
package/static/WebRTCUtils.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ declare namespace WebRTCUtils {
|
|
|
143
143
|
* Может ли браузер делать H264 приоритетным
|
|
144
144
|
*/
|
|
145
145
|
function canPreferH264(): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Некоторые браузеры (Firefox, Safari) некорректно поддерживают симулкаст
|
|
148
|
+
*/
|
|
149
|
+
function isSimulcastSupportedByBrowser(): boolean;
|
|
146
150
|
/**
|
|
147
151
|
* Имя операционной системы
|
|
148
152
|
*/
|
package/types/MovieShare.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export interface IAddMovieParams {
|
|
|
47
47
|
* MetaData ролика
|
|
48
48
|
*/
|
|
49
49
|
metadata?: IMovieMetaData;
|
|
50
|
+
/**
|
|
51
|
+
* Локаль пользователя, необходимо для корректного перевода, если ролик с дефолтным названием
|
|
52
|
+
*/
|
|
53
|
+
lang?: string;
|
|
50
54
|
}
|
|
51
55
|
export type ISharedMovieStateResponse = [
|
|
52
56
|
number,
|
package/types/Participant.d.ts
CHANGED
|
@@ -86,3 +86,12 @@ export interface Participant {
|
|
|
86
86
|
export interface IGetParticipantsParameters {
|
|
87
87
|
externalIds: ExternalId[];
|
|
88
88
|
}
|
|
89
|
+
export type ParticipantStateDataKey = 'hand' | 'drat';
|
|
90
|
+
export declare enum ParticipantStateDataValue {
|
|
91
|
+
OFF = "0",
|
|
92
|
+
ON = "1"
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Список состояний в виде ключ-значение. Максимальная длина ключей и значений - 5 символов. Пустые значения будут пропущены
|
|
96
|
+
*/
|
|
97
|
+
export type ParticipantStateData = Record<ParticipantStateDataKey, ParticipantStateDataValue>;
|