@xylink/xy-rtc-sdk 3.8.0-beta.2 → 3.8.0-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.
@@ -162,6 +162,7 @@ export default class Client extends Emmitter {
162
162
  * @property { boolean } config.bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
163
163
  * @property { boolean } config.meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
164
164
  * @property { boolean } config.meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
165
+ * @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
165
166
  * @returns { boolean }
166
167
  */
167
168
  setFeatureConfig(config: IFeatureConfig): {
@@ -755,13 +756,13 @@ export default class Client extends Emmitter {
755
756
  *
756
757
  * @private
757
758
  */
758
- private initEvent;
759
+ private initWindowResizeEvent;
759
760
  /**
760
761
  * 移除resize事件
761
762
  *
762
763
  * @private
763
764
  */
764
- private removeEvent;
765
+ private removeWindowResizeEvent;
765
766
  /**
766
767
  * 发送wss peopleCapability,通知本地采集能力,用于vom进行分配
767
768
  *
@@ -879,6 +880,13 @@ export default class Client extends Emmitter {
879
880
  * @public
880
881
  */
881
882
  reSendContentOffer(): void;
883
+ /**
884
+ * 重新计算Layout布局数据
885
+ *
886
+ * 触发机制:当页面窗口变化/Container Dom大小变化时,可主动调用同时SDK更新Layout信息
887
+ * 建议:如果业务上自行监听窗口变化和Dom大小变化,建议通过featureConfig配置autoResizeLayout为false关闭内部的事件,避免重复计算;
888
+ */
889
+ updateLayoutSize(): void;
882
890
  /**
883
891
  * 会控喊话功能,用于关联audio track与mediaGroupId通道,从而向特定通道发送音频数据
884
892
  *
@@ -4,20 +4,20 @@
4
4
  * @date 2019-11-08 15:54:21
5
5
  */
6
6
  /**
7
- * 节流函数
7
+ * 防抖函数
8
8
  *
9
- * @param fn event function
10
- * @param delay 每隔多久必须触发一次
11
- * @param atleast 最短间隔触发时间
9
+ * @param fn 原始函数
10
+ * @param delay 延迟触发时间
12
11
  */
13
- export declare const debounce: (fn: any, delay: number, atleast: number) => () => void;
12
+ export declare const debounce: (fn: any, delay: number) => () => void;
14
13
  /**
15
- * 防抖函数
14
+ * 节流函数
16
15
  *
17
- * @param fn Event function
18
- * @param wait 等待多少毫秒触发
16
+ * @param fn 原始函数
17
+ * @param delay 最后一次延迟触发时间
18
+ * @param atleast 触发最短间隔时间
19
19
  */
20
- export declare const throttle: (fn: any, wait: number) => () => void;
20
+ export declare const throttle: (fn: any, delay: number, atleast: number) => () => void;
21
21
  /**
22
22
  * 获取当前时间
23
23
  *
@@ -510,6 +510,8 @@ export interface IConfAuxProperties {
510
510
  * @property { string } numberType 会议号类型
511
511
  * @property { IConfAuxProperties } confAuxProperties 会议配置
512
512
  * @property { string } avatar 头像
513
+ * @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
514
+ * @property { string } meetingId 当前会议ID
513
515
  */
514
516
  export interface IConferenceInfo {
515
517
  callNumber?: string;
@@ -522,6 +524,7 @@ export interface IConferenceInfo {
522
524
  confAuxProperties?: IConfAuxProperties;
523
525
  avatar?: string;
524
526
  inviteInfo?: InviteInfo;
527
+ meetingId?: string;
525
528
  }
526
529
  /**
527
530
  * 会议分享信息
@@ -747,6 +750,7 @@ export interface ILayoutRoster {
747
750
  * @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
748
751
  * @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
749
752
  * @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
753
+ * @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
750
754
  */
751
755
  export interface IConfInfo {
752
756
  participantCount: number;
@@ -754,6 +758,11 @@ export interface IConfInfo {
754
758
  chairManUrl: string;
755
759
  contentUri: string;
756
760
  actSpkUri: string;
761
+ mediaGroupInfo: IMediaGroupInfo[];
762
+ }
763
+ export interface IMediaGroupInfo {
764
+ endpointCount: number;
765
+ mediagroupid: number;
757
766
  }
758
767
  /**
759
768
  * 自动布局,分页数据
@@ -1156,6 +1165,7 @@ export interface ITranslationContent {
1156
1165
  * @property { boolean } bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
1157
1166
  * @property { boolean } meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
1158
1167
  * @property { boolean } meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
1168
+ * @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
1159
1169
  */
1160
1170
  export interface IFeatureConfig {
1161
1171
  meetingShout?: boolean;
@@ -1164,6 +1174,7 @@ export interface IFeatureConfig {
1164
1174
  bandwidthSetting?: boolean;
1165
1175
  meetingInvite?: boolean;
1166
1176
  meetingOwner?: boolean;
1177
+ autoResizeLayout?: boolean;
1167
1178
  }
1168
1179
  export interface IConfMgmtUrl {
1169
1180
  pc: string;
@@ -27,6 +27,10 @@ export interface IConfCallInfo {
27
27
  /**
28
28
  * 个人云会议室信息
29
29
  * 默认只保存了部分信息
30
+ *
31
+ * @property { string? } meetingControlPassword 会控密码
32
+ * @property { string? } meetingNumber 个人云会议室号码
33
+ * @property { string? } password 入会密码
30
34
  */
31
35
  export interface ICloudRoomConfig {
32
36
  meetingControlPassword: string;