@vkontakte/calls-sdk 2.6.2-dev.e7984c3.0 → 2.6.2-dev.ea88167.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 +4 -8
- package/abstract/BaseSignaling.d.ts +4 -4
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +4 -8
- package/classes/ParticipantIdRegistry.d.ts +2 -0
- package/classes/ProducerCommandSerializationService.d.ts +17 -0
- package/classes/screenshare/ScreenCaptureSender.d.ts +1 -0
- package/classes/screenshare/Utils.d.ts +1 -0
- package/default/Signaling.d.ts +9 -5
- package/enums/SignalingNotification.d.ts +1 -5
- package/package.json +1 -1
- package/static/ApiTransport.d.ts +1 -1
- package/static/External.d.ts +3 -60
- package/static/Params.d.ts +10 -35
- package/static/Utils.d.ts +4 -0
- package/types/Conversation.d.ts +12 -0
- package/types/ExternalId.d.ts +0 -2
- package/types/LayoutUtils.d.ts +5 -0
- package/types/MediaSettings.d.ts +1 -1
- package/types/Participant.d.ts +0 -2
- package/types/ParticipantLayout.d.ts +7 -1
- package/types/SignalingMessage.d.ts +2 -10
- package/utils/Conversation.d.ts +2 -0
- package/utils/MsgPackerBufferUtils.d.ts +31 -0
- package/types/MovieShare.d.ts +0 -32
package/CallsSDK.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { ConversationData } from './classes/Conversation';
|
|
|
9
9
|
import HangupReason, { HangupReasonData } from './classes/HangupReason';
|
|
10
10
|
import { MediaTrackKind } from './classes/MediaSource';
|
|
11
11
|
import { StatResult } from './classes/transport/Statistics';
|
|
12
|
-
import { TransportTopology } from './classes/transport/Transport';
|
|
13
12
|
import Api from './default/Api';
|
|
14
13
|
import Signaling from './default/Signaling';
|
|
15
14
|
import CallDirection from './enums/CallDirection';
|
|
@@ -47,7 +46,6 @@ import ParticipantPriority from './types/ParticipantPriority';
|
|
|
47
46
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
48
47
|
import SignalingMessage from './types/SignalingMessage';
|
|
49
48
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
50
|
-
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams } from './types/MovieShare';
|
|
51
49
|
/**
|
|
52
50
|
* Информация о текущем браузере
|
|
53
51
|
*/
|
|
@@ -449,7 +447,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
449
447
|
*
|
|
450
448
|
* @param movieId
|
|
451
449
|
*/
|
|
452
|
-
export declare function addMovie(
|
|
450
|
+
export declare function addMovie(movieId: string): Promise<{
|
|
453
451
|
movieId: string;
|
|
454
452
|
streamType: string;
|
|
455
453
|
}>;
|
|
@@ -458,10 +456,8 @@ export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
|
458
456
|
*
|
|
459
457
|
* @param movieId
|
|
460
458
|
* @param gain
|
|
461
|
-
* @param offset
|
|
462
|
-
* @param pause
|
|
463
459
|
*/
|
|
464
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
460
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: string, pause?: boolean): Promise<void>;
|
|
465
461
|
/**
|
|
466
462
|
* Удалить видео/лайв из звонка
|
|
467
463
|
*
|
|
@@ -527,5 +523,5 @@ export declare function removeHistoryRecords(recordIds: number[]): Promise<void>
|
|
|
527
523
|
* Версия SDK
|
|
528
524
|
*/
|
|
529
525
|
export declare function version(): string;
|
|
530
|
-
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,
|
|
531
|
-
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,
|
|
526
|
+
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, };
|
|
527
|
+
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, };
|
|
@@ -11,9 +11,9 @@ import { JSONObject } from '../static/Json';
|
|
|
11
11
|
import ConversationResponse from '../types/ConversationResponse';
|
|
12
12
|
import MediaModifiers from '../types/MediaModifiers';
|
|
13
13
|
import MediaSettings from '../types/MediaSettings';
|
|
14
|
-
import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
|
|
15
14
|
import MuteStates from '../types/MuteStates';
|
|
16
15
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
16
|
+
import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
|
|
17
17
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
18
18
|
import SignalingMessage from '../types/SignalingMessage';
|
|
19
19
|
import { WaitingParticipantId } from '../types/WaitingHall';
|
|
@@ -54,10 +54,10 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
54
54
|
[key: string]: number;
|
|
55
55
|
}): Promise<SignalingMessage | void>;
|
|
56
56
|
abstract updateDisplayLayout(layouts: {
|
|
57
|
-
[
|
|
57
|
+
[streamDesc: string]: ParticipantLayout | StopStream | RequestKeyFrame;
|
|
58
58
|
}): Promise<SignalingMessage | void>;
|
|
59
|
-
abstract addMovie(data:
|
|
60
|
-
abstract updateMovie(data:
|
|
59
|
+
abstract addMovie(data: any): Promise<SignalingMessage>;
|
|
60
|
+
abstract updateMovie(data: any): Promise<SignalingMessage>;
|
|
61
61
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
62
62
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
63
63
|
abstract stopStream(): Promise<SignalingMessage>;
|