@vkontakte/calls-sdk 2.6.2-dev.8c5f377.0 → 2.6.2-dev.974887b.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 +5 -2
- package/abstract/BaseSignaling.d.ts +3 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +2 -2
- 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/Signaling.d.ts +9 -2
- package/package.json +1 -1
- package/static/ApiTransport.d.ts +1 -1
- package/static/External.d.ts +8 -1
- package/static/Params.d.ts +16 -2
- package/static/Utils.d.ts +2 -0
- package/types/LayoutUtils.d.ts +5 -0
- package/types/ParticipantLayout.d.ts +7 -1
- package/types/SignalingMessage.d.ts +6 -0
- package/utils/MsgPackerBufferUtils.d.ts +31 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -266,9 +266,8 @@ export declare function removeParticipantInternal(uid: OkUserId, ban?: boolean):
|
|
|
266
266
|
*
|
|
267
267
|
* @param kind Тип устройства для изменения (камера/микрофон/динамик)
|
|
268
268
|
* @param deviceId ID устройства
|
|
269
|
-
* @param reloadDevice переподключить новые устройства (по-умалчанию, включена)
|
|
270
269
|
*/
|
|
271
|
-
export declare function changeDevice(kind: MediaDeviceKind, deviceId: string
|
|
270
|
+
export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): Promise<void>;
|
|
272
271
|
/**
|
|
273
272
|
* Включить/выключить захват экрана
|
|
274
273
|
*
|
|
@@ -520,5 +519,9 @@ export declare function getParticipants(parameters: IGetParticipantsParameters):
|
|
|
520
519
|
* @param recordIds Идентификаторы записей истории
|
|
521
520
|
*/
|
|
522
521
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
522
|
+
/**
|
|
523
|
+
* Версия SDK
|
|
524
|
+
*/
|
|
525
|
+
export declare function version(): string;
|
|
523
526
|
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, };
|
|
524
527
|
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, };
|
|
@@ -13,6 +13,7 @@ import MediaModifiers from '../types/MediaModifiers';
|
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
14
|
import MuteStates from '../types/MuteStates';
|
|
15
15
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
16
|
+
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
16
17
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
17
18
|
import SignalingMessage from '../types/SignalingMessage';
|
|
18
19
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
@@ -53,7 +54,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
53
54
|
[key: string]: number;
|
|
54
55
|
}): Promise<SignalingMessage | void>;
|
|
55
56
|
abstract updateDisplayLayout(layouts: {
|
|
56
|
-
[
|
|
57
|
+
[streamDesc: string]: ParticipantLayout | StopStream | RequestKeyFrame;
|
|
57
58
|
}): Promise<SignalingMessage | void>;
|
|
58
59
|
abstract addMovie(data: any): Promise<SignalingMessage>;
|
|
59
60
|
abstract updateMovie(data: any): Promise<SignalingMessage>;
|
|
@@ -78,6 +79,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
78
79
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
79
80
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
81
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
82
|
+
abstract useCommandDataChannel(status: boolean): void;
|
|
81
83
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
84
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
83
85
|
get ready(): boolean;
|