@xylink/xy-rtc-sdk 4.0.4 → 4.0.6

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 (115) hide show
  1. package/action/ability.d.ts +0 -1
  2. package/action/api.d.ts +15 -1
  3. package/action/auth.d.ts +3 -4
  4. package/action/base.d.ts +2 -3
  5. package/action/config.d.ts +2 -3
  6. package/action/control.d.ts +3 -4
  7. package/action/enterprise.d.ts +4 -5
  8. package/action/http.d.ts +2 -3
  9. package/action/index.d.ts +9 -10
  10. package/action/index.type.d.ts +0 -1
  11. package/action/log.d.ts +1 -2
  12. package/action/meeting.d.ts +17 -4
  13. package/enum/client.d.ts +0 -1
  14. package/enum/constraints.d.ts +0 -1
  15. package/enum/errorCode/server.d.ts +0 -1
  16. package/enum/errorCode/signal.d.ts +0 -1
  17. package/enum/index.d.ts +0 -1
  18. package/enum/meeting.d.ts +0 -1
  19. package/enum/polling.d.ts +0 -1
  20. package/export/tools.d.ts +0 -1
  21. package/feature/artboard/index.d.ts +3 -4
  22. package/feature/audioPCM/index.d.ts +2 -3
  23. package/feature/contentPreserver/index.d.ts +1 -2
  24. package/feature/customMessage/index.d.ts +1 -2
  25. package/feature/edu/index.d.ts +1 -2
  26. package/feature/edu/index.type.d.ts +0 -1
  27. package/feature/im/index.d.ts +2 -3
  28. package/feature/query/index.d.ts +2 -3
  29. package/feature/speaker/index.d.ts +2 -3
  30. package/feature/speaker/index.type.d.ts +0 -1
  31. package/feature/translation/index.d.ts +34 -0
  32. package/feature/vep/index.d.ts +56 -0
  33. package/feature/vep/index.type.d.ts +139 -0
  34. package/index.d.ts +8 -9
  35. package/interface/clientInterface.type.d.ts +6 -7
  36. package/interface/contentTrackInterface.type.d.ts +0 -1
  37. package/interface/extension.type.d.ts +0 -1
  38. package/interface/processor.type.d.ts +0 -1
  39. package/interface/videoAudioTrackInterface.type.d.ts +1 -2
  40. package/main/ability/const.d.ts +0 -1
  41. package/main/ability/index.d.ts +1 -2
  42. package/main/auth/index.d.ts +2 -3
  43. package/main/auth/index.type.d.ts +0 -1
  44. package/main/auth/rule.d.ts +0 -1
  45. package/main/client/clientBase.d.ts +2 -3
  46. package/main/client/clientState.d.ts +1 -2
  47. package/main/client/index.d.ts +54 -30
  48. package/main/client/rule.d.ts +0 -1
  49. package/main/device/index.d.ts +2 -3
  50. package/main/helper/i18n.d.ts +0 -1
  51. package/main/helper/index.d.ts +1 -2
  52. package/main/layout/index.d.ts +4 -5
  53. package/main/layout/index.type.d.ts +2 -3
  54. package/main/layout/polling.d.ts +2 -3
  55. package/main/layout/state.d.ts +3 -4
  56. package/main/layout/template/index.d.ts +0 -1
  57. package/main/layout/template/manager.d.ts +0 -1
  58. package/main/layout/template/mobile.d.ts +0 -1
  59. package/main/layout/template/polling.d.ts +0 -1
  60. package/main/media/index.d.ts +4 -5
  61. package/main/media/index.type.d.ts +0 -1
  62. package/main/meeting/control.d.ts +1 -2
  63. package/main/meeting/control.type.d.ts +0 -1
  64. package/main/meeting/index.d.ts +8 -3
  65. package/main/meeting/rule.d.ts +0 -1
  66. package/main/meeting/verify.d.ts +1 -2
  67. package/main/peer/index.d.ts +5 -6
  68. package/main/peer/index.type.d.ts +0 -1
  69. package/main/peer/state.d.ts +0 -1
  70. package/main/plugin/audioPCM/index.d.ts +3 -4
  71. package/main/plugin/audioPCM/processor.d.ts +3 -4
  72. package/main/plugin/contentPreserver/index.d.ts +2 -3
  73. package/main/plugin/contentPreserver/processor.d.ts +2 -3
  74. package/main/plugin/index.d.ts +1 -2
  75. package/main/quality/index.d.ts +0 -1
  76. package/main/quality/report.d.ts +1 -2
  77. package/main/render/audioManager.d.ts +2 -3
  78. package/main/render/index.d.ts +2 -3
  79. package/main/render/index.type.d.ts +1 -2
  80. package/main/render/videoManager.d.ts +1 -2
  81. package/main/roster/index.d.ts +41 -2
  82. package/main/server/index.d.ts +3 -4
  83. package/main/signal/index.d.ts +1 -2
  84. package/main/socket/index.d.ts +2 -3
  85. package/main/stream/index.d.ts +7 -8
  86. package/main/track/baseTrack.d.ts +4 -5
  87. package/main/track/contentTrack.d.ts +4 -5
  88. package/main/track/customContentTrack.d.ts +2 -3
  89. package/main/track/customVideoAudioTrack.d.ts +2 -3
  90. package/main/track/videoAudioCapture.d.ts +1 -2
  91. package/main/track/videoAudioTrack.d.ts +5 -6
  92. package/main/vom/config.d.ts +0 -1
  93. package/main/vom/index.d.ts +1 -2
  94. package/package.json +1 -1
  95. package/tools/analyser/index.d.ts +0 -1
  96. package/tools/analyser/manager.d.ts +1 -2
  97. package/tools/config.d.ts +0 -1
  98. package/tools/log/db.d.ts +0 -1
  99. package/tools/log/logger.d.ts +0 -1
  100. package/tools/log/loggerManager.d.ts +1 -2
  101. package/tools/socket/socket.d.ts +2 -3
  102. package/tools/socket/socketManager.d.ts +2 -3
  103. package/tools/utils.d.ts +0 -1
  104. package/type/ability.d.ts +3 -1
  105. package/type/analyser.d.ts +0 -1
  106. package/type/capture.d.ts +0 -1
  107. package/type/client.d.ts +6 -47
  108. package/type/index.d.ts +1 -0
  109. package/type/layout.d.ts +1 -2
  110. package/type/meeting.d.ts +4 -5
  111. package/type/quality.d.ts +1 -2
  112. package/type/stream.d.ts +3 -4
  113. package/type/subtitle.d.ts +86 -0
  114. package/type/track.d.ts +0 -1
  115. package/xyrtc.js +3549 -4468
