@vkontakte/calls-sdk 2.8.2-beta.32 → 2.8.2-beta.33
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 +7 -2
- package/abstract/BaseSignaling.d.ts +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +1 -11
- package/constants/Rooms.d.ts +1 -0
- package/default/Signaling.d.ts +2 -1
- package/enums/SignalingCommandType.d.ts +1 -0
- package/package.json +1 -1
- package/types/SignalingMessage.d.ts +18 -0
- package/types/Streams.d.ts +3 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ 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
62
|
import { ApiExternal } from './default/ApiExternal';
|
|
@@ -505,6 +505,11 @@ export declare function startStream(isRecord?: boolean, name?: string | null, mo
|
|
|
505
505
|
* @param roomId
|
|
506
506
|
*/
|
|
507
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>;
|
|
508
513
|
/**
|
|
509
514
|
* Устанавливает роль участника в запись звонка
|
|
510
515
|
* Если хотя бы у одного участника звонка выставлена роль, то в записи звонка будут
|
|
@@ -668,5 +673,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
|
|
|
668
673
|
* Версия SDK
|
|
669
674
|
*/
|
|
670
675
|
export declare function version(): string;
|
|
671
|
-
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, };
|
|
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, };
|
|
672
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>;
|