@xylink/xy-rtc-sdk 4.0.0 → 4.0.2-beta.3

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.
Files changed (168) hide show
  1. package/{README.MD → README.md} +1 -1
  2. package/action/ability.d.ts +151 -0
  3. package/action/api.d.ts +252 -0
  4. package/action/auth.d.ts +134 -0
  5. package/action/base.d.ts +13 -0
  6. package/action/config.d.ts +63 -0
  7. package/action/control.d.ts +101 -0
  8. package/action/enterprise.d.ts +66 -0
  9. package/{lib/tools/httpClient.d.ts → action/http.d.ts} +19 -11
  10. package/action/index.d.ts +92 -0
  11. package/action/index.type.d.ts +30 -0
  12. package/action/log.d.ts +17 -0
  13. package/action/meeting.d.ts +107 -0
  14. package/{lib/enum → enum}/client.d.ts +1 -6
  15. package/{lib/enum → enum}/constraints.d.ts +1 -6
  16. package/{lib/enum → enum}/device.d.ts +6 -0
  17. package/{lib/enum/errorCode.d.ts → enum/errorCode/common.d.ts} +1 -22
  18. package/enum/errorCode/index.d.ts +6 -0
  19. package/enum/errorCode/server.d.ts +10 -0
  20. package/enum/errorCode/signal.d.ts +15 -0
  21. package/{lib/enum → enum}/index.d.ts +11 -8
  22. package/enum/meeting.d.ts +15 -0
  23. package/{lib/enum → enum}/polling.d.ts +1 -0
  24. package/feature/artboard/index.d.ts +139 -0
  25. package/feature/artboard/index.type.d.ts +264 -0
  26. package/{lib/feature → feature}/customMessage/index.d.ts +3 -8
  27. package/{lib/feature → feature}/edu/index.d.ts +2 -1
  28. package/{lib/feature → feature}/edu/index.type.d.ts +1 -0
  29. package/feature/im/index.d.ts +89 -0
  30. package/feature/im/index.type.d.ts +30 -0
  31. package/feature/index.d.ts +29 -0
  32. package/feature/query/index.d.ts +36 -0
  33. package/feature/query/index.type.d.ts +61 -0
  34. package/{lib/feature → feature}/speaker/index.d.ts +5 -10
  35. package/{lib/feature → feature}/speaker/index.type.d.ts +1 -0
  36. package/{lib/index.d.ts → index.d.ts} +19 -21
  37. package/{lib/interface → interface}/clientInterface.type.d.ts +24 -11
  38. package/{lib/interface → interface}/contentTrackInterface.type.d.ts +1 -6
  39. package/{lib/interface → interface}/event.type.d.ts +60 -1
  40. package/{lib/interface → interface}/videoAudioTrackInterface.type.d.ts +2 -7
  41. package/{lib/main → main}/ability/const.d.ts +1 -0
  42. package/{lib/main → main}/ability/index.d.ts +5 -10
  43. package/main/auth/index.d.ts +160 -0
  44. package/main/auth/index.type.d.ts +63 -0
  45. package/main/client/clientBase.d.ts +60 -0
  46. package/main/client/clientState.d.ts +36 -0
  47. package/{lib/main/client.d.ts → main/client/index.d.ts} +253 -79
  48. package/main/client/index.type.d.ts +42 -0
  49. package/{lib/main → main}/device/index.d.ts +5 -15
  50. package/{lib/tools → main/helper}/i18n.d.ts +2 -1
  51. package/{lib/main → main}/helper/index.d.ts +9 -7
  52. package/{lib/main → main}/layout/index.d.ts +7 -16
  53. package/{lib/main → main}/layout/index.type.d.ts +10 -9
  54. package/{lib/main → main}/layout/polling.d.ts +3 -11
  55. package/{lib/main → main}/layout/state.d.ts +4 -10
  56. package/{lib/tools → main/layout}/template/index.d.ts +25 -7
  57. package/{lib/main/layout/template.d.ts → main/layout/template/manager.d.ts} +2 -1
  58. package/main/layout/template/mobile.d.ts +4 -0
  59. package/main/layout/template/polling.d.ts +3 -0
  60. package/{lib/main → main}/media/index.d.ts +13 -11
  61. package/{lib/main → main}/media/index.type.d.ts +1 -0
  62. package/{lib/main → main}/meeting/control.d.ts +20 -1
  63. package/{lib/main → main}/meeting/control.type.d.ts +1 -0
  64. package/{lib/main → main}/meeting/index.d.ts +39 -32
  65. package/main/meeting/index.type.d.ts +43 -0
  66. package/{lib/main → main}/meeting/verify.d.ts +2 -7
  67. package/{lib/main/peer.d.ts → main/peer/index.d.ts} +30 -25
  68. package/main/peer/index.type.d.ts +10 -0
  69. package/{lib/main → main}/plugin/index.d.ts +2 -7
  70. package/{lib/main → main}/quality/index.d.ts +1 -6
  71. package/{lib/main → main}/quality/quality.worker.d.ts +1 -4
  72. package/{lib/main → main}/quality/report.d.ts +2 -1
  73. package/{lib/main → main}/render/index.d.ts +4 -9
  74. package/{lib/main → main}/render/index.type.d.ts +2 -7
  75. package/{lib/main → main}/render/videoManager.d.ts +2 -7
  76. package/{lib/main → main}/roster/index.d.ts +9 -9
  77. package/{lib/main → main}/server/index.d.ts +73 -4
  78. package/main/server/index.type.d.ts +53 -0
  79. package/{lib/main → main}/signal/index.d.ts +2 -1
  80. package/{lib/main → main}/socket/index.d.ts +6 -12
  81. package/{lib/main → main}/stream/index.d.ts +17 -21
  82. package/{lib/main → main}/track/baseTrack.d.ts +6 -14
  83. package/{lib/main → main}/track/contentTrack.d.ts +4 -12
  84. package/main/track/customContentTrack.d.ts +10 -0
  85. package/main/track/customVideoAudioTrack.d.ts +10 -0
  86. package/{lib/main → main}/track/helper.d.ts +13 -1
  87. package/{lib/main → main}/track/videoAudioCapture.d.ts +2 -10
  88. package/{lib/main → main}/track/videoAudioTrack.d.ts +13 -15
  89. package/{lib/main → main}/vom/index.d.ts +2 -7
  90. package/package.json +26 -111
  91. package/{lib/tools/analyser.d.ts → tools/analyser/index.d.ts} +2 -9
  92. package/{lib/tools/analyserManager.d.ts → tools/analyser/manager.d.ts} +4 -13
  93. package/{lib/tools → tools}/config.d.ts +3 -10
  94. package/tools/data/list.d.ts +87 -0
  95. package/tools/data/map.d.ts +17 -0
  96. package/{lib/tools/detectBrowser/index.d.ts → tools/detector/browser.d.ts} +3 -3
  97. package/{lib/tools/detectTool → tools/detector}/index.d.ts +3 -7
  98. package/{lib/tools/detectStream/index.d.ts → tools/detector/stream.d.ts} +2 -9
  99. package/{lib/tools → tools}/emitter.d.ts +9 -3
  100. package/tools/frame/index.d.ts +36 -0
  101. package/tools/frame/index.type.d.ts +1 -0
  102. package/tools/index.d.ts +72 -0
  103. package/{lib/tools/dbManager.d.ts → tools/log/db.d.ts} +8 -14
  104. package/{lib/tools → tools}/log/logger.d.ts +6 -9
  105. package/tools/log/logger.worker.d.ts +10 -0
  106. package/{lib/tools → tools}/log/loggerManager.d.ts +3 -3
  107. package/tools/log/utils.d.ts +6 -0
  108. package/{lib/tools → tools}/pressure/index.d.ts +2 -9
  109. package/{lib/tools/promiseQueue.d.ts → tools/queue/async.d.ts} +3 -9
  110. package/tools/queue/queue.type.d.ts +10 -0
  111. package/{lib/tools/queue.d.ts → tools/queue/sync.d.ts} +3 -9
  112. package/{lib/tools → tools}/resize.d.ts +3 -4
  113. package/{lib/tools/snapshot.d.ts → tools/snapshot/index.d.ts} +3 -11
  114. package/tools/snapshot/index.type.d.ts +38 -0
  115. package/{lib/tools → tools/socket}/socket.d.ts +6 -10
  116. package/tools/socket/socketManager.d.ts +32 -0
  117. package/tools/store.d.ts +47 -0
  118. package/tools/utils.d.ts +162 -0
  119. package/{lib/tools → tools}/verify.d.ts +1 -1
  120. package/tools/window.d.ts +31 -0
  121. package/{lib/type → type}/ability.d.ts +3 -1
  122. package/{lib/type → type}/analyser.d.ts +1 -8
  123. package/{lib/type → type}/auth.d.ts +34 -0
  124. package/{lib/type → type}/base.d.ts +43 -11
  125. package/{lib/type → type}/capture.d.ts +1 -0
  126. package/{lib/type → type}/client.d.ts +65 -70
  127. package/{lib/type → type}/index.d.ts +5 -3
  128. package/{lib/type → type}/layout.d.ts +15 -1
  129. package/{lib/type → type}/logger.d.ts +1 -6
  130. package/{lib/type → type}/meeting.d.ts +105 -15
  131. package/{lib/type → type}/quality.d.ts +2 -7
  132. package/{lib/type → type}/stream.d.ts +4 -5
  133. package/{lib/type → type}/track.d.ts +1 -9
  134. package/xyrtc.js +23212 -0
  135. package/lib/action/index.d.ts +0 -415
  136. package/lib/enum/meeting.d.ts +0 -4
  137. package/lib/feature/index.d.ts +0 -3
  138. package/lib/main/auth/index.d.ts +0 -101
  139. package/lib/main/clientBase.d.ts +0 -40
  140. package/lib/main/clientState.d.ts +0 -56
  141. package/lib/main/server/index.type.d.ts +0 -21
  142. package/lib/main/track/customContentTrack.d.ts +0 -18
  143. package/lib/main/track/customVideoAudioTrack.d.ts +0 -18
  144. package/lib/tools/enum.d.ts +0 -6
  145. package/lib/tools/index.d.ts +0 -8
  146. package/lib/tools/log/logger.worker.d.ts +0 -13
  147. package/lib/tools/regex.d.ts +0 -4
  148. package/lib/tools/store.d.ts +0 -15
  149. package/lib/tools/template/mobile.d.ts +0 -9
  150. package/lib/tools/template/polling.d.ts +0 -8
  151. package/lib/tools/utils.d.ts +0 -97
  152. package/lib/xyrtc.cjs.js +0 -1
  153. package/lib/xyrtc.umd.js +0 -1
  154. /package/{lib/enum → enum}/analyser.d.ts +0 -0
  155. /package/{lib/enum → enum}/i18n.d.ts +0 -0
  156. /package/{lib/interface → interface}/baseModule.type.d.ts +0 -0
  157. /package/{lib/main → main}/device/index.type.d.ts +0 -0
  158. /package/{lib/main → main}/helper/index.type.d.ts +0 -0
  159. /package/{lib/main → main}/meeting/verify.type.d.ts +0 -0
  160. /package/{lib/main → main}/render/videoManager.type.d.ts +0 -0
  161. /package/{lib/main → main}/vom/index.type.d.ts +0 -0
  162. /package/{lib/tools/detectTool → tools/detector}/index.type.d.ts +0 -0
  163. /package/{lib/tools/detectStream/index.type.d.ts → tools/detector/stream.type.d.ts} +0 -0
  164. /package/{lib/tools → tools}/pressure/index.type.d.ts +0 -0
  165. /package/{lib/type → type}/action.d.ts +0 -0
  166. /package/{lib/type → type}/peer.d.ts +0 -0
  167. /package/{lib/type → type}/polling.d.ts +0 -0
  168. /package/{lib/type → type}/socket.d.ts +0 -0
