@xylink/xy-rtc-sdk 4.0.1 → 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.
- package/{README.MD → README.md} +1 -1
- package/action/ability.d.ts +151 -0
- package/action/api.d.ts +252 -0
- package/action/auth.d.ts +134 -0
- package/action/base.d.ts +13 -0
- package/action/config.d.ts +63 -0
- package/action/control.d.ts +101 -0
- package/action/enterprise.d.ts +66 -0
- package/{lib/tools/httpClient.d.ts → action/http.d.ts} +19 -11
- package/action/index.d.ts +92 -0
- package/action/index.type.d.ts +30 -0
- package/action/log.d.ts +17 -0
- package/action/meeting.d.ts +107 -0
- package/{lib/enum → enum}/client.d.ts +1 -6
- package/{lib/enum → enum}/constraints.d.ts +1 -6
- package/{lib/enum → enum}/device.d.ts +6 -0
- package/{lib/enum/errorCode.d.ts → enum/errorCode/common.d.ts} +1 -22
- package/enum/errorCode/index.d.ts +6 -0
- package/enum/errorCode/server.d.ts +10 -0
- package/enum/errorCode/signal.d.ts +15 -0
- package/{lib/enum → enum}/index.d.ts +11 -8
- package/enum/meeting.d.ts +15 -0
- package/{lib/enum → enum}/polling.d.ts +1 -0
- package/feature/artboard/index.d.ts +139 -0
- package/feature/artboard/index.type.d.ts +264 -0
- package/{lib/feature → feature}/customMessage/index.d.ts +3 -8
- package/{lib/feature → feature}/edu/index.d.ts +2 -1
- package/{lib/feature → feature}/edu/index.type.d.ts +1 -0
- package/feature/im/index.d.ts +89 -0
- package/feature/im/index.type.d.ts +30 -0
- package/feature/index.d.ts +29 -0
- package/feature/query/index.d.ts +36 -0
- package/feature/query/index.type.d.ts +61 -0
- package/{lib/feature → feature}/speaker/index.d.ts +5 -10
- package/{lib/feature → feature}/speaker/index.type.d.ts +1 -0
- package/{lib/index.d.ts → index.d.ts} +19 -21
- package/{lib/interface → interface}/clientInterface.type.d.ts +24 -11
- package/{lib/interface → interface}/contentTrackInterface.type.d.ts +1 -6
- package/{lib/interface → interface}/event.type.d.ts +60 -1
- package/{lib/interface → interface}/videoAudioTrackInterface.type.d.ts +2 -7
- package/{lib/main → main}/ability/const.d.ts +1 -0
- package/{lib/main → main}/ability/index.d.ts +5 -10
- package/main/auth/index.d.ts +160 -0
- package/main/auth/index.type.d.ts +63 -0
- package/main/client/clientBase.d.ts +60 -0
- package/main/client/clientState.d.ts +36 -0
- package/{lib/main/client.d.ts → main/client/index.d.ts} +253 -79
- package/main/client/index.type.d.ts +42 -0
- package/{lib/main → main}/device/index.d.ts +5 -15
- package/{lib/tools → main/helper}/i18n.d.ts +2 -1
- package/{lib/main → main}/helper/index.d.ts +9 -7
- package/{lib/main → main}/layout/index.d.ts +7 -16
- package/{lib/main → main}/layout/index.type.d.ts +10 -9
- package/{lib/main → main}/layout/polling.d.ts +3 -11
- package/{lib/main → main}/layout/state.d.ts +4 -10
- package/{lib/tools → main/layout}/template/index.d.ts +25 -7
- package/{lib/main/layout/template.d.ts → main/layout/template/manager.d.ts} +2 -1
- package/main/layout/template/mobile.d.ts +4 -0
- package/main/layout/template/polling.d.ts +3 -0
- package/{lib/main → main}/media/index.d.ts +13 -11
- package/{lib/main → main}/media/index.type.d.ts +1 -0
- package/{lib/main → main}/meeting/control.d.ts +20 -1
- package/{lib/main → main}/meeting/control.type.d.ts +1 -0
- package/{lib/main → main}/meeting/index.d.ts +39 -32
- package/main/meeting/index.type.d.ts +43 -0
- package/{lib/main → main}/meeting/verify.d.ts +2 -7
- package/{lib/main/peer.d.ts → main/peer/index.d.ts} +30 -25
- package/main/peer/index.type.d.ts +10 -0
- package/{lib/main → main}/plugin/index.d.ts +2 -7
- package/{lib/main → main}/quality/index.d.ts +1 -6
- package/{lib/main → main}/quality/quality.worker.d.ts +1 -4
- package/{lib/main → main}/quality/report.d.ts +2 -1
- package/{lib/main → main}/render/index.d.ts +4 -9
- package/{lib/main → main}/render/index.type.d.ts +2 -7
- package/{lib/main → main}/render/videoManager.d.ts +2 -7
- package/{lib/main → main}/roster/index.d.ts +9 -9
- package/{lib/main → main}/server/index.d.ts +73 -4
- package/main/server/index.type.d.ts +53 -0
- package/{lib/main → main}/signal/index.d.ts +2 -1
- package/{lib/main → main}/socket/index.d.ts +6 -12
- package/{lib/main → main}/stream/index.d.ts +17 -21
- package/{lib/main → main}/track/baseTrack.d.ts +6 -14
- package/{lib/main → main}/track/contentTrack.d.ts +4 -12
- package/main/track/customContentTrack.d.ts +10 -0
- package/main/track/customVideoAudioTrack.d.ts +10 -0
- package/{lib/main → main}/track/helper.d.ts +1 -1
- package/{lib/main → main}/track/videoAudioCapture.d.ts +2 -10
- package/{lib/main → main}/track/videoAudioTrack.d.ts +13 -15
- package/{lib/main → main}/vom/index.d.ts +2 -7
- package/package.json +26 -111
- package/{lib/tools/analyser.d.ts → tools/analyser/index.d.ts} +2 -9
- package/{lib/tools/analyserManager.d.ts → tools/analyser/manager.d.ts} +4 -13
- package/{lib/tools → tools}/config.d.ts +3 -10
- package/tools/data/list.d.ts +87 -0
- package/tools/data/map.d.ts +17 -0
- package/{lib/tools/detectBrowser/index.d.ts → tools/detector/browser.d.ts} +3 -3
- package/{lib/tools/detectTool → tools/detector}/index.d.ts +3 -7
- package/{lib/tools/detectStream/index.d.ts → tools/detector/stream.d.ts} +2 -9
- package/{lib/tools → tools}/emitter.d.ts +9 -3
- package/tools/frame/index.d.ts +36 -0
- package/tools/frame/index.type.d.ts +1 -0
- package/tools/index.d.ts +72 -0
- package/{lib/tools/dbManager.d.ts → tools/log/db.d.ts} +8 -14
- package/{lib/tools → tools}/log/logger.d.ts +6 -9
- package/tools/log/logger.worker.d.ts +10 -0
- package/{lib/tools → tools}/log/loggerManager.d.ts +3 -3
- package/tools/log/utils.d.ts +6 -0
- package/{lib/tools → tools}/pressure/index.d.ts +2 -9
- package/{lib/tools/promiseQueue.d.ts → tools/queue/async.d.ts} +3 -9
- package/tools/queue/queue.type.d.ts +10 -0
- package/{lib/tools/queue.d.ts → tools/queue/sync.d.ts} +3 -9
- package/{lib/tools → tools}/resize.d.ts +3 -4
- package/{lib/tools/snapshot.d.ts → tools/snapshot/index.d.ts} +3 -11
- package/tools/snapshot/index.type.d.ts +38 -0
- package/{lib/tools → tools/socket}/socket.d.ts +6 -10
- package/tools/socket/socketManager.d.ts +32 -0
- package/tools/store.d.ts +47 -0
- package/tools/utils.d.ts +162 -0
- package/{lib/tools → tools}/verify.d.ts +1 -1
- package/tools/window.d.ts +31 -0
- package/{lib/type → type}/ability.d.ts +3 -1
- package/{lib/type → type}/analyser.d.ts +1 -8
- package/{lib/type → type}/auth.d.ts +34 -0
- package/{lib/type → type}/base.d.ts +43 -11
- package/{lib/type → type}/capture.d.ts +1 -0
- package/{lib/type → type}/client.d.ts +65 -70
- package/{lib/type → type}/index.d.ts +5 -3
- package/{lib/type → type}/layout.d.ts +15 -1
- package/{lib/type → type}/logger.d.ts +1 -6
- package/{lib/type → type}/meeting.d.ts +105 -15
- package/{lib/type → type}/quality.d.ts +2 -7
- package/{lib/type → type}/stream.d.ts +4 -5
- package/{lib/type → type}/track.d.ts +1 -9
- package/xyrtc.js +23212 -0
- package/lib/action/index.d.ts +0 -415
- package/lib/enum/meeting.d.ts +0 -4
- package/lib/feature/index.d.ts +0 -3
- package/lib/main/auth/index.d.ts +0 -101
- package/lib/main/clientBase.d.ts +0 -40
- package/lib/main/clientState.d.ts +0 -56
- package/lib/main/server/index.type.d.ts +0 -21
- package/lib/main/track/customContentTrack.d.ts +0 -18
- package/lib/main/track/customVideoAudioTrack.d.ts +0 -18
- package/lib/tools/enum.d.ts +0 -6
- package/lib/tools/index.d.ts +0 -8
- package/lib/tools/log/logger.worker.d.ts +0 -13
- package/lib/tools/regex.d.ts +0 -4
- package/lib/tools/store.d.ts +0 -15
- package/lib/tools/template/mobile.d.ts +0 -9
- package/lib/tools/template/polling.d.ts +0 -8
- package/lib/tools/utils.d.ts +0 -97
- package/lib/xyrtc.cjs.js +0 -1
- package/lib/xyrtc.umd.js +0 -1
- /package/{lib/enum → enum}/analyser.d.ts +0 -0
- /package/{lib/enum → enum}/i18n.d.ts +0 -0
- /package/{lib/interface → interface}/baseModule.type.d.ts +0 -0
- /package/{lib/main → main}/device/index.type.d.ts +0 -0
- /package/{lib/main → main}/helper/index.type.d.ts +0 -0
- /package/{lib/main → main}/meeting/verify.type.d.ts +0 -0
- /package/{lib/main → main}/render/videoManager.type.d.ts +0 -0
- /package/{lib/main → main}/vom/index.type.d.ts +0 -0
- /package/{lib/tools/detectTool → tools/detector}/index.type.d.ts +0 -0
- /package/{lib/tools/detectStream/index.type.d.ts → tools/detector/stream.type.d.ts} +0 -0
- /package/{lib/tools → tools}/pressure/index.type.d.ts +0 -0
- /package/{lib/type → type}/action.d.ts +0 -0
- /package/{lib/type → type}/peer.d.ts +0 -0
- /package/{lib/type → type}/polling.d.ts +0 -0
- /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(
|
|
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
|
|
103
|
-
* @property { boolean } videoTxMute - 参会者摄像头状态,true
|
|
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
|
|
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
|
-
|
|
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,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:
|
|
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():
|
|
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,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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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(
|
|
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<
|
|
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(
|
|
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(
|
|
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(
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
3
|
+
|
|
9
4
|
export declare class Verify implements XYBaseModule {
|
|
10
5
|
private client;
|
|
11
6
|
private logger;
|