@vkontakte/calls-sdk 2.8.11-dev.fdf6f999.0 → 2.8.11

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.
@@ -19,7 +19,7 @@ import MediaModifiers from './MediaModifiers';
19
19
  import MediaSettings from './MediaSettings';
20
20
  import { ISharedMovieInfo, ISharedMovieState, ISharedMovieStoppedInfo } from './MovieShare';
21
21
  import MuteStates from './MuteStates';
22
- import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType } from './Participant';
22
+ import { CompositeUserId, OkUserId, ParticipantId, ParticipantListMarker as ParticipantParticipantListMarker, ParticipantListMarkers, ParticipantListType as ParticipantParticipantListType, ParticipantSessionState } from './Participant';
23
23
  import { MediaType, ParticipantStreamDescription } from './ParticipantStreamDescription';
24
24
  import { IRoomId } from './Room';
25
25
  import VideoSettings from './VideoSettings';
@@ -89,6 +89,7 @@ declare namespace SignalingMessage {
89
89
  state: Record<string, string>;
90
90
  stateUpdateTs: Record<string, number>;
91
91
  };
92
+ sessionState?: ParticipantSessionState;
92
93
  roles?: UserRole[];
93
94
  peerId?: PeerId;
94
95
  restricted?: boolean;
@@ -97,6 +98,7 @@ declare namespace SignalingMessage {
97
98
  markers?: ParticipantListMarkers;
98
99
  observedIds?: CompositeUserId[];
99
100
  movieShareInfos?: ISharedMovieInfo[];
101
+ onHold?: boolean;
100
102
  }
101
103
  export interface ParticipantListChunk extends Notification {
102
104
  participants: (Participant & Required<Pick<Participant, 'markers'>>)[];
@@ -323,6 +325,13 @@ declare namespace SignalingMessage {
323
325
  export interface SpeakerChanged extends Notification {
324
326
  speaker: ParticipantId;
325
327
  }
328
+ export interface SessionState extends Notification {
329
+ connected: boolean;
330
+ participantId: OkUserId;
331
+ participantType: UserType;
332
+ deviceIdx?: number;
333
+ markers?: ParticipantListMarkers;
334
+ }
326
335
  export interface OptionsChanged extends Notification {
327
336
  options: ConversationOption[];
328
337
  }
@@ -456,6 +465,10 @@ declare namespace SignalingMessage {
456
465
  export interface VideoSuspendSuggest extends Notification {
457
466
  bandwidth: number;
458
467
  }
468
+ export interface Hold extends Notification {
469
+ participantId: ParticipantId;
470
+ hold: boolean;
471
+ }
459
472
  export {};
460
473
  }
461
474
  export default SignalingMessage;
@@ -113,10 +113,6 @@ export interface StatRtp extends StatRtpOutboundVideo {
113
113
  * Идентификатор пользователя, связанный с этим потоком
114
114
  */
115
115
  userId?: string;
116
- /**
117
- * Идентификатор media track, связанный с этим RTP потоком
118
- */
119
- trackId?: string;
120
116
  /**
121
117
  * Пропускная способность в битах в секунду
122
118
  */
@@ -1,37 +0,0 @@
1
- import { ExternalParticipantId } from '../types/ExternalId';
2
- import type { MediaType } from '../types/ParticipantStreamDescription';
3
- export declare const enum VideoStreamDebugDirection {
4
- INBOUND = "inbound",
5
- OUTBOUND = "outbound"
6
- }
7
- export type VideoStreamDebugData = {
8
- mediaType: MediaType.CAMERA | MediaType.SCREEN;
9
- direction: VideoStreamDebugDirection;
10
- externalParticipantId: ExternalParticipantId;
11
- trackId?: string;
12
- mimeType?: string;
13
- width?: number;
14
- height?: number;
15
- frameRate?: number;
16
- bitrate?: number;
17
- packetsLost?: number;
18
- screenShareMethod?: string;
19
- layers?: VideoStreamDebugLayer[];
20
- };
21
- export type VideoStreamDebugLayer = {
22
- rid?: string;
23
- ssrc?: number;
24
- trackId?: string;
25
- mimeType?: string;
26
- width?: number;
27
- height?: number;
28
- frameRate?: number;
29
- bitrate?: number;
30
- packetsLost?: number;
31
- };
32
- declare namespace DebugVideoStats {
33
- function format(data: VideoStreamDebugData): string;
34
- function send(data: VideoStreamDebugData): void;
35
- function clear(externalParticipantId: ExternalParticipantId, mediaType: MediaType.CAMERA | MediaType.SCREEN): void;
36
- }
37
- export default DebugVideoStats;
@@ -1,5 +0,0 @@
1
- import { MediaType } from './ParticipantStreamDescription';
2
- export type VideoStreamDebugInfo = {
3
- mediaType: MediaType.CAMERA | MediaType.SCREEN;
4
- debugInfo: string;
5
- };