@@ -1,6 +1,5 @@
1
- import { default as XYRTCClient } from '../client';
2
1
  import { AbilityResult } from '../../type/index';
3
-
2
+ import { default as XYRTCClient } from '../client';
4
3
  declare class Ability {
5
4
  private abilityResult;
6
5
  private logger;
@@ -1,7 +1,6 @@
1
- import { CheckCaptchaImageParams, LoginOtherParams } from './index.type';
2
- import { default as XYRTCClient } from '../client';
3
1
  import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, LoginTokenInfo, IReturnResult, LoginThirdAuthTokenParams, LoginVerifyCodeParams } from '../../type/index';
4
-
2
+ import { default as XYRTCClient } from '../client';
3
+ import { CheckCaptchaImageParams, LoginOtherParams } from './index.type';
5
4
  declare class Auth {
6
5
  private client;
7
6
  private logger;
@@ -1,5 +1,4 @@
1
1
  import { IReturnResult } from '../../type/base';
2
-
3
2
  /**
4
3
  * 图片验证码返回结果
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { Rule } from '@xylink/xy-toolkit';
2
-
3
2
  declare const loginExternalAccountRule: Record<string, Rule>;
4
3
  declare const loginWithAuthCodeRule: Record<string, Rule>;
5
4
  declare const loginXYAccountRule: Record<string, Rule>;
@@ -1,7 +1,6 @@
1
- import { IClientConfig, LayoutMode, XYClientEventKey } from '../../type/index';
2
- import { default as Logger } from '../../tools/log/logger';
3
1
  import { XYEmitter } from '@xylink/xy-toolkit';
4
-
2
+ import { default as Logger } from '../../tools/log/logger';
3
+ import { IClientConfig, LayoutMode, XYClientEventKey } from '../../type/index';
5
4
  export declare class XYRTCClientBase extends XYEmitter<XYClientEventKey | string> {
6
5
  protected config: IClientConfig;
7
6
  protected logger: Logger;
@@ -1,6 +1,5 @@
1
- import { XYClientState, XYMeetingState } from './index.type';
2
1
  import { XYBaseModule } from '../../type/index';
3
-
2
+ import { XYClientState, XYMeetingState } from './index.type';
4
3
  export declare class XYRTCClientState implements XYBaseModule {
5
4
  private clientState;
6
5
  private meetingState;
@@ -1,33 +1,33 @@
1
- import { XY_WHITEBOARD_DATA } from '../../feature/artboard/index.type';
2
- import { CheckCaptchaImageParams, LoginOtherParams } from '../auth/index.type';
3
- import { XYMemberDepartment } from '../../feature/query/index.type';
4
- import { XYIMClient } from '../../feature/im';
5
- import { default as RosterManager } from '../roster';
6
- import { XYEDU } from '../../feature/edu';
7
- import { XYServerInfo } from '../server/index.type';
8
- import { default as ServerManager } from '../server';
9
- import { XYSignal } from '../signal';
10
- import { XYMediaManager } from '../media';
11
- import { SocketManager } from '../../tools/socket/socketManager';
12
- import { XYClientSocket } from '../socket';
13
- import { XYRender } from '../render';
14
- import { XYMeetingControl } from '../meeting/control';
15
- import { XYPlugin } from '../plugin';
16
- import { VOM } from '../vom';
17
- import { XYRTCClientState } from './clientState';
18
- import { XYRTCClientBase } from './clientBase';
19
- import { default as Auth } from '../auth/index';
20
- import { default as Action } from '../../action/index';
21
- import { default as ContentTrack } from '../track/contentTrack';
22
- import { default as VideoAudioTrack } from '../track/videoAudioTrack';
23
- import { default as Meeting } from '../meeting';
24
- import { default as LayoutManager } from '../layout';
25
- import { default as Logger } from '../../tools/log/logger';
26
- import { default as Stream } from '../stream';
27
- import { default as Peer } from '../peer/index';
28
- import { SnapshotParams, XYDevicePressure } from '@xylink/xy-toolkit';
29
1
  import { IClientConfig, ICall, IMakeCall, IInvite, IRoster, ILoginExtAccount, IVideoAudioType, IMode, IReqInfo, TCommand, ContentMode, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig, OperateType, PushType, LayoutMode, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, IReturnResult, InviteInfo, LayoutOrientationType, AnalyserConfig, IFeatureConfigValue, IFeatureConfigKey, MEETING_DIRECTION, LocalViewParams, AbilityResult, IExportUserInfo, IVideoProfile, ReconnectEntry, LoginTokenInfo, LayoutConfig, IStateParams, IScreenInfo, IInternals, XYClientIF, IGetConferenceParams, XYCheckNumberParams, LoginThirdAuthTokenParams, LoginVerifyCodeParams, XYWebRxAudioStatus, ClientInfoConfig } from '../../type/index';
30
-
2
+ import { SnapshotParams, XYDevicePressure } from '@xylink/xy-toolkit';
3
+ import { default as Peer } from '../peer/index';
4
+ import { default as Stream } from '../stream';
5
+ import { default as Logger } from '../../tools/log/logger';
6
+ import { default as LayoutManager } from '../layout';
7
+ import { default as Meeting } from '../meeting';
8
+ import { default as VideoAudioTrack } from '../track/videoAudioTrack';
9
+ import { default as ContentTrack } from '../track/contentTrack';
10
+ import { default as Action } from '../../action/index';
11
+ import { default as Auth } from '../auth/index';
12
+ import { XYRTCClientBase } from './clientBase';
13
+ import { XYRTCClientState } from './clientState';
14
+ import { VOM } from '../vom';
15
+ import { XYPlugin } from '../plugin';
16
+ import { XYMeetingControl } from '../meeting/control';
17
+ import { XYRender } from '../render';
18
+ import { XYClientSocket } from '../socket';
19
+ import { SocketManager } from '../../tools/socket/socketManager';
20
+ import { XYMediaManager } from '../media';
21
+ import { XYSignal } from '../signal';
22
+ import { default as ServerManager } from '../server';
23
+ import { XYServerInfo } from '../server/index.type';
24
+ import { XYEDU } from '../../feature/edu';
25
+ import { default as RosterManager } from '../roster';
26
+ import { XYIMClient } from '../../feature/im';
27
+ import { XYMemberDepartment } from '../../feature/query/index.type';
28
+ import { CheckCaptchaImageParams, LoginOtherParams } from '../auth/index.type';
29
+ import { XY_WHITEBOARD_DATA } from '../../feature/artboard/index.type';
30
+ import { XYVepManager } from '../../feature/vep';
31
31
  export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
32
32
  logger: Logger;
33
33
  private action;
@@ -46,7 +46,6 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
46
46
  private contentMode;
47
47
  private isSubscribeBulkRoster;
48
48
  private qualityReport;
49
- private isSubscribeTranslation;
50
49
  private featureConfig;
51
50
  private operateQueue;
52
51
  private audioStatus;
@@ -66,6 +65,8 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
66
65
  protected devicePressure?: XYDevicePressure;
67
66
  private queryService;
68
67
  private artboard;
68
+ private vepManager?;
69
+ private translationManager;
69
70
  private socketManager;
70
71
  private onDocumentChange;
71
72
  constructor(config: IClientConfig, logger: Logger);
@@ -105,6 +106,7 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
105
106
  getIsAutoLayoutMode(): boolean;
106
107
  getMeetingControl(): XYMeetingControl;
107
108
  getImClient(): XYIMClient | null;
109
+ getVepManager(): XYVepManager | undefined;
108
110
  /**
109
111
  * 获取服务器地址
110
112
  *
@@ -1306,6 +1308,28 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
1306
1308
  * @returns {Promise<boolean>} 挂断成功返回true,失败则reject错误信息
1307
1309
  */
1308
1310
  hangup(reason?: string, blockSendSocket?: boolean): Promise<boolean>;
1311
+ /**
1312
+ * AI-播放虚拟数字人(VEP)
1313
+ *
1314
+ * @since 3.9.11
1315
+ * @param { string } sessionID - 数字人ID
1316
+ * @param { string } displayName - 数字人名称
1317
+ */
1318
+ playDigitalHuman(sessionID: string, displayName: string): Promise<void>;
1319
+ /**
1320
+ * AI-停止虚拟数字人设备(VEP)
1321
+ *
1322
+ * @since 3.9.11
1323
+ * @param { string } sessionID - 数字人ID
1324
+ */
1325
+ stopDigitalHuman(sessionID: string): Promise<boolean>;
1326
+ /**
1327
+ * AI-播放合成语音内容(TTS)
1328
+ *
1329
+ * @since 3.9.11
1330
+ * @param { string } txt - 播放文本内容
1331
+ */
1332
+ playVirtualTTS(txt: string): Promise<void>;
1309
1333
  /**
1310
1334
  * 挂断会议,销毁资源
1311
1335
  * 调用时机: 挂断会议,如果不再需要使用client,应调用该接口及时销毁client实例,以释放相关资源;再次使用时,需重新创建client
@@ -1,5 +1,4 @@
1
1
  import { Rule } from '@xylink/xy-toolkit';
2
-
3
2
  declare const loginXYLinkAccountRule: Record<string, Rule>;
4
3
  declare const makeCallRule: Record<string, Rule>;
5
4
  declare const bindTrackGroupRule: Record<string, Rule>;
@@ -1,7 +1,6 @@
1
- import { IDeviceInfo, IDeviceList, ICurrentPermission, PermissionType, FacingMode, DEVICE_KIND, IDeviceId, ISetSpecDevice, IUsedDeviceParams, ISpecStateParams, XYDeviceEventKey, XYDeviceMode } from '../../type/index';
2
- import { XYEmitter } from '@xylink/xy-toolkit';
3
1
  import { default as Logger } from '../../tools/log/logger';
4
-
2
+ import { XYEmitter } from '@xylink/xy-toolkit';
3
+ import { IDeviceInfo, IDeviceList, ICurrentPermission, PermissionType, FacingMode, DEVICE_KIND, IDeviceId, ISetSpecDevice, IUsedDeviceParams, ISpecStateParams, XYDeviceEventKey, XYDeviceMode } from '../../type/index';
5
4
  /**
6
5
  * DeviceManager模块,用于管理枚举设备列表、监听设备变动、处理设备权限等功能
7
6
  *
@@ -1,5 +1,4 @@
1
1
  import { TLocale } from '../../type/index';
2
-
3
2
  export declare let locale: TLocale;
4
3
  /**
5
4
  * 设置语言
@@ -1,6 +1,5 @@
1
- import { XYRotationVideoInfo } from './index.type';
2
1
  import { IRotationInfoTotalItem, IRotateStyle, XYSupportedCodec, DEVICE_KIND } from '../../type/index';
3
-
2
+ import { XYRotationVideoInfo } from './index.type';
4
3
  /**
5
4
  * 获取真实视频分辨率的宽高、比值
6
5
  *
@@ -1,9 +1,8 @@
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
1
  import { ILayout, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, IMode, LayoutOrientationType, LayoutConfig, PollingState, FocusViewConfig, LocalViewParams } from '../../type/index';
6
-
2
+ import { default as Client } from '../client';
3
+ import { default as Polling } from './polling';
4
+ import { default as Logger } from '../../tools/log/logger';
5
+ import { XYLayoutManagerState } from './state';
7
6
  export default class LayoutManager {
8
7
  logger: Logger;
9
8
  client: Client;
@@ -1,7 +1,6 @@
1
- import { AutoState } from '../../type/polling';
2
- import { Gap } from '../../type/layout';
3
1
  import { XYLayoutState } from '../render/videoManager.type';
4
-
2
+ import { Gap } from '../../type/layout';
3
+ import { AutoState } from '../../type/polling';
5
4
  /**
6
5
  * 设备类型
7
6
  *
@@ -1,7 +1,6 @@
1
- import { default as Client } from '../client';
2
- import { ICustomizedLayout, ILayout, IRoster, PollingState } from '../../type/index';
3
1
  import { default as LayoutManager } from './index';
4
-
2
+ import { ICustomizedLayout, ILayout, IRoster, PollingState } from '../../type/index';
3
+ import { default as Client } from '../client';
5
4
  export default class Polling {
6
5
  pollingMessage: ICustomizedLayout | null;
7
6
  private pollingIntervalTimer;
@@ -1,8 +1,7 @@
1
- import { ContentTemplateMode, LayoutConfig, TemplateMode } from '../../type/index';
2
- import { default as Client } from '../client';
3
- import { default as LayoutManager } from './index';
4
1
  import { XYBaseModule } from '../../interface/baseModule.type';
5
-
2
+ import { default as LayoutManager } from './index';
3
+ import { default as Client } from '../client';
4
+ import { ContentTemplateMode, LayoutConfig, TemplateMode } from '../../type/index';
6
5
  export declare class XYLayoutManagerState implements XYBaseModule {
7
6
  private client;
8
7
  private logger;
@@ -1,5 +1,4 @@
1
1
  import { ITemplate, TemplateType, VideoQuality, StreamResolutionLevel, TemplateInfos, Gap } from '../../../type/index';
2
-
3
2
  export * from './mobile';
4
3
  export declare const RATE = 0.5625;
5
4
  export declare const HIDE_POSITION: number[];
@@ -1,5 +1,4 @@
1
1
  import { TemplateInfo, TemplateParams } from '../../../type/index';
2
-
3
2
  declare class TemplateManager {
4
3
  private templates;
5
4
  private commonTemplates;
@@ -1,4 +1,3 @@
1
1
  import { ITemplate } from '../../../type/index';
2
-
3
2
  export declare const COMMON_MOBILE_VERTICAL_TEMPLATE: ITemplate;
4
3
  export declare const COMMON_MOBILE_HORIZONTAL_TEMPLATE: ITemplate;
@@ -1,3 +1,2 @@
1
1
  import { Template } from '../../../type/index';
2
-
3
2
  export declare const POLLING_TEMPLATE: Template;
@@ -1,8 +1,7 @@
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
1
  import { default as XYRTCClient } from '../client';
5
-
2
+ import { XYSpeaker } from '../../feature/index';
3
+ import { ICustomMessageConfig, ICustomStreamTrack, IReturnResult, IRoster, IRotationInfoTotalItem, ISpeakerInfo, Key, SpeakersInfoItem, XYBaseModule, XYWebRxAudioStatus } from '../../type/index';
4
+ import { XYLayoutRosters } from './index.type';
6
5
  export declare class XYMediaManager implements XYBaseModule {
7
6
  private client;
8
7
  private logger;
@@ -57,7 +56,7 @@ export declare class XYMediaManager implements XYBaseModule {
57
56
  */
58
57
  handleRosterMessage(data: any): void;
59
58
  /**
60
- * 对媒体下发的roster信息进行排序,发布
59
+ * 对媒体下发的roster信息进行排序,推送数据
61
60
  */
62
61
  sendOriginOrderRosterMessage(): void;
63
62
  /**
@@ -1,5 +1,4 @@
1
1
  import { ILayoutRoster } from '../../type/index';
2
-
3
2
  /**
4
3
  * 请流结果数据结构
5
4
  */
@@ -1,6 +1,5 @@
1
- import { OriginalNotification, OriginalRealTimeNotification, IReturnResult, ISubTitle, IEPMessage, IWaitingState, IMeetingControl, IRecordStatusNotification, IRecordingStateChanged, XYBaseModule } from '../../type/index';
2
1
  import { default as XYRTCClient } from '../client';
3
-
2
+ import { OriginalNotification, OriginalRealTimeNotification, IReturnResult, ISubTitle, IEPMessage, IWaitingState, IMeetingControl, IRecordStatusNotification, IRecordingStateChanged, XYBaseModule } from '../../type/index';
4
3
  export declare class XYMeetingControl implements XYBaseModule {
5
4
  private client;
6
5
  private logger;
@@ -1,5 +1,4 @@
1
1
  import { EVENT_TYPE } from '../../type/index';
2
-
3
2
  /**
4
3
  * 信令上报原始的消息
5
4
  *
@@ -1,7 +1,6 @@
1
- import { XYConferencePropertiesMessage, XYEnterpriseInfo, XYUicustomization } from './index.type';
2
- import { default as Client } from '../client';
3
1
  import { IConferenceInfo, IRecordPermission, IExportUserInfo, ILayout, IMediaConfig, IReqInfo, IEnterpriseConfig, LayoutAvatarType, TLayoutMap, InviteInfo, MEETING_DIRECTION, IVideoProfile, IMeetingControl, FocusViewAction } from '../../type/index';
4
-
2
+ import { default as Client } from '../client';
3
+ import { XYConferencePropertiesMessage, XYEnterpriseInfo, XYUicustomization } from './index.type';
5
4
  declare class Meeting {
6
5
  private client;
7
6
  private logger;
@@ -27,6 +26,12 @@ declare class Meeting {
27
26
  getEnterpriseConfig(): IEnterpriseConfig;
28
27
  getLayoutAvatarType(): LayoutAvatarType;
29
28
  getMeetingControlInfo(): IMeetingControl | null;
29
+ /**
30
+ * 清空已退会的终端头像
31
+ *
32
+ * @param { string[] } rosterIds - rosterId列表
33
+ */
34
+ clearLayoutAvatar(rosterIds: string[]): void;
30
35
  /**
31
36
  * 设置会控消息
32
37
  *
@@ -1,4 +1,3 @@
1
1
  import { Rule } from '@xylink/xy-toolkit';
2
-
3
2
  declare const checkMeetingPasswordRule: Record<string, Rule>;
4
3
  export { checkMeetingPasswordRule };
@@ -1,6 +1,5 @@
1
- import { default as XYRTCClient } from '../client';
2
1
  import { IReturnResult, XYBaseModule, XYCheckNumberParams } from '../../type/index';
3
-
2
+ import { default as XYRTCClient } from '../client';
4
3
  export declare class Verify implements XYBaseModule {
5
4
  private client;
6
5
  private logger;
@@ -1,10 +1,9 @@
1
- import { State } from './state';
2
- import { default as ContentTrack } from '../track/contentTrack';
3
- import { default as VideoAudioTrack } from '../track/videoAudioTrack';
4
- import { default as Logger } from '../../tools/log/logger';
5
- import { default as Client } from '../client';
6
1
  import { IStreamSender, ICandidate, PushType, ISenderMap, XYConnectState, XYStreamParameterConfig, XYRTCSessionDescriptionInit } from '../../type/index';
7
-
2
+ import { default as Client } from '../client';
3
+ import { default as Logger } from '../../tools/log/logger';
4
+ import { default as VideoAudioTrack } from '../track/videoAudioTrack';
5
+ import { default as ContentTrack } from '../track/contentTrack';
6
+ import { State } from './state';
8
7
  /**
9
8
  * Peer模块,用于管理 P2P(媒体Server) 连接和内部事件
10
9
  */
@@ -1,5 +1,4 @@
1
1
  import { PeerState, ICEState } from '../../type/index';
2
-
3
2
  /**
4
3
  * 接口表示Peer的连接状态,包括当前的Peer状态和ICE状态。
5
4
  * 用于跟踪Peer连接和ICE协商过程的状态。
@@ -1,5 +1,4 @@
1
1
  import { IStreamConfig } from '../../type/index';
2
-
3
2
  export declare class State {
4
3
  protected cacheContentStreamConfig: IStreamConfig[];
5
4
  }
@@ -1,8 +1,7 @@
1
- import { XYPluginIF } from '../../../interface/extension.type';
2
- import { XYAudioPCMOptions } from './index.type';
3
- import { XYAudioPCMProcessor } from './processor';
4
1
  import { PluginType } from '../index.type';
5
-
2
+ import { XYAudioPCMProcessor } from './processor';
3
+ import { XYAudioPCMOptions } from './index.type';
4
+ import { XYPluginIF } from '../../../interface/extension.type';
6
5
  export declare class XYAudioPCMExtension implements XYPluginIF<XYAudioPCMProcessor> {
7
6
  private version;
8
7
  private name;
@@ -1,8 +1,7 @@
1
- import { IProcessTrack } from '../../../type/track';
2
- import { XYProcessorIF } from '../../../interface/processor.type';
3
- import { XYAudioPCMExtension } from '.';
4
1
  import { XYAudioPCMOptions } from './index.type';
5
-
2
+ import { XYAudioPCMExtension } from '.';
3
+ import { XYProcessorIF } from '../../../interface/processor.type';
4
+ import { IProcessTrack } from '../../../type/track';
6
5
  /**
7
6
  * PCM音频处理器类, 使用AudioWorklet实时处理MediaStream中的音频数据
8
7
  */
@@ -1,7 +1,6 @@
1
- import { XYPluginIF } from '../../../interface/extension.type';
2
- import { XYContentPreserverProcessor } from './processor';
3
1
  import { PluginType, XYContentPreserverOptions } from './index.type';
4
-
2
+ import { XYContentPreserverProcessor } from './processor';
3
+ import { XYPluginIF } from '../../../interface/extension.type';
5
4
  export declare class XYContentPreserverExtension implements XYPluginIF<XYContentPreserverProcessor> {
6
5
  private version;
7
6
  private name;
@@ -1,7 +1,6 @@
1
- import { XYProcessorIF } from '../../../interface/processor.type';
2
- import { XYContentPreserverExtension } from './index';
3
1
  import { IProcessTrack, XYContentPreserverOptions } from './index.type';
4
-
2
+ import { XYContentPreserverExtension } from './index';
3
+ import { XYProcessorIF } from '../../../interface/processor.type';
5
4
  export declare class XYContentPreserverProcessor implements XYProcessorIF {
6
5
  private canvas;
7
6
  private canvasContext;
@@ -1,6 +1,5 @@
1
- import { XYBaseModule } from '../../type/index';
2
1
  import { default as XYRTCClient } from '../client';
3
-
2
+ import { XYBaseModule } from '../../type/index';
4
3
  export declare class XYPlugin implements XYBaseModule {
5
4
  private logger;
6
5
  private plugin;
@@ -1,5 +1,4 @@
1
1
  import { IInternals, IWorkerVideoReceiver, IVideoReceiverMessage, IQualityConfig } from '../../type/index';
2
-
3
2
  declare class Quality {
4
3
  currentInternals: IInternals;
5
4
  nextInternals: IInternals;
@@ -1,6 +1,5 @@
1
- import { IConfInfo, IInternals, XYBaseModule } from '../../type/index';
2
1
  import { default as Client } from '../client';
3
-
2
+ import { IConfInfo, IInternals, XYBaseModule } from '../../type/index';
4
3
  declare class XYQualityReport implements XYBaseModule {
5
4
  private client;
6
5
  private logger;
@@ -1,7 +1,6 @@
1
- import { XYMuteState } from '../../type/index';
2
- import { default as Logger } from '../../tools/log/logger';
3
1
  import { default as XYRTCClient } from '../client';
4
-
2
+ import { default as Logger } from '../../tools/log/logger';
3
+ import { XYMuteState } from '../../type/index';
5
4
  declare class AudioManager {
6
5
  private clientInstance;
7
6
  private logger;
@@ -1,7 +1,6 @@
1
- import { XYVideoRendererMap, XYAudioRendererMap, XYBaseModule } from '../../type/index';
2
- import { default as VideoManager } from './videoManager';
3
1
  import { default as XYRTCClient } from '../client';
4
-
2
+ import { default as VideoManager } from './videoManager';
3
+ import { XYVideoRendererMap, XYAudioRendererMap, XYBaseModule } from '../../type/index';
5
4
  export declare class XYRender implements XYBaseModule {
6
5
  private client;
7
6
  private logger;
@@ -1,6 +1,5 @@
1
- import { default as AudioManager } from './audioManager';
2
1
  import { default as VideoManager } from './videoManager';
3
-
2
+ import { default as AudioManager } from './audioManager';
4
3
  export type XYVideoRendererMap = Map<string, VideoManager>;
5
4
  export type XYAudioRendererMap = Map<string, AudioManager>;
6
5
  /**
@@ -1,6 +1,5 @@
1
- import { IRotationInfoTotalItem, XYVideoState, XYLayoutState, ILayout, XYLayoutStateResult, XYMuteState } from '../../type/index';
2
1
  import { default as Logger } from '../../tools/log/logger';
3
-
2
+ import { IRotationInfoTotalItem, XYVideoState, XYLayoutState, ILayout, XYLayoutStateResult, XYMuteState } from '../../type/index';
4
3
  declare class VideoManager {
5
4
  private logger;
6
5
  private key;
@@ -1,12 +1,28 @@
1
- import { IBulkRoster, IRoster, XYBaseModule } from '../../type/index';
2
1
  import { default as Client } from '../client';
3
-
2
+ import { IBulkRoster, IRoster, XYBaseModule } from '../../type/index';
4
3
  declare class RosterManager implements XYBaseModule {
5
4
  private client;
6
5
  private logger;
7
6
  private bulkRosterMap;
7
+ private rosters;
8
+ private hiddenRosters;
8
9
  constructor(client: Client);
9
10
  getBulkRosterMap(): Map<string, IRoster>;
11
+ getAllRosters(): IRoster[];
12
+ getHiddenRosters(): IRoster[];
13
+ getRosters(): IRoster[];
14
+ /**
15
+ * 设置隐藏的roster信息
16
+ *
17
+ * @param { IRoster[] } rosters - 隐藏的roster信息
18
+ */
19
+ setHiddenRosterInfo(rosters: IRoster[]): this;
20
+ /**
21
+ * 设置的roster信息
22
+ *
23
+ * @param { IRoster[] } rosters - roster信息
24
+ */
25
+ setRosterInfo(rosters: IRoster[]): this;
10
26
  destroy(): void;
11
27
  /**
12
28
  * 获取Roster数据
@@ -15,6 +31,15 @@ declare class RosterManager implements XYBaseModule {
15
31
  * @returns { IRoster | null } - Roster数据
16
32
  */
17
33
  getRosterById(id: string): IRoster | null;
34
+ /**
35
+ * 获取匹配的rosterId
36
+ *
37
+ * @param { { participantId: number }[] } params - participantId
38
+ * @returns { string[] } - rosterId
39
+ */
40
+ getRosterIdByEndpointId(params: {
41
+ participantId: number;
42
+ }[]): string[];
18
43
  /**
19
44
  * 订阅Roster变更消息
20
45
  *
@@ -35,5 +60,19 @@ declare class RosterManager implements XYBaseModule {
35
60
  * @param { IRoster[] } addRosterInfo - 新增Roster列表数据
36
61
  */
37
62
  private appendFullRoster;
63
+ /**
64
+ * 合并VEP数字人roster信息
65
+ *
66
+ * @param { IRoster[] } rosterInfo - 会议中的roster信息
67
+ * @param { IRoster[] } hiddenRosterInfo - 隐藏的roster信息
68
+ * @returns { IRoster[] } 合并后的roster信息
69
+ */
70
+ mergeVepRoster(rosterInfo: IRoster[], hiddenRosterInfo: IRoster[]): IRoster[];
71
+ /**
72
+ * 查找VEP数字人roster信息
73
+ *
74
+ * @returns { IRoster | null } VEP数字人roster信息
75
+ */
76
+ findVepRoster(): IRoster | undefined;
38
77
  }
39
78
  export default RosterManager;
@@ -1,8 +1,7 @@
1
- import { ICodeList, IConfMgmtUrl } from '../../type/client';
2
- import { default as Action } from '../../action/index';
3
- import { default as Client } from '../client';
4
1
  import { ClientServerConfig, ServerLinkData, XYServerInfo, XYServerUrlInfo } from './index.type';
5
-
2
+ import { default as Client } from '../client';
3
+ import { default as Action } from '../../action/index';
4
+ import { ICodeList, IConfMgmtUrl } from '../../type/client';
6
5
  declare class ServerManager {
7
6
  private client;
8
7
  private logger;
@@ -1,6 +1,5 @@
1
- import { IMonitorReportMessage, XYBaseModule } from '../../type/index';
2
1
  import { default as XYRTCClient } from '../client';
3
-
2
+ import { IMonitorReportMessage, XYBaseModule } from '../../type/index';
4
3
  export declare class XYSignal implements XYBaseModule {
5
4
  private client;
6
5
  private logger;
@@ -1,7 +1,6 @@
1
- import { XYBaseModule } from '../../type/index';
2
- import { Socket } from '../../tools/socket/socket';
3
1
  import { default as XYRTCClient } from '../client';
4
-
2
+ import { Socket } from '../../tools/socket/socket';
3
+ import { XYBaseModule } from '../../type/index';
5
4
  export declare class XYClientSocket implements XYBaseModule {
6
5
  private client;
7
6
  private logger;
@@ -1,12 +1,11 @@
1
- import { AnalyserManager } from '../../tools/analyser/manager';
2
- import { default as ContentTrack } from '../track/contentTrack';
3
- import { default as VideoAudioTrack } from '../track/videoAudioTrack';
4
- import { default as XYRTCClient } from '../client';
5
- import { default as Logger } from '../../tools/log/logger';
6
- import { default as Peer } from '../peer/index';
7
- import { SnapshotParams, SnapshotResult } from '@xylink/xy-toolkit';
8
1
  import { IStreamChangeType, IGetMediaStreams, StreamKind, OperateType, IInitContentStream, DualStreamMsg, AnalyserConfig, XYBaseModule } from '../../type/index';
9
-
2
+ import { SnapshotParams, SnapshotResult } from '@xylink/xy-toolkit';
3
+ import { default as Peer } from '../peer/index';
4
+ import { default as Logger } from '../../tools/log/logger';
5
+ import { default as XYRTCClient } from '../client';
6
+ import { default as VideoAudioTrack } from '../track/videoAudioTrack';
7
+ import { default as ContentTrack } from '../track/contentTrack';
8
+ import { AnalyserManager } from '../../tools/analyser/manager';
10
9
  export default class Stream implements XYBaseModule {
11
10
  logger: Logger;
12
11
  private clientInstance;