@vkontakte/calls-sdk 2.5.3-dev.d006735.0 → 2.5.3-dev.fe8ad1c.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 +3 -2
- package/abstract/BaseSignaling.d.ts +2 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +3 -2
- package/classes/SpeakerDetector.d.ts +4 -5
- package/classes/VolumesDetector.d.ts +1 -1
- package/classes/codec/IDecoder.d.ts +1 -1
- package/classes/codec/WebCodecsDecoder.d.ts +1 -1
- package/classes/screenshare/BaseRenderer.d.ts +8 -0
- package/classes/screenshare/CanvasRenderer.d.ts +16 -0
- package/classes/screenshare/StreamBuilder.d.ts +1 -9
- package/classes/screenshare/TrackGeneratorRenderer.d.ts +10 -0
- package/classes/transport/Transport.d.ts +0 -2
- package/enums/CallDirection.d.ts +1 -1
- package/enums/MuteState.d.ts +1 -1
- package/enums/ParticipantState.d.ts +1 -1
- package/enums/SignalingNotification.d.ts +3 -2
- package/enums/UserType.d.ts +1 -1
- package/package.json +1 -2
- package/static/External.d.ts +31 -3
- package/static/Params.d.ts +33 -5
- package/static/Utils.d.ts +1 -9
- package/types/ConversationParams.d.ts +4 -0
- package/types/ExternalId.d.ts +5 -0
- package/types/MovieShare.d.ts +16 -0
- package/types/Participant.d.ts +1 -0
- package/types/SignalingMessage.d.ts +13 -1
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';
|
|
@@ -406,7 +407,7 @@ export declare function removeJoinLink(): Promise<void>;
|
|
|
406
407
|
*/
|
|
407
408
|
export declare function getAnonymTokenByLink(joinLink: string, username?: string): Promise<string>;
|
|
408
409
|
/**
|
|
409
|
-
* Устанавливает громкость звука
|
|
410
|
+
* Устанавливает громкость звука собеседников
|
|
410
411
|
* @param volume Уровень громкости [0..1]
|
|
411
412
|
*/
|
|
412
413
|
export declare function setVolume(volume: number): void;
|
|
@@ -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
|
}>;
|
|
@@ -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 } 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,7 +55,7 @@ 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 addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
|
|
58
59
|
abstract updateMovie(data: any): Promise<SignalingMessage>;
|
|
59
60
|
abstract removeMovie(data: any): Promise<SignalingMessage>;
|
|
60
61
|
abstract startStream(data: any): Promise<SignalingMessage>;
|