@vkontakte/calls-sdk 2.6.2-dev.ec4dca1.0 → 2.6.2-dev.f69c395.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 +2 -6
- package/abstract/BaseSignaling.d.ts +5 -4
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +3 -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 +11 -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 +3 -10
- package/utils/MsgPackerBufferUtils.d.ts +31 -0
- package/types/MovieShare.d.ts +0 -32
package/CallsSDK.d.ts
CHANGED
|
@@ -46,7 +46,6 @@ import ParticipantPriority from './types/ParticipantPriority';
|
|
|
46
46
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
47
47
|
import SignalingMessage from './types/SignalingMessage';
|
|
48
48
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
49
|
-
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams } from './types/MovieShare';
|
|
50
49
|
/**
|
|
51
50
|
* Информация о текущем браузере
|
|
52
51
|
*/
|
|
@@ -448,7 +447,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
448
447
|
*
|
|
449
448
|
* @param movieId
|
|
450
449
|
*/
|
|
451
|
-
export declare function addMovie(
|
|
450
|
+
export declare function addMovie(movieId: string): Promise<{
|
|
452
451
|
movieId: string;
|
|
453
452
|
streamType: string;
|
|
454
453
|
}>;
|
|
@@ -457,10 +456,8 @@ export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
|
457
456
|
*
|
|
458
457
|
* @param movieId
|
|
459
458
|
* @param gain
|
|
460
|
-
* @param offset
|
|
461
|
-
* @param pause
|
|
462
459
|
*/
|
|
463
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
460
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: string, pause?: boolean): Promise<void>;
|
|
464
461
|
/**
|
|
465
462
|
* Удалить видео/лайв из звонка
|
|
466
463
|
*
|
|
@@ -528,4 +525,3 @@ export declare function removeHistoryRecords(recordIds: number[]): Promise<void>
|
|
|
528
525
|
export declare function version(): string;
|
|
529
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, };
|
|
530
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, };
|
|
531
|
-
export type { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, };
|
|
@@ -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>;
|
|
@@ -79,6 +79,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
79
79
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
80
80
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
81
81
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
82
|
+
abstract useCommandDataChannel(status: boolean): void;
|
|
82
83
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
83
84
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
84
85
|
get ready(): boolean;
|