@vkontakte/calls-sdk 2.8.3-dev.fbe24f4.0 → 2.8.3
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 +4 -3
- package/abstract/BaseApi.d.ts +1 -0
- package/abstract/BaseSignaling.d.ts +1 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +3 -3
- package/classes/LocalVolumeDetector.d.ts +0 -1
- package/classes/MediaSource.d.ts +2 -2
- package/classes/VolumeDetector.d.ts +3 -2
- package/classes/transport/Transport.d.ts +3 -6
- package/default/Api.d.ts +2 -1
- package/default/Signaling.d.ts +1 -1
- package/package.json +3 -3
- package/static/Utils.d.ts +1 -2
- package/static/WebRTCUtils.d.ts +9 -0
- package/types/Participant.d.ts +1 -2
- package/types/PerfStatReporter.d.ts +2 -1
- package/types/SignalingMessage.d.ts +1 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CallsSDK
|
|
3
3
|
*/
|
|
4
|
-
import type { IEffect,
|
|
4
|
+
import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
|
|
5
5
|
import type * as Vmoji from '@vkontakte/calls-vmoji';
|
|
6
6
|
import BaseApi from './abstract/BaseApi';
|
|
7
7
|
import BaseLogger from './abstract/BaseLogger';
|
|
@@ -460,8 +460,9 @@ export declare function startConversation(payload?: string, requireAuthToJoin?:
|
|
|
460
460
|
* @param speakerIds Список внешних ID пользователей, которые будут выступать в роли спикеров
|
|
461
461
|
* @returns Токен комнаты
|
|
462
462
|
*/
|
|
463
|
-
export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, }: {
|
|
463
|
+
export declare function startAudienceConversation(payload: string | undefined, requireAuthToJoin: boolean | undefined, { onlyAdminCanShareMovie, audioOnly, }: {
|
|
464
464
|
onlyAdminCanShareMovie?: boolean | undefined;
|
|
465
|
+
audioOnly?: boolean | undefined;
|
|
465
466
|
} | undefined, speakerIds: ExternalUserId[]): Promise<string>;
|
|
466
467
|
/**
|
|
467
468
|
* Создать токен комнаты для подключения по ссылке к существующему звонку
|
|
@@ -596,7 +597,7 @@ export declare function debugMessage(type: DebugMessageType, ...args: any[]): vo
|
|
|
596
597
|
*
|
|
597
598
|
* @param effect
|
|
598
599
|
*/
|
|
599
|
-
export declare function changeVideoEffect(effect: IEffect
|
|
600
|
+
export declare function changeVideoEffect(effect: IEffect | null): Promise<void>;
|
|
600
601
|
/**
|
|
601
602
|
* Позволяет установить кастомный стрим для аудио
|
|
602
603
|
*
|
package/abstract/BaseApi.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export default abstract class BaseApi {
|
|
|
26
26
|
abstract createConversation(conversationId: string, payload?: string, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
27
27
|
onlyAdminCanShareMovie?: boolean;
|
|
28
28
|
audienceMode?: boolean;
|
|
29
|
+
audioOnly?: boolean;
|
|
29
30
|
}, speakerIds?: OkUserId[]): Promise<ConversationResponse>;
|
|
30
31
|
abstract startConversation(conversationId: string, ids?: OkUserId[], type?: CallType, isVideo?: boolean, payload?: string, joiningAllowed?: boolean, requireAuthToJoin?: boolean, createConversationParameters?: {
|
|
31
32
|
onlyAdminCanShareMovie?: boolean;
|
|
@@ -93,7 +93,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
93
93
|
}): Promise<SignalingMessage>;
|
|
94
94
|
abstract getWaitingHall(fromId: WaitingParticipantId | null, count?: number, backward?: boolean): Promise<SignalingMessage>;
|
|
95
95
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
96
|
-
abstract requestPromotion(
|
|
96
|
+
abstract requestPromotion(unrequest: boolean): Promise<SignalingMessage>;
|
|
97
97
|
abstract acceptPromotion(reject: boolean): Promise<SignalingMessage>;
|
|
98
98
|
abstract feedback(key: string): Promise<SignalingMessage>;
|
|
99
99
|
abstract getHandQueue(): Promise<SignalingMessage>;
|