@vkontakte/calls-sdk 2.6.2-beta.20 → 2.6.2-beta.21

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
@@ -47,8 +47,10 @@ import ParticipantPriority from './types/ParticipantPriority';
47
47
  import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
48
48
  import SignalingMessage from './types/SignalingMessage';
49
49
  import { WaitingHallResponse } from './types/WaitingHall';
50
+ import { IFeedbackExternal } from './types/Feedback';
50
51
  import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IUpdateMovieData } from './types/MovieShare';
51
52
  import ConversationFeature from './enums/ConversationFeature';
53
+ import { IFeaturesPerRole } from './types/ConversationFeature';
52
54
  /**
53
55
  * Информация о текущем браузере
54
56
  */
@@ -278,6 +280,13 @@ export declare function changeDevice(kind: MediaDeviceKind, deviceId: string): P
278
280
  * @param state Включить или выключить
279
281
  */
280
282
  export declare function captureScreen(state: boolean): Promise<void>;
283
+ /**
284
+ * Включить/выключить захват экрана
285
+ *
286
+ * @param screenState Включить или выключить захват экрана.
287
+ * @param audioShareState Включить или выключить захват звука. Может быть использован только вместе с захватом экрана.
288
+ */
289
+ export declare function captureScreenAndAudio(screenState: boolean, audioShareState: boolean): Promise<void>;
281
290
  /**
282
291
  * Позволяет установить кастомный стрим для видео
283
292
  * например для стрима из canvas, с наложением изображений
@@ -519,6 +528,7 @@ export declare function getWaitingHall(pageMarker?: string | null, count?: numbe
519
528
  export declare function promoteParticipant(externalId: ExternalId, demote?: boolean): Promise<void>;
520
529
  export declare function getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<import("./types/ExternalId").ExternalParticipantListChunk>;
521
530
  export declare function getParticipants(parameters: IGetParticipantsParameters): Promise<ExternalParticipant[]>;
531
+ export declare function feedback(key: string): Promise<SignalingMessage>;
522
532
  export declare function enableFeatureForRoles(feature: ConversationFeature, roles: UserRole[]): Promise<void>;
523
533
  /**
524
534
  * Удаляет записи истории звонков
@@ -530,5 +540,5 @@ export declare function removeHistoryRecords(recordIds: number[]): Promise<void>
530
540
  * Версия SDK
531
541
  */
532
542
  export declare function version(): string;
533
- 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, IUpdateMovieData, };
534
- 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, };
543
+ 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, IUpdateMovieData, IFeaturesPerRole, };
544
+ 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, ConversationFeature, };
@@ -80,6 +80,7 @@ export default abstract class BaseSignaling extends EventEmitter {
80
80
  }): Promise<SignalingMessage>;
81
81
  abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
82
82
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
83
+ abstract feedback(key: string): Promise<SignalingMessage>;
83
84
  abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
84
85
  abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
85
86
  abstract useCommandDataChannel(status: boolean): void;