@@ -1,18 +1,9 @@
1
- /**
2
- * XYLink WebRTC Layout Manager Lib
3
- *
4
- * @summary management custom layout list data
5
- * @author jinghui-Luo
6
- * @email luojinghui424@gmail.com
7
- *
8
- * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2024-06-18 11:10:00
10
- */
11
- import { ILayout, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, IMode, LayoutOrientationType, LayoutConfig, PollingState, FocusViewConfig, LocalViewParams } from '../../type/index';
12
- import Client from '../client';
13
- import Polling from './polling';
14
- import Logger from '../../tools/log/logger';
15
1
  import { XYLayoutManagerState } from './state';
2
+ import { default as Logger } from '../../tools/log/logger';
3
+ import { default as Polling } from './polling';
4
+ import { default as Client } from '../client';
5
+ import { ILayout, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, IMode, LayoutOrientationType, LayoutConfig, PollingState, FocusViewConfig, LocalViewParams } from '../../type/index';
6
+
16
7
  export default class LayoutManager {
17
8
  logger: Logger;
18
9
  client: Client;
@@ -57,7 +48,7 @@ export default class LayoutManager {
57
48
  getSelfRoster(): IRoster;
58
49
  getScreenInfo(): IScreenInfo;
59
50
  getForceFullScreenId(): string;
60
- getTemplateMode(): TemplateMode | import("../../type/index").ContentTemplateMode;
51
+ getTemplateMode(): TemplateMode | import('../../type/index').ContentTemplateMode;
61
52
  getConfInfo(): IConfInfo;
62
53
  getInternalsLayout(): IOutputCustomLayout;
63
54
  getLocalShareState(): boolean;
@@ -262,7 +253,7 @@ export default class LayoutManager {
262
253
  /**
263
254
  * 计算Layout Container的容器信息
264
255
  */
265
- calculateScreenInfo(): this;
256
+ calculateScreenInfo(): false | this;
266
257
  /**
267
258
  * 计算Layout Container的容器信息
268
259
  *
@@ -1,11 +1,7 @@
1
- /**
2
- * XYWebRTC Layout Type Defined
3
- *
4
- * Created at : 2024-06-04 16:04:55
5
- * Last modified : 2024-06-04 16:47:00
6
- */
7
- import { XYLayoutState } from '../render/videoManager.type';
8
1
  import { AutoState } from '../../type/polling';
2
+ import { Gap } from '../../type/layout';
3
+ import { XYLayoutState } from '../render/videoManager.type';
4
+
9
5
  /**
10
6
  * 设备类型
11
7
  *
@@ -99,14 +95,15 @@ export interface ILayoutRoster {
99
95
  * @property { string } displayName - 参会者名称
100
96
  * @property { number } mediagroupid - 参会者画面类型,0:people画面,1:共享内容画面
101
97
  * @property { number } participantId - 参会者人员临时ID,迁会之后此ID会发生变化
102
- * @property { boolean } audioTxMute - 参会者麦克风状态,true:开启,false:关闭
103
- * @property { boolean } videoTxMute - 参会者摄像头状态,true:开启,false:关闭
98
+ * @property { boolean } audioTxMute - 参会者麦克风状态,true:关闭麦克风,false:开启麦克风
99
+ * @property { boolean } videoTxMute - 参会者摄像头状态,true:关闭摄像头,false:开启摄像头
104
100
  * @property { boolean } isForceFullScreen - 参会者是否是主画面
105
101
  * @property { boolean } isFocusScreen - 参会者是否是焦点画面
106
102
  * @property { number } videoMuteReason - 视频关闭原因
107
103
  * @property { boolean } isContent - 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
108
104
  * @property { boolean } isActiveSpeaker - 参会者是否是语音激励,即当前会中说话声音最大的一个人
109
105
  * @property { boolean } isLocal - 是否是Local设备
106
+ * @property { string } hiddenReason - 可选,是否是会控隐藏画面模式,默认是无此属性,当有内容时,代表隐藏这个画面
110
107
  * @property { boolean } audioRxMute - ignore
111
108
  * @property { boolean } videoRxMute - ignore
112
109
  * @property { boolean } onHold - ignore
@@ -133,6 +130,7 @@ export interface IRoster extends Partial<ILayoutRoster> {
133
130
  isContent: boolean;
134
131
  isActiveSpeaker: boolean;
135
132
  isLocal?: boolean;
133
+ hiddenReason?: string;
136
134
  }
137
135
  /**
138
136
  * 参会者布局详细数据
@@ -173,6 +171,7 @@ export interface ILayout {
173
171
  resolution?: number;
174
172
  quality?: number;
175
173
  deal?: boolean;
174
+ gap?: Gap[];
176
175
  }
177
176
  /**
178
177
  * Layout成员布局位置
@@ -271,6 +270,7 @@ export interface LayoutAvatar {
271
270
  * @property { number } zIndex - 层级
272
271
  * @property { Record<string, string | number> } customStyle - 自定义样式
273
272
  * @property { boolean } isMain - 是否是大画面
273
+ * @property { boolean } enableBorder - 是否开启边框
274
274
  */
275
275
  export interface ExternalTemplateConfig {
276
276
  id?: string;
@@ -279,4 +279,5 @@ export interface ExternalTemplateConfig {
279
279
  zIndex?: number;
280
280
  customStyle?: Record<string, string | number>;
281
281
  isMain?: boolean;
282
+ enableBorder?: boolean;
282
283
  }
@@ -1,15 +1,7 @@
1
- /**
2
- * Polling Layout Lib
3
- *
4
- * @summary mix auo polling layout function
5
- * @author JingHui Luo <luojinghui424@gmail.com>
6
- *
7
- * Created at : 2024-02-26 14:47:53
8
- * Last modified : 2024-06-18 16:26:25
9
- */
10
- import LayoutManager from './index';
1
+ import { default as Client } from '../client';
11
2
  import { ICustomizedLayout, ILayout, IRoster, PollingState } from '../../type/index';
12
- import Client from '../client';
3
+ import { default as LayoutManager } from './index';
4
+
13
5
  export default class Polling {
14
6
  pollingMessage: ICustomizedLayout | null;
15
7
  private pollingIntervalTimer;
@@ -1,14 +1,8 @@
1
- /**
2
- * 管控Layout Manager状态和配置数据
3
- * 提供set、get、update功能
4
- *
5
- * Created at : 2024-06-18 12:04:27
6
- * Last modified : 2024-06-18 15:33:22
7
- */
8
- import { XYBaseModule } from '../../interface/baseModule.type';
9
- import LayoutManager from './index';
10
- import Client from '../client';
11
1
  import { ContentTemplateMode, LayoutConfig, TemplateMode } from '../../type/index';
2
+ import { default as Client } from '../client';
3
+ import { default as LayoutManager } from './index';
4
+ import { XYBaseModule } from '../../interface/baseModule.type';
5
+
12
6
  export declare class XYLayoutManagerState implements XYBaseModule {
13
7
  private client;
14
8
  private logger;
@@ -1,10 +1,5 @@
1
- /**
2
- * Meeting layout init template data
3
- *
4
- * @authors Luo-jinghui (luojinghui424@gmail.com)
5
- * @date 2019-10-24 20:41:38
6
- */
7
- import { ITemplate, TemplateType, VideoQuality, StreamResolutionLevel, TemplateInfos } from '../../type/index';
1
+ import { ITemplate, TemplateType, VideoQuality, StreamResolutionLevel, TemplateInfos, Gap } from '../../../type/index';
2
+
8
3
  export * from './mobile';
9
4
  export declare const RATE = 0.5625;
10
5
  export declare const HIDE_POSITION: number[];
@@ -29,6 +24,7 @@ export declare const SPEAKER_TEMPLATE: {
29
24
  };
30
25
  type: TemplateType;
31
26
  quality: VideoQuality;
27
+ gap: Gap[];
32
28
  } | {
33
29
  position: number[];
34
30
  resolution: {
@@ -38,6 +34,7 @@ export declare const SPEAKER_TEMPLATE: {
38
34
  };
39
35
  type: TemplateType;
40
36
  quality: VideoQuality;
37
+ gap: Gap[];
41
38
  })[];
42
39
  '3-1': ({
43
40
  position: number[];
@@ -48,6 +45,7 @@ export declare const SPEAKER_TEMPLATE: {
48
45
  };
49
46
  type: TemplateType;
50
47
  quality: VideoQuality;
48
+ gap: Gap[];
51
49
  } | {
52
50
  position: number[];
53
51
  resolution: {
@@ -57,6 +55,7 @@ export declare const SPEAKER_TEMPLATE: {
57
55
  };
58
56
  type: TemplateType;
59
57
  quality: VideoQuality;
58
+ gap: Gap[];
60
59
  })[];
61
60
  '4-1': ({
62
61
  position: number[];
@@ -67,6 +66,7 @@ export declare const SPEAKER_TEMPLATE: {
67
66
  };
68
67
  type: TemplateType;
69
68
  quality: VideoQuality;
69
+ gap: Gap[];
70
70
  } | {
71
71
  position: number[];
72
72
  resolution: {
@@ -76,6 +76,7 @@ export declare const SPEAKER_TEMPLATE: {
76
76
  };
77
77
  type: TemplateType;
78
78
  quality: VideoQuality;
79
+ gap: Gap[];
79
80
  })[];
80
81
  '5-1': ({
81
82
  position: number[];
@@ -86,6 +87,7 @@ export declare const SPEAKER_TEMPLATE: {
86
87
  };
87
88
  type: TemplateType;
88
89
  quality: VideoQuality;
90
+ gap: Gap[];
89
91
  } | {
90
92
  position: number[];
91
93
  resolution: {
@@ -95,6 +97,7 @@ export declare const SPEAKER_TEMPLATE: {
95
97
  };
96
98
  type: TemplateType;
97
99
  quality: VideoQuality;
100
+ gap: Gap[];
98
101
  })[];
99
102
  '6-1': ({
100
103
  position: number[];
@@ -105,6 +108,7 @@ export declare const SPEAKER_TEMPLATE: {
105
108
  };
106
109
  type: TemplateType;
107
110
  quality: VideoQuality;
111
+ gap: Gap[];
108
112
  } | {
109
113
  position: number[];
110
114
  resolution: {
@@ -114,6 +118,7 @@ export declare const SPEAKER_TEMPLATE: {
114
118
  };
115
119
  type: TemplateType;
116
120
  quality: VideoQuality;
121
+ gap: Gap[];
117
122
  })[];
118
123
  '7-1': ({
119
124
  position: number[];
@@ -124,6 +129,7 @@ export declare const SPEAKER_TEMPLATE: {
124
129
  };
125
130
  type: TemplateType;
126
131
  quality: VideoQuality;
132
+ gap: Gap[];
127
133
  } | {
128
134
  position: number[];
129
135
  resolution: {
@@ -133,6 +139,7 @@ export declare const SPEAKER_TEMPLATE: {
133
139
  };
134
140
  type: TemplateType;
135
141
  quality: VideoQuality;
142
+ gap: Gap[];
136
143
  })[];
137
144
  '8-1': ({
138
145
  position: number[];
@@ -143,6 +150,7 @@ export declare const SPEAKER_TEMPLATE: {
143
150
  };
144
151
  type: TemplateType;
145
152
  quality: VideoQuality;
153
+ gap: Gap[];
146
154
  } | {
147
155
  position: number[];
148
156
  resolution: {
@@ -152,6 +160,7 @@ export declare const SPEAKER_TEMPLATE: {
152
160
  };
153
161
  type: TemplateType;
154
162
  quality: VideoQuality;
163
+ gap: Gap[];
155
164
  })[];
156
165
  };
157
166
  export declare const GALLERY_TEMPLATE: {
@@ -164,6 +173,7 @@ export declare const GALLERY_TEMPLATE: {
164
173
  };
165
174
  type: TemplateType;
166
175
  quality: VideoQuality;
176
+ gap: Gap[];
167
177
  }[];
168
178
  '2-1': {
169
179
  position: number[];
@@ -174,6 +184,7 @@ export declare const GALLERY_TEMPLATE: {
174
184
  };
175
185
  type: TemplateType;
176
186
  quality: VideoQuality;
187
+ gap: Gap[];
177
188
  }[];
178
189
  '3-1': {
179
190
  position: number[];
@@ -183,6 +194,7 @@ export declare const GALLERY_TEMPLATE: {
183
194
  };
184
195
  type: TemplateType;
185
196
  quality: VideoQuality;
197
+ gap: Gap[];
186
198
  }[];
187
199
  '4-1': {
188
200
  position: number[];
@@ -192,6 +204,7 @@ export declare const GALLERY_TEMPLATE: {
192
204
  };
193
205
  type: TemplateType;
194
206
  quality: VideoQuality;
207
+ gap: Gap[];
195
208
  }[];
196
209
  '5-1': {
197
210
  position: number[];
@@ -201,6 +214,7 @@ export declare const GALLERY_TEMPLATE: {
201
214
  };
202
215
  type: TemplateType;
203
216
  quality: VideoQuality;
217
+ gap: Gap[];
204
218
  }[];
205
219
  '6-1': {
206
220
  position: number[];
@@ -210,6 +224,7 @@ export declare const GALLERY_TEMPLATE: {
210
224
  };
211
225
  type: TemplateType;
212
226
  quality: VideoQuality;
227
+ gap: Gap[];
213
228
  }[];
214
229
  '7-1': {
215
230
  position: number[];
@@ -219,6 +234,7 @@ export declare const GALLERY_TEMPLATE: {
219
234
  };
220
235
  type: TemplateType;
221
236
  quality: VideoQuality;
237
+ gap: Gap[];
222
238
  }[];
223
239
  '8-1': {
224
240
  position: number[];
@@ -228,6 +244,7 @@ export declare const GALLERY_TEMPLATE: {
228
244
  };
229
245
  type: TemplateType;
230
246
  quality: VideoQuality;
247
+ gap: Gap[];
231
248
  }[];
232
249
  '9-1': {
233
250
  position: number[];
@@ -237,6 +254,7 @@ export declare const GALLERY_TEMPLATE: {
237
254
  };
238
255
  type: TemplateType;
239
256
  quality: VideoQuality;
257
+ gap: Gap[];
240
258
  }[];
241
259
  };
242
260
  export declare const COMMON_TEMPLATE: ITemplate;
@@ -1,4 +1,5 @@
1
- import { TemplateInfo, TemplateParams } from '../../type/index';
1
+ import { TemplateInfo, TemplateParams } from '../../../type/index';
2
+
2
3
  declare class TemplateManager {
3
4
  private templates;
4
5
  private commonTemplates;
@@ -0,0 +1,4 @@
1
+ import { ITemplate } from '../../../type/index';
2
+
3
+ export declare const COMMON_MOBILE_VERTICAL_TEMPLATE: ITemplate;
4
+ export declare const COMMON_MOBILE_HORIZONTAL_TEMPLATE: ITemplate;
@@ -0,0 +1,3 @@
1
+ import { Template } from '../../../type/index';
2
+
3
+ export declare const POLLING_TEMPLATE: Template;
@@ -1,13 +1,8 @@
1
- /**
2
- * XY WebRTC SDK Media UAA Lib
3
- *
4
- * Created at : 2024-05-15 17:58:01
5
- * Last modified : 2024-06-17 20:38:35
6
- */
7
- import XYRTCClient from '../client';
8
- import { Speaker } from '../../feature/index';
9
- import { ICustomMessageConfig, ICustomStreamTrack, IReturnResult, IRoster, IRotationInfoTotalItem, ISpeakerInfo, Key, SpeakersInfoItem, XYBaseModule } from '../../type/index';
10
1
  import { XYLayoutRosters } from './index.type';
2
+ import { ICustomMessageConfig, ICustomStreamTrack, IReturnResult, IRoster, IRotationInfoTotalItem, ISpeakerInfo, Key, SpeakersInfoItem, XYBaseModule, XYWebRxAudioStatus } from '../../type/index';
3
+ import { XYSpeaker } from '../../feature/index';
4
+ import { default as XYRTCClient } from '../client';
5
+
11
6
  export declare class XYMediaManager implements XYBaseModule {
12
7
  private client;
13
8
  private logger;
@@ -17,15 +12,16 @@ export declare class XYMediaManager implements XYBaseModule {
17
12
  private audioTrackList;
18
13
  private contentOnholdInfo;
19
14
  private contentSenderPid;
20
- speaker: Speaker | null;
15
+ speaker: XYSpeaker | null;
21
16
  layoutRosters: XYLayoutRosters;
22
17
  private rotationInfo;
23
18
  private customMessage;
24
19
  private audioTrackLength;
25
20
  private videoTrackLength;
21
+ private webRxAudioStatus;
26
22
  constructor(client: XYRTCClient);
27
23
  getContentSenderPid(): number;
28
- getSpeakerManager(): Speaker | null;
24
+ getSpeakerManager(): XYSpeaker | null;
29
25
  getLayoutRosters(): XYLayoutRosters;
30
26
  getVideoTrackList(): ICustomStreamTrack[];
31
27
  getOriginRosters(): IRoster[];
@@ -174,4 +170,10 @@ export declare class XYMediaManager implements XYBaseModule {
174
170
  * 告知媒体是否开启出入会通知
175
171
  */
176
172
  sendConfParam(): void;
173
+ /**
174
+ * 通知媒体 本地是否接收远端音频
175
+ *
176
+ * @param { XYWebRxAudioStatus } params - 控制是否接收会议中的远端音频
177
+ */
178
+ sendWebRxAudioStatus(params?: XYWebRxAudioStatus): void;
177
179
  }
@@ -1,4 +1,5 @@
1
1
  import { ILayoutRoster } from '../../type/index';
2
+
2
3
  /**
3
4
  * 请流结果数据结构
4
5
  */
@@ -1,5 +1,6 @@
1
- import XYRTCClient from '../client';
2
1
  import { OriginalNotification, OriginalRealTimeNotification, IReturnResult, ISubTitle, IEPMessage, IWaitingState, IMeetingControl, IRecordStatusNotification, IRecordingStateChanged, XYBaseModule } from '../../type/index';
2
+ import { default as XYRTCClient } from '../client';
3
+
3
4
  export declare class XYMeetingControl implements XYBaseModule {
4
5
  private client;
5
6
  private logger;
@@ -9,6 +10,7 @@ export declare class XYMeetingControl implements XYBaseModule {
9
10
  private cacheMeetingControlMessage;
10
11
  private recordStatusNotification;
11
12
  private recordState;
13
+ private signInServerAPI;
12
14
  constructor(client: XYRTCClient);
13
15
  destroy(): void;
14
16
  getOnHold(): boolean;
@@ -38,6 +40,12 @@ export declare class XYMeetingControl implements XYBaseModule {
38
40
  * @param { OriginalRealTimeNotification } data - 信令下发的原始数据
39
41
  */
40
42
  handleRealTimeNotificationMessage(data: OriginalRealTimeNotification): Promise<void>;
43
+ /**
44
+ * 通过serverconfig获取签到url
45
+ *
46
+ * @param { string } urlPropv3 - 签到url key
47
+ */
48
+ private getSignInServer;
41
49
  /**
42
50
  * 获取签到文案
43
51
  *
@@ -87,6 +95,17 @@ export declare class XYMeetingControl implements XYBaseModule {
87
95
  /**
88
96
  * 处理本地录制结果上报Message
89
97
  *
98
+ * 会议开始 state=RECORD_STATE_IDLE
99
+ * 开启录制 state=RECORD_STATE_STARTING
100
+ * 开启成功 state=RECORD_STATE_STARTED
101
+ * 开启失败 state=RECORD_STATE_IDLE
102
+ *
103
+ * 停止录制 state=RECORD_STATE_STOPING
104
+ * 停止成功 state=RECORD_STATE_IDLE,
105
+ * 停止失败 state=RECORD_STATE_STARTED
106
+ *
107
+ * 如果信令网关和信令服务网络不通,先报一个RECORD_STATE_STOPING,过一会发现录制没停止成功,会再报一个RECORD_STATE_STARTED
108
+ *
90
109
  * @param { IRecordingStateChanged } data - 录制状态
91
110
  */
92
111
  onRecordingStateChangedMessage(data: IRecordingStateChanged): void;
@@ -1,4 +1,5 @@
1
1
  import { EVENT_TYPE } from '../../type/index';
2
+
2
3
  /**
3
4
  * 信令上报原始的消息
4
5
  *
@@ -1,11 +1,7 @@
1
- /**
2
- * Meeting Info Control
3
- *
4
- * Created at : 2022-10-27 13:58:22
5
- * Last modified : 2024-06-07 18:34:37
6
- */
7
- import { IConferenceInfo, IRecordPermission, IExportUserInfo, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, MEETING_DIRECTION, IVideoProfile, IMeetingControl, FocusViewAction } from '../../type/index';
8
- import Client from '../client';
1
+ import { XYConferencePropertiesMessage, XYEnterpriseInfo, XYUicustomization } from './index.type';
2
+ import { default as Client } from '../client';
3
+ import { IConferenceInfo, IRecordPermission, IExportUserInfo, ILayout, IMediaConfig, IReqInfo, IEnterpriseConfig, LayoutAvatarType, TLayoutMap, InviteInfo, MEETING_DIRECTION, IVideoProfile, IMeetingControl, FocusViewAction } from '../../type/index';
4
+
9
5
  declare class Meeting {
10
6
  private client;
11
7
  private logger;
@@ -13,13 +9,13 @@ declare class Meeting {
13
9
  private conferenceInfo;
14
10
  private recordPermission;
15
11
  private cloudRoomInfo;
16
- private confMgmtUrl;
17
12
  private layoutImageAvatarMap;
18
13
  private mediaConfig;
19
14
  private enterpriseConfig;
20
15
  private userInfo;
21
16
  private meetingControlInfo;
22
17
  constructor(client: Client);
18
+ destroy(): void;
23
19
  getRecordPermission(): IRecordPermission;
24
20
  getLayoutImageAvatarMap(): Map<string, {
25
21
  url: string;
@@ -28,6 +24,7 @@ declare class Meeting {
28
24
  getEnterpriseMediaConfig(): IMediaConfig;
29
25
  getUserInfo(): IExportUserInfo | null;
30
26
  getConferenceInfo(): IConferenceInfo;
27
+ getEnterpriseConfig(): IEnterpriseConfig;
31
28
  getLayoutAvatarType(): LayoutAvatarType;
32
29
  getMeetingControlInfo(): IMeetingControl | null;
33
30
  /**
@@ -38,27 +35,25 @@ declare class Meeting {
38
35
  setMeetingControlInfo(info: IMeetingControl): void;
39
36
  /**
40
37
  * 登录用户信息和个人云会议室信息
38
+ * 如果confRoomOwnerList有值,则根据此属性判断是否是会议室owner
39
+ *
40
+ * @since 4.0.2
41
+ * @param { string } confRoomOwnerList - 会议室owner列表
41
42
  */
42
- handleUserInfo(): Promise<void>;
43
+ handleUserInfo(confRoomOwnerList?: string): Promise<void>;
43
44
  /**
44
45
  * 会议室信息,如号码、名称、类型、配置信息(是否有水印等)
45
46
  * TODO:思考问题,如何将此处转为链式调用
46
47
  *
47
48
  * @public
48
49
  */
49
- handleConferenceInfo(properties?: {}): Promise<void>;
50
+ handleConferenceInfo(): Promise<void>;
50
51
  /**
51
52
  * 更新并上报会议室信息
52
53
  *
53
54
  * @param { Object } properties - 会议室信息
54
55
  */
55
56
  updateConferenceInfo(properties?: {}): void;
56
- /**
57
- * 获取会控相关地址
58
- *
59
- * @returns Promise<IConfMgmtUrl | null>
60
- */
61
- getConfMgmtUrl(): Promise<IConfMgmtUrl | null>;
62
57
  /**
63
58
  * 录制权限获取
64
59
  *
@@ -76,7 +71,7 @@ declare class Meeting {
76
71
  /**
77
72
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
78
73
  */
79
- getCloudMeetingRooms(): Promise<void>;
74
+ getCloudMeetingRooms(): Promise<any>;
80
75
  /**
81
76
  * 获取会议控制信息, 包含是否是主持人、是否需要会控密码
82
77
  *
@@ -99,18 +94,11 @@ declare class Meeting {
99
94
  * @param { TLayoutMap } layoutListMap
100
95
  */
101
96
  handleLayoutAvatar(layoutListMap: TLayoutMap): Promise<void>;
102
- /**
103
- * 获取详细的会控地址
104
- *
105
- * @param { string } url server下发的会控地址
106
- * @param { string } platform 平台
107
- * @returns IConfMgmtUrl
108
- */
109
- private getMeetingControlUrl;
110
97
  /**
111
98
  * 获取vcNumber真实的会议室信息
112
99
  *
113
- * @param { string } vcNumber 终端对应的会议室号码
100
+ * @param { string } vcNumber - 真实的会议号
101
+ * @param { string } confNumber - 呼叫传入的会议号
114
102
  */
115
103
  private getVCConfInfo;
116
104
  /**
@@ -134,13 +122,13 @@ declare class Meeting {
134
122
  * @param { string } id - 指定切换到焦点画面的endpointId
135
123
  * @returns
136
124
  */
137
- setMeetingFocusView(id: string, action: FocusViewAction): Promise<import("../../type/index").IReturnResult>;
125
+ setMeetingFocusView(id: string, action: FocusViewAction): Promise<import('../../type/index').IReturnResult>;
138
126
  /**
139
127
  * 修改参会者名称,目前仅支持修改Local
140
128
  *
141
129
  * @param { string } newName - 新名称
142
130
  */
143
- rename(newName: string, callback?: () => void): Promise<import("../../type/index").IReturnResult | undefined>;
131
+ rename(newName: string, callback?: () => void): Promise<import('../../type/index').IReturnResult | undefined>;
144
132
  /**
145
133
  * 企业配置信息
146
134
  *
@@ -171,7 +159,7 @@ declare class Meeting {
171
159
  /**
172
160
  * 结束全体会议
173
161
  */
174
- endAllMeeting(): Promise<import("../../type/index").IReturnResult>;
162
+ endAllMeeting(): Promise<import('../../type/index').IReturnResult>;
175
163
  /**
176
164
  * 处理信令下发的等候室
177
165
  *
@@ -196,8 +184,27 @@ declare class Meeting {
196
184
  /**
197
185
  * 处理云会议室属性消息
198
186
  *
199
- * @param { object } data - 云会议室属性消息
187
+ * @param { XYConferencePropertiesMessage } data - 云会议室属性消息
188
+ */
189
+ handleConferencePropertiesMessage(data: XYConferencePropertiesMessage): void;
190
+ /**
191
+ * 获取管理平台角色相关权限,包含录制权限
192
+ *
193
+ * @returns { Promise<XYEnterpriseInfo> } - 企业信息
194
+ */
195
+ getUicustomization(): Promise<XYUicustomization>;
196
+ /**
197
+ * 获取企业信息,包含企业信息配置title/icon、企业名称等
198
+ *
199
+ * @returns { Promise<XYEnterpriseInfo> } - 企业信息
200
+ */
201
+ getEnterpriseInfo(): Promise<XYEnterpriseInfo>;
202
+ /**
203
+ * 校验入会敏感词
204
+ *
205
+ * @param { string } displayName - 入会名称
206
+ * @returns
200
207
  */
201
- handleConferencePropertiesMessage(data: any): void;
208
+ checkSensitiveWord(displayName: string): Promise<import('./index.type').XYSensitiveWords | null>;
202
209
  }
203
210
  export default Meeting;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * 企业配置相关信息
3
+ *
4
+ * @property { string } iconUrl - 企业icon
5
+ * @property { string } enterpriseName - 企业名称
6
+ * @property { string } logoUrl - 企业logo
7
+ */
8
+ export interface XYEnterpriseInfo {
9
+ iconUrl: string;
10
+ enterpriseName: string;
11
+ logoUrl: string;
12
+ }
13
+ /**
14
+ * 角色相关权限
15
+ *
16
+ * @property { boolean } showRecording - 是否显示录制
17
+ */
18
+ export interface XYUicustomization {
19
+ showRecording: boolean;
20
+ }
21
+ /**
22
+ * 入会名称敏感词
23
+ *
24
+ * @property { string[] } sensitiveWords - 敏感词
25
+ */
26
+ export interface XYSensitiveWords {
27
+ sensitiveWords: string[];
28
+ }
29
+ /**
30
+ * 会议属性
31
+ *
32
+ * @property { string } enableContentLive - 是否开启了多路内容共享
33
+ * @property { string } enableContentLiveOnHold - 是否开启了指定内容广播
34
+ * @property { string } shareChatContentPermission - 共享聊天内容权限
35
+ * @since 4.0.2
36
+ * @property { string } confRoomOwnerList - 会议室owner列表
37
+ */
38
+ export interface XYConferencePropertiesMessage {
39
+ enableContentLive?: 'true' | 'false';
40
+ enableContentLiveOnHold?: 'true' | 'false';
41
+ shareChatContentPermission?: '0' | '1';
42
+ confRoomOwnerList?: string;
43
+ }
@@ -1,11 +1,6 @@
1
- /**
2
- * 校验模块,包含校验会议、会议密码等
3
- *
4
- * Created at : 2024-05-13 14:43:44
5
- * Last modified : 2024-07-12 16:03:31
6
- */
1
+ import { default as XYRTCClient } from '../client';
7
2
  import { IReturnResult, XYBaseModule, XYCheckNumberParams } from '../../type/index';
8
- import XYRTCClient from '../client';
3
+
9
4
  export declare class Verify implements XYBaseModule {
10
5
  private client;
11
6
  private logger;