@vkontakte/calls-sdk 2.6.3-dev.11298d2.0 → 2.6.3-dev.2be8ef8.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 CHANGED
@@ -51,7 +51,7 @@ import SignalingMessage from './types/SignalingMessage';
51
51
  import { WaitingHallResponse } from './types/WaitingHall';
52
52
  import { IFeedbackExternal } from './types/Feedback';
53
53
  import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData } from './types/MovieShare';
54
- import { IStartStreamData } from './types/Streams';
54
+ import { IStartStreamData, IStopStreamData } from './types/Streams';
55
55
  import ConversationFeature from './enums/ConversationFeature';
56
56
  import { IFeaturesPerRole } from './types/ConversationFeature';
57
57
  import { ArrayDequeue } from './utils/ArrayDequeue';
@@ -292,7 +292,7 @@ export declare function captureScreen(state: boolean): Promise<void>;
292
292
  * @param screenState Включить или выключить захват экрана.
293
293
  * @param audioShareState Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
294
294
  */
295
- export declare function captureScreenAndAudio(screenState: boolean, audioShareState: boolean): Promise<void>;
295
+ export declare function captureScreenAndAudio(screenState: boolean, audioShareState?: boolean): Promise<void>;
296
296
  /**
297
297
  * Позволяет установить кастомный стрим для видео
298
298
  * например для стрима из canvas, с наложением изображений
@@ -472,7 +472,7 @@ export declare function getStreamInfo(): Promise<{
472
472
  * @param params
473
473
  */
474
474
  export declare function addMovie(params: IAddMovieParams): Promise<{
475
- movieId: string;
475
+ movieId: number;
476
476
  streamType: string;
477
477
  }>;
478
478
  /**
@@ -484,9 +484,9 @@ export declare function updateMovie(params: IUpdateMovieData): Promise<void>;
484
484
  /**
485
485
  * Удалить видео/лайв из звонка
486
486
  *
487
- * @param movieId
487
+ * @param movieId Id Ролика
488
488
  */
489
- export declare function removeMovie(movieId: string): Promise<void>;
489
+ export declare function removeMovie(movieId: number): Promise<void>;
490
490
  /**
491
491
  * Обновить сессионные залы
492
492
  * @param rooms id в случае обновления сессионного зала
@@ -588,5 +588,5 @@ export declare function requestAsr(request: boolean): Promise<void>;
588
588
  * Версия SDK
589
589
  */
590
590
  export declare function version(): string;
591
- 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, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, };
591
+ 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, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, };
592
592
  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, RoomsEventType, ConversationFeature, ArrayDequeue, };
@@ -18,7 +18,7 @@ import { CompositeUserId, ParticipantId } from '../types/Participant';
18
18
  import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
19
19
  import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
20
20
  import SignalingMessage from '../types/SignalingMessage';
21
- import { IStartStreamData } from '../types/Streams';
21
+ import { IStartStreamData, IStopStreamData } from '../types/Streams';
22
22
  import { WaitingParticipantId } from '../types/WaitingHall';
23
23
  import { SharingStatReport } from '../classes/screenshare/SharingStatReport';
24
24
  /**
@@ -69,9 +69,7 @@ export default abstract class BaseSignaling extends EventEmitter {
69
69
  abstract getRooms(withParticipants: boolean): Promise<SignalingMessage>;
70
70
  abstract removeRooms(roomIds: number[]): Promise<SignalingMessage>;
71
71
  abstract startStream(data: IStartStreamData): Promise<SignalingMessage>;
72
- abstract stopStream(data: {
73
- roomId: number | null;
74
- }): Promise<SignalingMessage>;
72
+ abstract stopStream(data: IStopStreamData): Promise<SignalingMessage>;
75
73
  abstract recordSetRole(participantId: ParticipantId, role: RecordRole | null, roomId: number | null): Promise<SignalingMessage>;
76
74
  abstract getRecordStatus(): Promise<SignalingMessage>;
77
75
  abstract switchTopology(topology: TransportTopology, force?: boolean): Promise<SignalingMessage>;