@vkontakte/calls-sdk 2.8.5-dev.15448543.0 → 2.8.5-dev.16bee4a1.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 +23 -4
- package/abstract/BaseApi.d.ts +1 -0
- package/abstract/BaseSignaling.d.ts +8 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/AudioFix.d.ts +4 -0
- package/classes/AudioOutput.d.ts +3 -0
- package/classes/Conversation.d.ts +10 -14
- package/classes/HangupReason.d.ts +13 -0
- package/classes/MediaSource.d.ts +18 -5
- package/classes/VideoEffectsFpsLimiter.d.ts +23 -0
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/LibVPxDecoder.d.ts +1 -1
- package/classes/codec/LibVPxEncoder.d.ts +0 -3
- package/classes/codec/WebCodecsDecoder.d.ts +1 -1
- package/classes/stat/StatFirstMediaReceived.d.ts +6 -5
- package/classes/transport/DirectTransport.d.ts +5 -0
- package/default/Api.d.ts +1 -0
- package/default/Signaling.d.ts +1 -1
- package/enums/FatalError.d.ts +2 -1
- package/enums/HangupType.d.ts +2 -1
- package/package.json +4 -3
- package/static/ApiTransport.d.ts +1 -0
- package/static/ConversationDebugLogger.d.ts +13 -0
- package/static/External.d.ts +4 -2
- package/static/Params.d.ts +51 -24
- package/static/Utils.d.ts +2 -2
- package/static/WebRTCUtils.d.ts +4 -3
- package/types/Conversation.d.ts +2 -14
- package/types/GetLogUploadUrlParams.d.ts +6 -0
- package/types/GetLogUploadUrlResponse.d.ts +3 -0
- package/types/Params.d.ts +1 -1
- package/types/SignalingMessage.d.ts +5 -0
- package/types/VideoSettings.d.ts +1 -1
- package/utils/Conversation.d.ts +4 -0
- package/utils/DebugStorage.d.ts +6 -0
- package/utils/Media.d.ts +1 -2
- package/utils/NavigatorPermissions.d.ts +13 -0
package/types/Params.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type IApiEnv = 'AUTO' | 'PROD' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | string;
|
|
1
|
+
export type IApiEnv = 'AUTO' | 'PROD' | 'CALLS' | 'PROD_OK' | 'TEST' | 'VIDEOTEST' | 'CALLSTEST' | string;
|
|
@@ -6,6 +6,7 @@ import ConversationOption from '../enums/ConversationOption';
|
|
|
6
6
|
import FatalError from '../enums/FatalError';
|
|
7
7
|
import HangupType from '../enums/HangupType';
|
|
8
8
|
import MediaOption from '../enums/MediaOption';
|
|
9
|
+
import MuteState from '../enums/MuteState';
|
|
9
10
|
import ParticipantState from '../enums/ParticipantState';
|
|
10
11
|
import RoomsEventType from '../enums/RoomsEventType';
|
|
11
12
|
import SignalingCommandType from '../enums/SignalingCommandType';
|
|
@@ -332,6 +333,8 @@ declare namespace SignalingMessage {
|
|
|
332
333
|
mediaModifiers: MediaModifiers;
|
|
333
334
|
conversation: Conversation;
|
|
334
335
|
participants?: ParticipantListChunk;
|
|
336
|
+
muteState?: MuteState;
|
|
337
|
+
muteOptions?: MediaOption[];
|
|
335
338
|
}
|
|
336
339
|
export interface ChatRoomUpdated extends Notification {
|
|
337
340
|
eventType: ChatRoomEventType;
|
|
@@ -368,6 +371,8 @@ declare namespace SignalingMessage {
|
|
|
368
371
|
rooms: Room[];
|
|
369
372
|
roomId?: number;
|
|
370
373
|
};
|
|
374
|
+
muteState?: MuteState;
|
|
375
|
+
muteOptions?: MediaOption[];
|
|
371
376
|
}
|
|
372
377
|
export interface Feedback extends Notification {
|
|
373
378
|
feedback: IFeedback[];
|
package/types/VideoSettings.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type VideoSettings = {
|
|
|
19
19
|
* Настройка деградации - понижаем фпс или разрешение
|
|
20
20
|
* https://www.w3.org/TR/mst-content-hint/#dom-rtcdegradationpreference
|
|
21
21
|
*/
|
|
22
|
-
degradationPreference:
|
|
22
|
+
degradationPreference: RTCDegradationPreference;
|
|
23
23
|
/**
|
|
24
24
|
* Настройка временных слоев
|
|
25
25
|
* https://www.w3.org/TR/webrtc-svc/
|
package/utils/Conversation.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import MediaOption from '../enums/MediaOption';
|
|
2
2
|
import MuteState from '../enums/MuteState';
|
|
3
3
|
import MuteStates from '../types/MuteStates';
|
|
4
|
+
import SignalingMessage from '../types/SignalingMessage';
|
|
4
5
|
export declare const getMediaOptionsByMuteState: (muteStates: MuteStates, value: MuteState) => MediaOption[];
|
|
6
|
+
export declare function extractConnectionMuteStates(connection: SignalingMessage.Connection | SignalingMessage.PromoteParticipant): MuteStates | undefined;
|
|
7
|
+
export declare function filterReconnectedParticipantMuteStates(participant: SignalingMessage.Participant): MuteStates;
|
|
8
|
+
export declare function filterReconnectedConversationMuteStates(connection: SignalingMessage.Connection | SignalingMessage.PromoteParticipant, muteStates: MuteStates): MuteStates;
|
package/utils/DebugStorage.d.ts
CHANGED
package/utils/Media.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IVideoDimentions } from '../types/MediaSettings';
|
|
2
1
|
export declare const stopMediaStreamTrack: (track: MediaStreamTrack) => void;
|
|
3
2
|
export declare const stopMediaStreamTracks: (stream: MediaStream) => void;
|
|
4
3
|
export declare const stopMediaStreamVideoTracks: (stream: MediaStream) => void;
|
|
5
4
|
export declare const cloneVideoTrack: (stream: MediaStream) => MediaStreamTrack;
|
|
6
|
-
export declare function
|
|
5
|
+
export declare function setVideoConstraints(track: MediaStreamTrack, constraints: MediaTrackConstraints): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Device = 'camera' | 'microphone';
|
|
2
|
+
type PermissionStatusState = typeof PermissionStatus.prototype.state;
|
|
3
|
+
type EventListener = (name: Device, state: PermissionStatusState) => void;
|
|
4
|
+
export declare class NavigatorPermissions {
|
|
5
|
+
private _cameraPermissionStatus;
|
|
6
|
+
private _microphonePermissionStatus;
|
|
7
|
+
private _listener;
|
|
8
|
+
static isSupported(): boolean;
|
|
9
|
+
init(listener: EventListener): Promise<void>;
|
|
10
|
+
private handlePermissionChange;
|
|
11
|
+
getPermissionState(device: Device): PermissionState | null;
|
|
12
|
+
}
|
|
13
|
+
export {};
|