@xylink/xy-rtc-sdk 3.9.1 → 3.9.4
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/lib/action/index.d.ts +13 -6
- package/lib/index.d.ts +7 -4
- package/lib/main/client.d.ts +31 -12
- package/lib/main/deviceManager.d.ts +3 -1
- package/lib/main/helper.d.ts +9 -1
- package/lib/main/iauth.d.ts +4 -2
- package/lib/main/layout/index.d.ts +60 -15
- package/lib/main/layout/template.d.ts +10 -2
- package/lib/main/meeting.d.ts +11 -2
- package/lib/main/peer.d.ts +2 -0
- package/lib/tools/logger.d.ts +1 -0
- package/lib/type/base.d.ts +14 -0
- package/lib/type/client.d.ts +31 -8
- package/lib/type/layout.d.ts +38 -6
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +2 -1
package/lib/type/layout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILayout } from './client';
|
|
1
|
+
import { ILayout, IRoster } from './client';
|
|
2
2
|
import { StreamResolutionLevel, VideoQuality } from './stream';
|
|
3
3
|
/**
|
|
4
4
|
* Layout头像类型
|
|
@@ -141,8 +141,9 @@ export interface TemplateInfo {
|
|
|
141
141
|
* @param { TemplateMode | ContentTemplateMode } modeType - 模版类型
|
|
142
142
|
* @param { number } currentCount - 画面数量
|
|
143
143
|
* @param { number } participantCount - 会中总人数
|
|
144
|
-
* @param { boolean }
|
|
144
|
+
* @param { boolean } isEnableHideLocalView - 是否隐藏本地画面模式
|
|
145
145
|
* @param { boolean } isChairmanMode - 是否是主会场模式
|
|
146
|
+
* @param { boolean } isInDialogMode - 是否是对话模式布局
|
|
146
147
|
* @param { TemplateType } templateType - 全屏画面类型
|
|
147
148
|
* @param { LayoutOrientationType } orientation - 是否是移动端,及方向
|
|
148
149
|
* @param { FocusViewConfig } focusViewConfig - 切换的主画面信息
|
|
@@ -151,8 +152,9 @@ export interface TemplateParams {
|
|
|
151
152
|
modeType?: TemplateMode | ContentTemplateMode;
|
|
152
153
|
currentCount?: number;
|
|
153
154
|
participantCount?: number;
|
|
154
|
-
|
|
155
|
+
isEnableHideLocalView?: boolean;
|
|
155
156
|
isChairmanMode?: boolean;
|
|
157
|
+
isInDialogMode?: boolean;
|
|
156
158
|
templateType?: TemplateType;
|
|
157
159
|
orientation?: LayoutOrientationType;
|
|
158
160
|
focusViewConfig?: FocusViewConfig;
|
|
@@ -170,12 +172,42 @@ export declare enum LayoutOrientationType {
|
|
|
170
172
|
MOBILE_VERTICAL = 1
|
|
171
173
|
}
|
|
172
174
|
/**
|
|
173
|
-
*
|
|
175
|
+
* 焦点画面来源
|
|
174
176
|
*
|
|
175
|
-
* @
|
|
177
|
+
* @param NONE 0 - 无
|
|
178
|
+
* @param USER 1 - 用户
|
|
179
|
+
* @param MEETING 2 - 会控
|
|
180
|
+
*/
|
|
181
|
+
export declare enum FocusViewKind {
|
|
182
|
+
NONE = 0,
|
|
183
|
+
USER = 1,
|
|
184
|
+
MEETING = 2
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 焦点画面参数
|
|
188
|
+
*
|
|
189
|
+
* @property { string } viewId - 指定的主画面的RosterId
|
|
176
190
|
* @property { TemplateType } type - 画面类型
|
|
191
|
+
* @property { IRoster|null } roster - 焦点画面roster信息
|
|
192
|
+
* @property { string } rosterId - 焦点画面rosterId
|
|
193
|
+
* @property { FocusViewKind } kind - 来源
|
|
177
194
|
*/
|
|
178
195
|
export interface FocusViewConfig {
|
|
179
|
-
|
|
196
|
+
viewId: string;
|
|
180
197
|
type: TemplateType;
|
|
198
|
+
roster: IRoster | null;
|
|
199
|
+
rosterId?: string;
|
|
200
|
+
kind?: FocusViewKind;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* 需要管理员广播才能收看内容共享
|
|
204
|
+
*
|
|
205
|
+
* @property { boolean } is - 是否开启了指定内容广播
|
|
206
|
+
* @property { string } audioTrackId - 广播的audioTrackId
|
|
207
|
+
* @property { string } contentUrl - 广播的contentUrl
|
|
208
|
+
*/
|
|
209
|
+
export interface ContentOnholdInfo {
|
|
210
|
+
is: boolean;
|
|
211
|
+
audioTrackId: string;
|
|
212
|
+
contentUrl: string;
|
|
181
213
|
}
|