@vkontakte/calls-sdk 2.6.2-beta.0 → 2.6.2-dev.14b086c.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 +6 -2
- package/abstract/BaseSignaling.d.ts +3 -2
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +6 -2
- package/default/Signaling.d.ts +3 -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 +34 -0
- 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 +10 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ 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';
|
|
49
50
|
/**
|
|
50
51
|
* Информация о текущем браузере
|
|
51
52
|
*/
|
|
@@ -447,7 +448,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
447
448
|
*
|
|
448
449
|
* @param movieId
|
|
449
450
|
*/
|
|
450
|
-
export declare function addMovie(
|
|
451
|
+
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
451
452
|
movieId: string;
|
|
452
453
|
streamType: string;
|
|
453
454
|
}>;
|
|
@@ -456,8 +457,10 @@ export declare function addMovie(movieId: string): Promise<{
|
|
|
456
457
|
*
|
|
457
458
|
* @param movieId
|
|
458
459
|
* @param gain
|
|
460
|
+
* @param offset
|
|
461
|
+
* @param pause
|
|
459
462
|
*/
|
|
460
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
463
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
461
464
|
/**
|
|
462
465
|
* Удалить видео/лайв из звонка
|
|
463
466
|
*
|
|
@@ -525,3 +528,4 @@ export declare function removeHistoryRecords(recordIds: number[]): Promise<void>
|
|
|
525
528
|
export declare function version(): string;
|
|
526
529
|
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
530
|
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,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>;
|