@vkontakte/calls-sdk 2.6.2-dev.9711e28.0 → 2.6.2-dev.e7984c3.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 +12 -4
- package/abstract/BaseSignaling.d.ts +4 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +7 -2
- package/default/Signaling.d.ts +5 -2
- package/enums/SignalingNotification.d.ts +5 -1
- package/package.json +1 -1
- package/static/External.d.ts +59 -0
- package/static/Params.d.ts +35 -1
- package/types/ExternalId.d.ts +2 -0
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +32 -0
- package/types/Participant.d.ts +2 -0
- package/types/SignalingMessage.d.ts +11 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ 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';
|
|
12
13
|
import Api from './default/Api';
|
|
13
14
|
import Signaling from './default/Signaling';
|
|
14
15
|
import CallDirection from './enums/CallDirection';
|
|
@@ -46,6 +47,7 @@ import ParticipantPriority from './types/ParticipantPriority';
|
|
|
46
47
|
import { MediaType, ParticipantStreamDescription } from './types/ParticipantStreamDescription';
|
|
47
48
|
import SignalingMessage from './types/SignalingMessage';
|
|
48
49
|
import { WaitingHallResponse } from './types/WaitingHall';
|
|
50
|
+
import { ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams } from './types/MovieShare';
|
|
49
51
|
/**
|
|
50
52
|
* Информация о текущем браузере
|
|
51
53
|
*/
|
|
@@ -447,7 +449,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
447
449
|
*
|
|
448
450
|
* @param movieId
|
|
449
451
|
*/
|
|
450
|
-
export declare function addMovie(
|
|
452
|
+
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
451
453
|
movieId: string;
|
|
452
454
|
streamType: string;
|
|
453
455
|
}>;
|
|
@@ -456,8 +458,10 @@ export declare function addMovie(movieId: string): Promise<{
|
|
|
456
458
|
*
|
|
457
459
|
* @param movieId
|
|
458
460
|
* @param gain
|
|
461
|
+
* @param offset
|
|
462
|
+
* @param pause
|
|
459
463
|
*/
|
|
460
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
464
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
461
465
|
/**
|
|
462
466
|
* Удалить видео/лайв из звонка
|
|
463
467
|
*
|
|
@@ -519,5 +523,9 @@ export declare function getParticipants(parameters: IGetParticipantsParameters):
|
|
|
519
523
|
* @param recordIds Идентификаторы записей истории
|
|
520
524
|
*/
|
|
521
525
|
export declare function removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
522
|
-
|
|
523
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Версия SDK
|
|
528
|
+
*/
|
|
529
|
+
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, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, };
|
|
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, TransportTopology, };
|
|
@@ -11,6 +11,7 @@ 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';
|
|
14
15
|
import MuteStates from '../types/MuteStates';
|
|
15
16
|
import { CompositeUserId, ParticipantId } from '../types/Participant';
|
|
16
17
|
import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
|
|
@@ -55,8 +56,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
55
56
|
abstract updateDisplayLayout(layouts: {
|
|
56
57
|
[key: string]: string;
|
|
57
58
|
}): Promise<SignalingMessage | void>;
|
|
58
|
-
abstract addMovie(data:
|
|
59
|
-
abstract updateMovie(data:
|
|
59
|
+
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
60
|
+
abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
|
|
60
61
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
61
62
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
62
63
|
abstract stopStream(): Promise<SignalingMessage>;
|
|
@@ -78,6 +79,7 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
78
79
|
abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
|
|
79
80
|
abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
|
|
80
81
|
abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
|
|
82
|
+
abstract useCommandDataChannel(status: boolean): void;
|
|
81
83
|
abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
|
|
82
84
|
abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
|
|
83
85
|
get ready(): boolean;
|