@vkontakte/calls-sdk 2.8.2-dev.6f783f3.0 → 2.8.2-dev.7d16b73.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 +11 -4
- package/abstract/BaseSignaling.d.ts +2 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioOutput.d.ts +8 -3
- package/classes/Conversation.d.ts +4 -7
- package/classes/MediaSource.d.ts +2 -2
- package/classes/ParticipantIdRegistry.d.ts +5 -0
- package/classes/ProducerCommandSerializationService.d.ts +2 -0
- package/classes/codec/IEncoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +1 -1
- package/classes/codec/Types.d.ts +1 -1
- package/classes/codec/WebCodecsEncoder.d.ts +1 -1
- package/classes/screenshare/PacketHistory.d.ts +1 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +2 -1
- package/classes/screenshare/ScreenCongestionControl.d.ts +6 -1
- package/classes/transport/Statistics.d.ts +19 -1
- package/constants/Rooms.d.ts +1 -0
- package/default/Api.d.ts +2 -1
- package/default/ApiExternal.d.ts +11 -0
- package/default/Signaling.d.ts +4 -5
- package/enums/SignalingCommandType.d.ts +1 -0
- package/enums/SignalingNotification.d.ts +2 -1
- package/package.json +2 -5
- package/static/ApiTransport.d.ts +3 -1
- package/static/AuthData.d.ts +6 -6
- package/static/External.d.ts +14 -0
- package/static/Params.d.ts +31 -6
- package/types/Params.d.ts +1 -0
- package/types/RequestAsr.d.ts +3 -0
- package/types/SignalingMessage.d.ts +18 -0
- package/types/Streams.d.ts +3 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ import MediaModifiers from './types/MediaModifiers';
|
|
|
47
47
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
48
48
|
import { IAddMovieParams, IMovieMetaData, IMoviePreview, IOnRemoteMovieData, ISharedMovieInfo, ISharedMovieState, ISharedMovieStateResponse, ISharedMovieStoppedInfo, IUpdateMovieData } from './types/MovieShare';
|
|
49
49
|
import MuteStates, { IMuteParticipantInternalParams, IMuteParticipantParams } from './types/MuteStates';
|
|
50
|
-
import { IGetParticipantsParameters, OkUserId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantStateMapped } from './types/Participant';
|
|
50
|
+
import { CompositeUserId, IGetParticipantsParameters, OkUserId, ParticipantId, ParticipantListMarker, ParticipantListMarkers, ParticipantListType, ParticipantStateMapped } from './types/Participant';
|
|
51
51
|
import ParticipantLayout, { Layout, RequestKeyFrame, StopStream } from './types/ParticipantLayout';
|
|
52
52
|
import { ParticipantListChunkParameters } from './types/ParticipantListChunk';
|
|
53
53
|
import ParticipantPriority from './types/ParticipantPriority';
|
|
@@ -56,9 +56,11 @@ import { IRoomId, Room, RoomParticipantUpdate, Rooms, RoomsUpdate } from './type
|
|
|
56
56
|
import { ScreenCaptureSettings } from './types/ScreenCaptureSettings';
|
|
57
57
|
import SignalingMessage from './types/SignalingMessage';
|
|
58
58
|
import { StatResult } from './types/Statistics';
|
|
59
|
-
import { IStartStreamData, IStopStreamData } from './types/Streams';
|
|
59
|
+
import { IStartStreamData, IStopStreamData, IPublishStreamData } from './types/Streams';
|
|
60
60
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
61
61
|
import { ArrayDequeue } from './utils/ArrayDequeue';
|
|
62
|
+
import { ApiExternal } from './default/ApiExternal';
|
|
63
|
+
import AuthData from './static/AuthData';
|
|
62
64
|
/**
|
|
63
65
|
* Информация о текущем браузере
|
|
64
66
|
*/
|
|
@@ -503,6 +505,11 @@ export declare function startStream(isRecord?: boolean, name?: string | null, mo
|
|
|
503
505
|
* @param roomId
|
|
504
506
|
*/
|
|
505
507
|
export declare function stopStream(roomId?: number | null): Promise<undefined>;
|
|
508
|
+
/**
|
|
509
|
+
* Опубликовать трансляцию звонка
|
|
510
|
+
* @param roomId
|
|
511
|
+
*/
|
|
512
|
+
export declare function publishStream(roomId?: number | null): Promise<undefined>;
|
|
506
513
|
/**
|
|
507
514
|
* Устанавливает роль участника в запись звонка
|
|
508
515
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -666,5 +673,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
666
673
|
* Версия SDK
|
|
667
674
|
*/
|
|
668
675
|
export declare function version(): string;
|
|
669
|
-
export type { AddParticipantParams, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
|
|
670
|
-
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, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, };
|
|
676
|
+
export type { AddParticipantParams, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, HangupReasonData, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, };
|
|
677
|
+
export { Api, AuthData, 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, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
|
|
@@ -19,7 +19,7 @@ import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
|
19
19
|
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
20
20
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
21
21
|
import SignalingMessage from '../types/SignalingMessage';
|
|
22
|
-
import { IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
22
|
+
import { IPublishStreamData, IRecordConfData, IStartStreamData, IStopStreamData } from '../types/Streams';
|
|
23
23
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
24
24
|
import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
|
|
25
25
|
/**
|
|
@@ -74,6 +74,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
74
74
|
abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
|
|
75
75
|
abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
|
|
76
76
|
abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
|
|
77
|
+
abstract publishStream(data: IPublishStreamData): Promise<SignalingMessage>;
|
|
77
78
|
abstract recordSetConf(conf: IRecordConfData): Promise<SignalingMessage>;
|
|
78
79
|
abstract getRecordStatus(): Promise<SignalingMessage>;
|
|
79
80
|
abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;
|
|
@@ -99,7 +100,6 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
99
100
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
100
101
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
101
102
|
abstract useCommandDataChannel(status: boolean): void;
|
|
102
|
-
abstract setAsrDataChannel(dataChannel: RTCDataChannel): void;
|
|
103
103
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
104
104
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
105
105
|
abstract startAsr(params: IAsrStartParams): Promise<SignalingMessage>;
|