@vkontakte/calls-sdk 2.6.2-dev.8c5f377.0 → 2.6.2-dev.8d97d80.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 +13 -6
- package/abstract/BaseSignaling.d.ts +6 -3
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +13 -5
- package/classes/ParticipantIdRegistry.d.ts +2 -0
- package/classes/ProducerCommandSerializationService.d.ts +17 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +1 -0
- package/classes/screenshare/Utils.d.ts +1 -0
- package/default/Api.d.ts +1 -0
- package/default/Api.test.d.ts +1 -0
- package/default/Signaling.d.ts +12 -4
- package/enums/ConversationOption.d.ts +2 -1
- package/enums/HangupType.d.ts +3 -1
- package/enums/SignalingNotification.d.ts +5 -1
- package/package.json +1 -1
- package/static/ApiTransport.d.ts +1 -1
- package/static/External.d.ts +68 -4
- package/static/Params.d.ts +66 -3
- package/static/Utils.d.ts +5 -1
- package/types/Conversation.d.ts +12 -0
- package/types/ConversationParams.d.ts +1 -0
- package/types/ExternalId.d.ts +2 -0
- package/types/LayoutUtils.d.ts +5 -0
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +42 -0
- package/types/Participant.d.ts +2 -0
- package/types/ParticipantLayout.d.ts +7 -1
- package/types/SignalingMessage.d.ts +16 -0
- package/utils/Conversation.d.ts +2 -0
- package/utils/MsgPackerBufferUtils.d.ts +31 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { ConversationData } from './classes/Conversation';
|
|
|
9
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
11
|
import { StatResult } from './classes/transport/Statistics';
|
|
12
|
+
import { TransportTopology } from './classes/transport/Transport';
|
|
12
13
|
import Api from './default/Api';
|
|
13
14
|
import Signaling from './default/Signaling';
|
|
14
15
|
import CallDirection from './enums/CallDirection';
|
|
@@ -46,6 +47,7 @@ import ParticipantPriority from './types/ParticipantPriority';
|
|
|
46
47
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
47
48
|
import SignalingMessage from './types/SignalingMessage';
|
|
48
49
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
50
|
+
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview } from './types/MovieShare';
|
|
49
51
|
/**
|
|
50
52
|
* Информация о текущем браузере
|
|
51
53
|
*/
|
|
@@ -266,9 +268,8 @@ export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean):
|
|
|
266
268
|
*
|
|
267
269
|
* @param kind Тип устройства для изменения (камера/микрофон/динамик)
|
|
268
270
|
* @param deviceId ID устройства
|
|
269
|
-
* @param reloadDevice переподключить новые устройства (по-умалчанию, включена)
|
|
270
271
|
*/
|
|
271
|
-
export declare function changeDevice(kind: MediaDeviceKind, deviceId: string
|
|
272
|
+
export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): Promise<void>;
|
|
272
273
|
/**
|
|
273
274
|
* Включить/выключить захват экрана
|
|
274
275
|
*
|
|
@@ -448,7 +449,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
448
449
|
*
|
|
449
450
|
* @param movieId
|
|
450
451
|
*/
|
|
451
|
-
export declare function addMovie(
|
|
452
|
+
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
452
453
|
movieId: string;
|
|
453
454
|
streamType: string;
|
|
454
455
|
}>;
|
|
@@ -457,8 +458,10 @@ export declare function addMovie(movieId: string): Promise<{
|
|
|
457
458
|
*
|
|
458
459
|
* @param movieId
|
|
459
460
|
* @param gain
|
|
461
|
+
* @param offset
|
|
462
|
+
* @param pause
|
|
460
463
|
*/
|
|
461
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
464
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
462
465
|
/**
|
|
463
466
|
* Удалить видео/лайв из звонка
|
|
464
467
|
*
|
|
@@ -520,5 +523,9 @@ export declare function getParticipants(parameters: IGetParticipantsParameters):
|
|
|
520
523
|
* @param recordIds Идентификаторы записей истории
|
|
521
524
|
*/
|
|
522
525
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
523
|
-
|
|
524
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Версия SDK
|
|
528
|
+
*/
|
|
529
|
+
export declare function version(): string;
|
|
530
|
+
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, IGetParticipantsParameters, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IVideoDimentions, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, };
|
|
531
|
+
export { Api, BaseApi, BaseLogger, BaseSignaling, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, Utils, TransportTopology, };
|
|
@@ -11,8 +11,10 @@ import { JSONObject } from '../static/Json';
|
|
|
11
11
|
import ConversationResponse from '../types/ConversationResponse';
|
|
12
12
|
import MediaModifiers from '../types/MediaModifiers';
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
|
+
import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
|
|
14
15
|
import MuteStates from '../types/MuteStates';
|
|
15
16
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
17
|
+
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
16
18
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
17
19
|
import SignalingMessage from '../types/SignalingMessage';
|
|
18
20
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
@@ -53,10 +55,10 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
53
55
|
[key: string]: number;
|
|
54
56
|
}): Promise<SignalingMessage | void>;
|
|
55
57
|
abstract updateDisplayLayout(layouts: {
|
|
56
|
-
[
|
|
58
|
+
[streamDesc: string]: ParticipantLayout | StopStream | RequestKeyFrame;
|
|
57
59
|
}): Promise<SignalingMessage | void>;
|
|
58
|
-
abstract addMovie(data:
|
|
59
|
-
abstract updateMovie(data:
|
|
60
|
+
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
61
|
+
abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
|
|
60
62
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
61
63
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
62
64
|
abstract stopStream(): Promise<SignalingMessage>;
|
|
@@ -78,6 +80,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
78
80
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
79
81
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
82
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
83
|
+
abstract useCommandDataChannel(status: boolean): void;
|
|
81
84
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
85
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
83
86
|
get ready(): boolean;
|