@vkontakte/calls-sdk 2.5.3-dev.9b91c9b.0 → 2.5.3-dev.dbb762f.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 +5 -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 +5 -2
- package/enums/SignalingNotification.d.ts +2 -1
- package/package.json +1 -1
- package/static/External.d.ts +31 -0
- package/static/Params.d.ts +18 -0
- package/types/MediaSettings.d.ts +1 -1
- package/types/MovieShare.d.ts +13 -0
- package/types/SignalingMessage.d.ts +4 -0
package/CallsSDK.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ import { ExternalId, ExternalIdType, ExternalParticipant, ExternalParticipantId,
|
|
|
38
38
|
import IceServer from './types/IceServer';
|
|
39
39
|
import MediaModifiers from './types/MediaModifiers';
|
|
40
40
|
import { IVideoDimentions, MediaSettings } from './types/MediaSettings';
|
|
41
|
+
import { IAddMovieParams } from './types/MovieShare';
|
|
41
42
|
import MuteStates from './types/MuteStates';
|
|
42
43
|
import { OkUserId, ParticipantStateMapped } from './types/Participant';
|
|
43
44
|
import ParticipantLayout, { Layout, StopStream } from './types/ParticipantLayout';
|
|
@@ -438,7 +439,7 @@ export declare function getStreamInfo(): Promise<{
|
|
|
438
439
|
*
|
|
439
440
|
* @param movieId
|
|
440
441
|
*/
|
|
441
|
-
export declare function addMovie(
|
|
442
|
+
export declare function addMovie(params: IAddMovieParams): Promise<{
|
|
442
443
|
movieId: string;
|
|
443
444
|
streamType: string;
|
|
444
445
|
}>;
|
|
@@ -447,8 +448,10 @@ export declare function addMovie(movieId: string): Promise<{
|
|
|
447
448
|
*
|
|
448
449
|
* @param movieId
|
|
449
450
|
* @param gain
|
|
451
|
+
* @param offset
|
|
452
|
+
* @param pause
|
|
450
453
|
*/
|
|
451
|
-
export declare function updateMovie(movieId: string, gain?: number, offset?:
|
|
454
|
+
export declare function updateMovie(movieId: string, gain?: number, offset?: number, pause?: boolean): Promise<void>;
|
|
452
455
|
/**
|
|
453
456
|
* Удалить видео/лайв из звонка
|
|
454
457
|
*
|
|
@@ -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 SignalingMessage from '../types/SignalingMessage';
|
|
@@ -54,8 +55,8 @@ export default abstract class BaseSignaling extends EventEmitter {
|
|
|
54
55
|
abstract updateDisplayLayout(layouts: {
|
|
55
56
|
[key: string]: string;
|
|
56
57
|
}): Promise<SignalingMessage | void>;
|
|
57
|
-
abstract addMovie(data:
|
|
58
|
-
abstract updateMovie(data:
|
|
58
|
+
abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
59
|
+
abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
|
|
59
60
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
60
61
|
abstract startStream(data: any): Promise<SignalingMessage>;
|
|
61
62
|
abstract stopStream(): Promise<SignalingMessage>;
|