@xylink/xy-rtc-sdk 3.9.11-private.6 → 4.0.0
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 +36 -13
- package/lib/action/index.d.ts +106 -36
- package/lib/enum/analyser.d.ts +7 -0
- package/lib/enum/client.d.ts +8 -2
- package/lib/enum/constraints.d.ts +51 -0
- package/lib/enum/device.d.ts +28 -0
- package/lib/enum/errorCode.d.ts +8 -2
- package/lib/enum/i18n.d.ts +6 -0
- package/lib/enum/index.d.ts +90 -7
- package/lib/enum/meeting.d.ts +4 -0
- package/lib/enum/polling.d.ts +2 -11
- package/lib/feature/customMessage/index.d.ts +29 -0
- package/lib/feature/edu/index.d.ts +34 -0
- package/lib/feature/edu/index.type.d.ts +29 -0
- package/lib/feature/index.d.ts +3 -0
- package/lib/feature/speaker/index.d.ts +81 -0
- package/lib/feature/speaker/index.type.d.ts +17 -0
- package/lib/index.d.ts +84 -31
- package/lib/interface/baseModule.type.d.ts +9 -0
- package/lib/interface/clientInterface.type.d.ts +128 -0
- package/lib/interface/contentTrackInterface.type.d.ts +15 -0
- package/lib/interface/event.type.d.ts +444 -0
- package/lib/interface/videoAudioTrackInterface.type.d.ts +17 -0
- package/lib/main/ability/const.d.ts +5 -0
- package/lib/main/ability/index.d.ts +37 -0
- package/lib/main/{iauth.d.ts → auth/index.d.ts} +34 -26
- package/lib/main/client.d.ts +643 -637
- package/lib/main/clientBase.d.ts +40 -0
- package/lib/main/clientState.d.ts +56 -0
- package/lib/main/device/index.d.ts +272 -0
- package/lib/main/device/index.type.d.ts +204 -0
- package/lib/main/helper/index.d.ts +118 -0
- package/lib/main/helper/index.type.d.ts +12 -0
- package/lib/main/layout/index.d.ts +74 -108
- package/lib/main/layout/index.type.d.ts +282 -0
- package/lib/main/layout/polling.d.ts +17 -13
- package/lib/main/layout/state.d.ts +163 -0
- package/lib/main/layout/template.d.ts +3 -3
- package/lib/main/media/index.d.ts +177 -0
- package/lib/main/media/index.type.d.ts +29 -0
- package/lib/main/meeting/control.d.ts +107 -0
- package/lib/main/meeting/control.type.d.ts +24 -0
- package/lib/main/{meeting.d.ts → meeting/index.d.ts} +58 -28
- package/lib/main/meeting/verify.d.ts +70 -0
- package/lib/main/meeting/verify.type.d.ts +12 -0
- package/lib/main/peer.d.ts +67 -19
- package/lib/main/plugin/index.d.ts +28 -0
- package/lib/{tools/quality.d.ts → main/quality/index.d.ts} +2 -2
- package/lib/{tools → main/quality}/quality.worker.d.ts +1 -1
- package/lib/main/{qualityManager.d.ts → quality/report.d.ts} +11 -5
- package/lib/main/render/index.d.ts +116 -0
- package/lib/main/render/index.type.d.ts +36 -0
- package/lib/main/render/videoManager.d.ts +190 -0
- package/lib/main/render/videoManager.type.d.ts +66 -0
- package/lib/main/roster/index.d.ts +39 -0
- package/lib/main/server/index.d.ts +79 -0
- package/lib/main/server/index.type.d.ts +21 -0
- package/lib/main/signal/index.d.ts +15 -0
- package/lib/main/socket/index.d.ts +95 -0
- package/lib/main/stream/index.d.ts +182 -0
- package/lib/main/track/baseTrack.d.ts +178 -0
- package/lib/main/track/contentTrack.d.ts +168 -0
- package/lib/main/track/customContentTrack.d.ts +18 -0
- package/lib/main/track/customVideoAudioTrack.d.ts +18 -0
- package/lib/main/track/helper.d.ts +53 -0
- package/lib/main/track/videoAudioCapture.d.ts +90 -0
- package/lib/main/track/videoAudioTrack.d.ts +273 -0
- package/lib/main/vom/index.d.ts +44 -0
- package/lib/main/vom/index.type.d.ts +1 -0
- package/lib/tools/analyser.d.ts +53 -0
- package/lib/tools/analyserManager.d.ts +55 -0
- package/lib/tools/dbManager.d.ts +12 -1
- package/lib/tools/{browser.d.ts → detectBrowser/index.d.ts} +53 -5
- package/lib/tools/detectStream/index.d.ts +84 -0
- package/lib/tools/detectStream/index.type.d.ts +56 -0
- package/lib/tools/detectTool/index.d.ts +191 -0
- package/lib/tools/detectTool/index.type.d.ts +51 -0
- package/lib/tools/emitter.d.ts +27 -6
- package/lib/tools/enum.d.ts +1 -1
- package/lib/tools/httpClient.d.ts +23 -6
- package/lib/tools/i18n.d.ts +1 -1
- package/lib/tools/index.d.ts +5 -5
- package/lib/tools/{logger.d.ts → log/logger.d.ts} +59 -29
- package/lib/tools/{logger.worker.d.ts → log/logger.worker.d.ts} +1 -1
- package/lib/tools/log/loggerManager.d.ts +70 -0
- package/lib/tools/pressure/index.d.ts +33 -0
- package/lib/tools/pressure/index.type.d.ts +22 -0
- package/lib/tools/promiseQueue.d.ts +51 -0
- package/lib/tools/queue.d.ts +12 -15
- package/lib/tools/resize.d.ts +65 -0
- package/lib/tools/snapshot.d.ts +31 -0
- package/lib/tools/socket.d.ts +109 -32
- package/lib/tools/template/index.d.ts +3 -3
- package/lib/tools/template/mobile.d.ts +1 -1
- package/lib/tools/template/polling.d.ts +1 -1
- package/lib/tools/utils.d.ts +22 -19
- package/lib/tools/verify.d.ts +7 -0
- package/lib/type/ability.d.ts +25 -0
- package/lib/type/analyser.d.ts +43 -0
- package/lib/type/{iauth.d.ts → auth.d.ts} +22 -29
- package/lib/type/base.d.ts +41 -33
- package/lib/type/capture.d.ts +9 -0
- package/lib/type/client.d.ts +404 -498
- package/lib/type/index.d.ts +26 -2
- package/lib/type/layout.d.ts +25 -49
- package/lib/type/logger.d.ts +37 -12
- package/lib/type/meeting.d.ts +266 -27
- package/lib/type/peer.d.ts +24 -1
- package/lib/type/polling.d.ts +1 -49
- package/lib/type/quality.d.ts +16 -6
- package/lib/type/socket.d.ts +42 -0
- package/lib/type/stream.d.ts +154 -116
- package/lib/type/track.d.ts +139 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +11 -3
- package/lib/enum/contraints.d.ts +0 -50
- package/lib/main/deviceManager.d.ts +0 -185
- package/lib/main/helper.d.ts +0 -79
- package/lib/main/stream.d.ts +0 -396
- package/lib/main/videoManager.d.ts +0 -57
- package/lib/tools/audioLevel.d.ts +0 -23
- package/lib/tools/detect.d.ts +0 -43
- package/lib/type/device.d.ts +0 -83
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
import { ContentTemplateMode, LayoutConfig, TemplateMode } from '../../type/index';
|
|
12
|
+
export declare class XYLayoutManagerState implements XYBaseModule {
|
|
13
|
+
private client;
|
|
14
|
+
private logger;
|
|
15
|
+
private layoutManager;
|
|
16
|
+
private isLocalShareContent;
|
|
17
|
+
private isContentMode;
|
|
18
|
+
private isChairmanMode;
|
|
19
|
+
private isInDialogMode;
|
|
20
|
+
private isEnableHideLocalView;
|
|
21
|
+
private forceFullScreenId;
|
|
22
|
+
private layoutConfig;
|
|
23
|
+
private templateMode;
|
|
24
|
+
private cacheTemplateMode;
|
|
25
|
+
constructor(client: Client, layout: LayoutManager);
|
|
26
|
+
/**
|
|
27
|
+
* 获取Layout Config配置信息
|
|
28
|
+
*
|
|
29
|
+
* @returns { LayoutConfig } - 配置信息
|
|
30
|
+
*/
|
|
31
|
+
getLayoutConfig(): LayoutConfig;
|
|
32
|
+
/**
|
|
33
|
+
* 更新Layout Config配置信息
|
|
34
|
+
*
|
|
35
|
+
* @param { LayoutConfig } layoutConfig - 新的配置信息
|
|
36
|
+
* @returns { LayoutConfig } - 配置信息
|
|
37
|
+
*/
|
|
38
|
+
setLayoutConfig(layoutConfig: LayoutConfig): LayoutConfig;
|
|
39
|
+
/**
|
|
40
|
+
* 获取是否是Content模式
|
|
41
|
+
*
|
|
42
|
+
* @returns { boolean } - 是否是Content模式
|
|
43
|
+
*/
|
|
44
|
+
getIsContentMode(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 获取是否是主会场模式
|
|
47
|
+
*
|
|
48
|
+
* @returns { boolean } - 是否是主会场模式
|
|
49
|
+
*/
|
|
50
|
+
getIsChairmanMode(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 更新是否是主会场模式(远端设置为主会场)
|
|
53
|
+
*
|
|
54
|
+
* 会控下发的chairmanUri标识当前会议设置了主会场,
|
|
55
|
+
* 会控的chairmanUri有值时,媒体下发的chairManUrl才标识最终入会的主会场的CallUri
|
|
56
|
+
*/
|
|
57
|
+
updateIsChairmanMode(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 获取是否是隐藏本地画面模式
|
|
60
|
+
*
|
|
61
|
+
* @returns { boolean } - 是否是隐藏本地画面模式
|
|
62
|
+
*/
|
|
63
|
+
getIsEnableHideLocalView(): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 是否开启隐藏本地模式
|
|
66
|
+
*
|
|
67
|
+
* @returns { boolean } - 是否是隐藏本地画面模式
|
|
68
|
+
*/
|
|
69
|
+
updateIsEnableHideLocalView(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* 获取是否是对话模式
|
|
72
|
+
*
|
|
73
|
+
* @returns { boolean } - 是否是对话模式
|
|
74
|
+
*/
|
|
75
|
+
getIsInDialogMode(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 当前是否是对话模式,且没有发送或接收content
|
|
78
|
+
* content优先级大于对话模式
|
|
79
|
+
*
|
|
80
|
+
* @returns { boolean } - 是否是对话模式
|
|
81
|
+
*/
|
|
82
|
+
updateIsInDialogMode(): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* 更新Content模式
|
|
85
|
+
*
|
|
86
|
+
* @returns { boolean } - 是否是Content模式
|
|
87
|
+
*/
|
|
88
|
+
updateIsContentMode(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 获取是否是本地分享Content模式
|
|
91
|
+
*
|
|
92
|
+
* @returns { boolean } - 是否是本地分享Content模式
|
|
93
|
+
*/
|
|
94
|
+
getIsLocalShareContent(): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* 设置本地分享Content模式
|
|
97
|
+
*
|
|
98
|
+
* @param { boolean } is - 是否是本地分享Content模式
|
|
99
|
+
* @returns { boolean } - 是否分享Content
|
|
100
|
+
*/
|
|
101
|
+
setIsLocalShareContent(is: boolean): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* 获取当前模版模型
|
|
104
|
+
*
|
|
105
|
+
* @returns { TemplateMode | ContentTemplateMode } - 模版模型
|
|
106
|
+
*/
|
|
107
|
+
getTemplateMode(): TemplateMode | ContentTemplateMode;
|
|
108
|
+
/**
|
|
109
|
+
* 设置模版模型
|
|
110
|
+
*
|
|
111
|
+
* @param { TemplateMode | ContentTemplateMode } mode - 新的模版模型
|
|
112
|
+
* @returns { TemplateMode | ContentTemplateMode } - 返回最新的模型
|
|
113
|
+
*/
|
|
114
|
+
setTemplateMode(mode: TemplateMode | ContentTemplateMode): TemplateMode | ContentTemplateMode;
|
|
115
|
+
/**
|
|
116
|
+
* 获取缓存的模版模型
|
|
117
|
+
*
|
|
118
|
+
* @returns { TemplateMode | ContentTemplateMode } - 模版模型
|
|
119
|
+
*/
|
|
120
|
+
getCacheTemplateMode(): TemplateMode | ContentTemplateMode;
|
|
121
|
+
/**
|
|
122
|
+
* 设置缓存模版模型
|
|
123
|
+
*
|
|
124
|
+
* @param { TemplateMode | ContentTemplateMode } mode - 新的缓存的模型
|
|
125
|
+
* @returns { TemplateMode | ContentTemplateMode } - 返回缓存的模型
|
|
126
|
+
*/
|
|
127
|
+
setCacheTemplateMode(mode: TemplateMode | ContentTemplateMode): TemplateMode | ContentTemplateMode;
|
|
128
|
+
/**
|
|
129
|
+
* 获取强制全屏ID
|
|
130
|
+
*
|
|
131
|
+
* @returns { string } - 强制全屏ID
|
|
132
|
+
*/
|
|
133
|
+
getForceFullScreenId(): string;
|
|
134
|
+
/**
|
|
135
|
+
* 设置全屏ID
|
|
136
|
+
*
|
|
137
|
+
* @param { string } id - 新的全屏ID
|
|
138
|
+
* @returns { string } - 全屏ID
|
|
139
|
+
*/
|
|
140
|
+
setForceFullScreenId(id: string): string;
|
|
141
|
+
/**
|
|
142
|
+
* 获取是否是自动布局
|
|
143
|
+
*
|
|
144
|
+
* 场景:用于是否排除轮询多画面状态,后续可以根据需求改枚举状态,获取多种布局状态
|
|
145
|
+
*/
|
|
146
|
+
getIsAutoLayout(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* 获取Layout布局状态
|
|
149
|
+
*
|
|
150
|
+
* @returns { object }
|
|
151
|
+
*/
|
|
152
|
+
getCurrentState(): {
|
|
153
|
+
isForceLayout: boolean;
|
|
154
|
+
isInDialogMode: boolean;
|
|
155
|
+
isContentMode: boolean;
|
|
156
|
+
isPolling: boolean;
|
|
157
|
+
isSwitchAutoLayout: boolean;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 资源销毁
|
|
161
|
+
*/
|
|
162
|
+
destroy(): void;
|
|
163
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateInfo, TemplateParams } from '../../type';
|
|
1
|
+
import { TemplateInfo, TemplateParams } from '../../type/index';
|
|
2
2
|
declare class TemplateManager {
|
|
3
3
|
private templates;
|
|
4
4
|
private commonTemplates;
|
|
@@ -8,7 +8,7 @@ declare class TemplateManager {
|
|
|
8
8
|
* 获取对应的模版
|
|
9
9
|
*
|
|
10
10
|
* @param { TemplateMode } modeType 模版类型
|
|
11
|
-
* @param { number }
|
|
11
|
+
* @param { number } templateCount 模版对应画面数量
|
|
12
12
|
* @param { number } participantCount 会议总人数
|
|
13
13
|
* @param { boolean } isEnableHideLocalView 是否隐藏Local, 默认:false
|
|
14
14
|
* @param { boolean } isChairmanMode 是否有主会场, 默认:false
|
|
@@ -17,7 +17,7 @@ declare class TemplateManager {
|
|
|
17
17
|
* @param { boolean } isInDialogMode 是否是对话模式布局, 默认:false
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
getTemplate({ modeType,
|
|
20
|
+
getTemplate({ modeType, templateCount, participantCount, isEnableHideLocalView, isChairmanMode, templateType, orientation, focusViewConfig, isInDialogMode }: TemplateParams): TemplateInfo;
|
|
21
21
|
/**
|
|
22
22
|
* 处理指定的焦点画面模版信息
|
|
23
23
|
*
|
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
import { XYLayoutRosters } from './index.type';
|
|
11
|
+
export declare class XYMediaManager implements XYBaseModule {
|
|
12
|
+
private client;
|
|
13
|
+
private logger;
|
|
14
|
+
rosters: IRoster[];
|
|
15
|
+
activeSpeaker: ISpeakerInfo;
|
|
16
|
+
private videoTrackList;
|
|
17
|
+
private audioTrackList;
|
|
18
|
+
private contentOnholdInfo;
|
|
19
|
+
private contentSenderPid;
|
|
20
|
+
speaker: Speaker | null;
|
|
21
|
+
layoutRosters: XYLayoutRosters;
|
|
22
|
+
private rotationInfo;
|
|
23
|
+
private customMessage;
|
|
24
|
+
private audioTrackLength;
|
|
25
|
+
private videoTrackLength;
|
|
26
|
+
constructor(client: XYRTCClient);
|
|
27
|
+
getContentSenderPid(): number;
|
|
28
|
+
getSpeakerManager(): Speaker | null;
|
|
29
|
+
getLayoutRosters(): XYLayoutRosters;
|
|
30
|
+
getVideoTrackList(): ICustomStreamTrack[];
|
|
31
|
+
getOriginRosters(): IRoster[];
|
|
32
|
+
getActiveSpeaker(): ISpeakerInfo;
|
|
33
|
+
getRotationInfo(): IRotationInfoTotalItem[];
|
|
34
|
+
getAudioTrackList(): ICustomStreamTrack[];
|
|
35
|
+
destroy(): void;
|
|
36
|
+
/**
|
|
37
|
+
* 重置状态
|
|
38
|
+
*/
|
|
39
|
+
resetTrackList(): void;
|
|
40
|
+
/**
|
|
41
|
+
* 监听Peer模块上Track轨道数据
|
|
42
|
+
*/
|
|
43
|
+
handleTrackEvent(e: RTCTrackEvent): void;
|
|
44
|
+
/**
|
|
45
|
+
* 合并Track轨道数据
|
|
46
|
+
*
|
|
47
|
+
* @param { RTCTrackEvent } e - Track事件
|
|
48
|
+
*/
|
|
49
|
+
mergeTrackList(e: RTCTrackEvent): void;
|
|
50
|
+
/**
|
|
51
|
+
* content onhold时,处理content audio
|
|
52
|
+
*
|
|
53
|
+
* @private
|
|
54
|
+
* @param { ITrackInfo } rest
|
|
55
|
+
*/
|
|
56
|
+
private handleContentOnholdAudio;
|
|
57
|
+
/**
|
|
58
|
+
* 处理Roster列表消息
|
|
59
|
+
*
|
|
60
|
+
* @param { object } data - 媒体下发的Roster消息数据
|
|
61
|
+
*/
|
|
62
|
+
handleRosterMessage(data: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* 对媒体下发的roster信息进行排序,发布
|
|
65
|
+
*/
|
|
66
|
+
sendOriginOrderRosterMessage(): void;
|
|
67
|
+
/**
|
|
68
|
+
* 处理Active Speaker消息
|
|
69
|
+
*
|
|
70
|
+
* @param { ISpeakerInfo } speaker - 媒体下发的Active Speaker消息数据
|
|
71
|
+
*/
|
|
72
|
+
handleSpeakersInfoMessage(speaker: ISpeakerInfo): void;
|
|
73
|
+
/**
|
|
74
|
+
* 处理实时讲话人消息
|
|
75
|
+
*
|
|
76
|
+
* @param { SpeakersInfoItem[] } data - 媒体下发的实时讲话人消息数据
|
|
77
|
+
*/
|
|
78
|
+
handleRealTimeSpeakerInfoMessage(speakerInfos: SpeakersInfoItem[]): void;
|
|
79
|
+
/**
|
|
80
|
+
* 处理屏幕旋转信息消息
|
|
81
|
+
*
|
|
82
|
+
* @param { object } data - 媒体下发的屏幕旋转信息消息数据
|
|
83
|
+
*/
|
|
84
|
+
handleRotationChangeMessage(data: any): void;
|
|
85
|
+
/**
|
|
86
|
+
* 处理旋转信息
|
|
87
|
+
*/
|
|
88
|
+
private updateRotationInfo;
|
|
89
|
+
/**
|
|
90
|
+
* 处理媒体Conf Change Info消息
|
|
91
|
+
*
|
|
92
|
+
* @param { object } data - 媒体下发的Conf Change Info消息数据
|
|
93
|
+
*/
|
|
94
|
+
handleConfChangeInfoMessage(data: any): void;
|
|
95
|
+
/**
|
|
96
|
+
* 处理NewLayout模式下,Layout Result EX消息
|
|
97
|
+
*
|
|
98
|
+
* @param { object } data - 媒体下发的Layout Result EX消息数据
|
|
99
|
+
*/
|
|
100
|
+
handleLayoutResultExMessage(data: any): void;
|
|
101
|
+
/**
|
|
102
|
+
* 处理出入会消息
|
|
103
|
+
*
|
|
104
|
+
* @param { object } data - 媒体下发的出入会消息数据
|
|
105
|
+
*/
|
|
106
|
+
handleInoutNotifyMessage(data: any): void;
|
|
107
|
+
/**
|
|
108
|
+
* 处理订阅Roster消息
|
|
109
|
+
*
|
|
110
|
+
* @param { object } data - 媒体下发的订阅Roster消息数据
|
|
111
|
+
*/
|
|
112
|
+
handleBulkRosterMessage(data: any): void;
|
|
113
|
+
/**
|
|
114
|
+
* 处理Content Onhold消息
|
|
115
|
+
*
|
|
116
|
+
* @param { object } data - 媒体下发的Content Onhold消息数据
|
|
117
|
+
*/
|
|
118
|
+
handleConfPropertiesMessage(data: any): void;
|
|
119
|
+
/**
|
|
120
|
+
* 处理contentOnhold
|
|
121
|
+
*
|
|
122
|
+
* @param { IConfProperty } info - Content Onhold消息数据
|
|
123
|
+
*/
|
|
124
|
+
private handleContentOnhold;
|
|
125
|
+
/**
|
|
126
|
+
* 接收多分组通道消息
|
|
127
|
+
* @param { object } data - 媒体下发的多分组通道消息数据
|
|
128
|
+
*/
|
|
129
|
+
handleMultiGroupInfoMessage(data: any): void;
|
|
130
|
+
/**
|
|
131
|
+
* 接收通话字幕内容消息
|
|
132
|
+
*
|
|
133
|
+
* @param { object } data - 媒体下发的通话字幕内容消息
|
|
134
|
+
*/
|
|
135
|
+
handleTranslationContentMessage(data: any): void;
|
|
136
|
+
/**
|
|
137
|
+
* 处理媒体转发的用户自定义消息
|
|
138
|
+
*
|
|
139
|
+
* @param { object } data - 媒体下发的用户自定义消息数据
|
|
140
|
+
*/
|
|
141
|
+
handleUserCustomBizMessage(data: any): void;
|
|
142
|
+
/**
|
|
143
|
+
* 发送自定义消息
|
|
144
|
+
*
|
|
145
|
+
* @param { object } config - 配置参数
|
|
146
|
+
* @param { number } config.toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
|
|
147
|
+
* @param { string } config.data - 消息内容,JSON字符串;因业务数据可能会传输图片,需要对二进制数据进行base64编码,消息长度限制最大:1030KB
|
|
148
|
+
* @return { IReturnResult } - 返回结果
|
|
149
|
+
*/
|
|
150
|
+
sendCustomMessage(config: ICustomMessageConfig): IReturnResult;
|
|
151
|
+
/**
|
|
152
|
+
* 设置多分组通道,通用方法
|
|
153
|
+
*
|
|
154
|
+
* @param { 'start' | 'stop' } type 启用或者停止多分组通道能力
|
|
155
|
+
* @param { Key[] } mediagrpIds 多分组sessionId,可以配置多个或一个值
|
|
156
|
+
* @returns { IReturnResult } - 操作结果
|
|
157
|
+
*/
|
|
158
|
+
setMonitorGroup(type: 'start' | 'stop', mediagrpIds: Key[]): IReturnResult;
|
|
159
|
+
/**
|
|
160
|
+
* 发送带宽配置
|
|
161
|
+
*/
|
|
162
|
+
sendWebRxBandwidth(): void;
|
|
163
|
+
/**
|
|
164
|
+
* 通知媒体content能力
|
|
165
|
+
*
|
|
166
|
+
* @param { Stream } stream 本地contentStream
|
|
167
|
+
*/
|
|
168
|
+
sendContentCapability(): void;
|
|
169
|
+
/**
|
|
170
|
+
* 通知本地采集能力,用于vom进行分配
|
|
171
|
+
*/
|
|
172
|
+
sendPeopleCapability(): void;
|
|
173
|
+
/**
|
|
174
|
+
* 告知媒体是否开启出入会通知
|
|
175
|
+
*/
|
|
176
|
+
sendConfParam(): void;
|
|
177
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ILayoutRoster } from '../../type/index';
|
|
2
|
+
/**
|
|
3
|
+
* 请流结果数据结构
|
|
4
|
+
*/
|
|
5
|
+
export interface XYLayoutRosters {
|
|
6
|
+
content: ILayoutRoster[];
|
|
7
|
+
people: ILayoutRoster[];
|
|
8
|
+
total: ILayoutRoster[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 多分组通道信息
|
|
12
|
+
*
|
|
13
|
+
* @param { string } id - 多分组通道
|
|
14
|
+
* @param { string } calluri - 指定设备ID
|
|
15
|
+
*/
|
|
16
|
+
export interface XYMediaGrps {
|
|
17
|
+
id: string;
|
|
18
|
+
calluri: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 多分组通道消息
|
|
22
|
+
*
|
|
23
|
+
* @param { string } endpointId - 设备ID
|
|
24
|
+
* @param { XYMediaGrps[] } mediagrps - 多分组通道信息
|
|
25
|
+
*/
|
|
26
|
+
export interface XYMultiGroupInfo {
|
|
27
|
+
endpointId: string;
|
|
28
|
+
mediagrps: XYMediaGrps[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import XYRTCClient from '../client';
|
|
2
|
+
import { OriginalNotification, OriginalRealTimeNotification, IReturnResult, ISubTitle, IEPMessage, IWaitingState, IMeetingControl, IRecordStatusNotification, IRecordingStateChanged, XYBaseModule } from '../../type/index';
|
|
3
|
+
export declare class XYMeetingControl implements XYBaseModule {
|
|
4
|
+
private client;
|
|
5
|
+
private logger;
|
|
6
|
+
private action;
|
|
7
|
+
private onhold;
|
|
8
|
+
private handStatus;
|
|
9
|
+
private cacheMeetingControlMessage;
|
|
10
|
+
private recordStatusNotification;
|
|
11
|
+
private recordState;
|
|
12
|
+
constructor(client: XYRTCClient);
|
|
13
|
+
destroy(): void;
|
|
14
|
+
getOnHold(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 设置本地是否在等候室
|
|
17
|
+
*
|
|
18
|
+
* @param { boolean } onhold - 是否在等候室
|
|
19
|
+
*/
|
|
20
|
+
setOnHold(onhold: boolean): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 本地举手、结束发言等操作
|
|
23
|
+
*
|
|
24
|
+
* @param { 'handup' | 'handdown' | 'mute' } type 操作类型
|
|
25
|
+
* @param { boolean } handStatus 是否举手
|
|
26
|
+
* @returns { Promise<boolean> } 举手状态
|
|
27
|
+
*/
|
|
28
|
+
onHand(type: 'handup' | 'handdown' | 'mute', handStatus: boolean): Promise<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* 处理联席主持人/主持人/改名权限 等消息
|
|
31
|
+
*
|
|
32
|
+
* @param { OriginalNotification } data - 消息内容
|
|
33
|
+
*/
|
|
34
|
+
handleNotificationMessage(data: OriginalNotification): void;
|
|
35
|
+
/**
|
|
36
|
+
* 会控互动工具相关数据, 签到等
|
|
37
|
+
*
|
|
38
|
+
* @param { OriginalRealTimeNotification } data - 信令下发的原始数据
|
|
39
|
+
*/
|
|
40
|
+
handleRealTimeNotificationMessage(data: OriginalRealTimeNotification): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* 获取签到文案
|
|
43
|
+
*
|
|
44
|
+
* @property { SignInTextParams } - 参数
|
|
45
|
+
* @returns { Promise<SignInText | null> } - 签到文案
|
|
46
|
+
*/
|
|
47
|
+
private getSignInText;
|
|
48
|
+
/**
|
|
49
|
+
* 签到
|
|
50
|
+
*
|
|
51
|
+
* @property { string } questionnaireId - 业务ID
|
|
52
|
+
* @returns { Promise<IReturnResult> } - 签到结果
|
|
53
|
+
*/
|
|
54
|
+
signIn(questionnaireId: string): Promise<IReturnResult>;
|
|
55
|
+
/**
|
|
56
|
+
* 上报Web轮询能力
|
|
57
|
+
*/
|
|
58
|
+
reportPollingCapability(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* 处理字幕、点名消息
|
|
61
|
+
*
|
|
62
|
+
* @param { ISubTitle } data - 字幕、点名消息
|
|
63
|
+
*/
|
|
64
|
+
onSubTitle(data: ISubTitle): void;
|
|
65
|
+
/**
|
|
66
|
+
* 处理会控上报开启/关闭摄像头事件
|
|
67
|
+
*
|
|
68
|
+
* @param { Object } data - 远端数据
|
|
69
|
+
*/
|
|
70
|
+
handleEPMessage(data: IEPMessage): void;
|
|
71
|
+
/**
|
|
72
|
+
* 处理等候室状态
|
|
73
|
+
*
|
|
74
|
+
* @param { IWaitingState } data
|
|
75
|
+
*/
|
|
76
|
+
handleWaitingState(data: IWaitingState): void;
|
|
77
|
+
/**
|
|
78
|
+
* 会议重连后,重新处理缓存的会控消息
|
|
79
|
+
*/
|
|
80
|
+
resendMeetingControlMessage(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* 处理会控消息,如音频、主会场、content等
|
|
83
|
+
*
|
|
84
|
+
* @param { IMeetingControl } data 会控消息
|
|
85
|
+
*/
|
|
86
|
+
onMeetingControlMessage(data: IMeetingControl): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* 处理本地录制结果上报Message
|
|
89
|
+
*
|
|
90
|
+
* @param { IRecordingStateChanged } data - 录制状态
|
|
91
|
+
*/
|
|
92
|
+
onRecordingStateChangedMessage(data: IRecordingStateChanged): void;
|
|
93
|
+
/**
|
|
94
|
+
* 处理远端录制状态上报
|
|
95
|
+
*
|
|
96
|
+
* @param { IRecordStatusNotification } data - 录制状态
|
|
97
|
+
*/
|
|
98
|
+
onRecordStatusNotificationMessage(data: IRecordStatusNotification): void;
|
|
99
|
+
/**
|
|
100
|
+
* 上报远端录制状态
|
|
101
|
+
*/
|
|
102
|
+
emitRecordStatusNotification(): void;
|
|
103
|
+
/**
|
|
104
|
+
* 停止云端录制
|
|
105
|
+
*/
|
|
106
|
+
stopCloudRecord(): IReturnResult | Promise<never>;
|
|
107
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EVENT_TYPE } from '../../type/index';
|
|
2
|
+
/**
|
|
3
|
+
* 信令上报原始的消息
|
|
4
|
+
*
|
|
5
|
+
* @property { number } subType - 消息类型
|
|
6
|
+
* @property { string } content - 消息详细内容
|
|
7
|
+
* @property { string } requestId - 消息ID
|
|
8
|
+
*/
|
|
9
|
+
export interface OriginalNotification {
|
|
10
|
+
subType: number;
|
|
11
|
+
content: string;
|
|
12
|
+
requestId: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 会控互动工具相关数据, 签到等
|
|
16
|
+
*/
|
|
17
|
+
export interface OriginalRealTimeNotification {
|
|
18
|
+
count: number;
|
|
19
|
+
events: {
|
|
20
|
+
content: string;
|
|
21
|
+
type: EVENT_TYPE;
|
|
22
|
+
action: EVENT_TYPE;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
* Meeting Info Control
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2022-10-27 13:58:22
|
|
5
|
-
* Last modified : 2024-
|
|
5
|
+
* Last modified : 2024-06-07 18:34:37
|
|
6
6
|
*/
|
|
7
|
-
import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, IMeetingControl, FocusViewAction } from '
|
|
8
|
-
import Client from '
|
|
9
|
-
import Logger from '../tools/logger';
|
|
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';
|
|
10
9
|
declare class Meeting {
|
|
11
10
|
private client;
|
|
12
11
|
private logger;
|
|
@@ -18,14 +17,17 @@ declare class Meeting {
|
|
|
18
17
|
private layoutImageAvatarMap;
|
|
19
18
|
private mediaConfig;
|
|
20
19
|
private enterpriseConfig;
|
|
20
|
+
private userInfo;
|
|
21
21
|
private meetingControlInfo;
|
|
22
|
-
constructor(client: Client
|
|
22
|
+
constructor(client: Client);
|
|
23
23
|
getRecordPermission(): IRecordPermission;
|
|
24
24
|
getLayoutImageAvatarMap(): Map<string, {
|
|
25
25
|
url: string;
|
|
26
26
|
isCustom: boolean;
|
|
27
27
|
}>;
|
|
28
28
|
getEnterpriseMediaConfig(): IMediaConfig;
|
|
29
|
+
getUserInfo(): IExportUserInfo | null;
|
|
30
|
+
getConferenceInfo(): IConferenceInfo;
|
|
29
31
|
getLayoutAvatarType(): LayoutAvatarType;
|
|
30
32
|
getMeetingControlInfo(): IMeetingControl | null;
|
|
31
33
|
/**
|
|
@@ -44,7 +46,13 @@ declare class Meeting {
|
|
|
44
46
|
*
|
|
45
47
|
* @public
|
|
46
48
|
*/
|
|
47
|
-
handleConferenceInfo(): Promise<void>;
|
|
49
|
+
handleConferenceInfo(properties?: {}): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* 更新并上报会议室信息
|
|
52
|
+
*
|
|
53
|
+
* @param { Object } properties - 会议室信息
|
|
54
|
+
*/
|
|
55
|
+
updateConferenceInfo(properties?: {}): void;
|
|
48
56
|
/**
|
|
49
57
|
* 获取会控相关地址
|
|
50
58
|
*
|
|
@@ -69,6 +77,11 @@ declare class Meeting {
|
|
|
69
77
|
* 获取个人云会议室信息,包含入会密码和个人云会议室号
|
|
70
78
|
*/
|
|
71
79
|
getCloudMeetingRooms(): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* 获取会议控制信息, 包含是否是主持人、是否需要会控密码
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
handleMeetingControlInfo(): Promise<void>;
|
|
72
85
|
/**
|
|
73
86
|
* 设置Layout头像
|
|
74
87
|
* 如果有自定义头像,无论oms配置什么,都显示自定义的图片头像
|
|
@@ -77,8 +90,7 @@ declare class Meeting {
|
|
|
77
90
|
* 硬终端设备,无论oms配置什么,都使用对应的人物图标
|
|
78
91
|
*
|
|
79
92
|
* @param { ILayout } layout - 参会者Layout
|
|
80
|
-
* @param {string} rosterId -
|
|
81
|
-
* @returns
|
|
93
|
+
* @param { string } rosterId - 参会者唯一id
|
|
82
94
|
*/
|
|
83
95
|
setLayoutAvatar(layout: ILayout, rosterId: string): void;
|
|
84
96
|
/**
|
|
@@ -87,19 +99,6 @@ declare class Meeting {
|
|
|
87
99
|
* @param { TLayoutMap } layoutListMap
|
|
88
100
|
*/
|
|
89
101
|
handleLayoutAvatar(layoutListMap: TLayoutMap): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* 获取企业配置信息
|
|
92
|
-
* 1. 企业管理平台带宽配置
|
|
93
|
-
* 2. Web端请1080P能力
|
|
94
|
-
*/
|
|
95
|
-
setEnterpriseConfig(): Promise<void>;
|
|
96
|
-
/**
|
|
97
|
-
* 根据企业配置媒体能力,得到最终的请流参数
|
|
98
|
-
*
|
|
99
|
-
* @param {IReqInfo[]} reqInfoList 请流列表数据
|
|
100
|
-
* @returns {IReqInfo[]}
|
|
101
|
-
*/
|
|
102
|
-
convertReqList(reqInfoList: IReqInfo[]): IReqInfo[];
|
|
103
102
|
/**
|
|
104
103
|
* 获取详细的会控地址
|
|
105
104
|
*
|
|
@@ -115,10 +114,10 @@ declare class Meeting {
|
|
|
115
114
|
*/
|
|
116
115
|
private getVCConfInfo;
|
|
117
116
|
/**
|
|
118
|
-
*
|
|
117
|
+
* 获取水印内容及范围
|
|
119
118
|
*
|
|
120
119
|
* @private
|
|
121
|
-
* @param { string } confAuxProperties
|
|
120
|
+
* @param { string } confAuxProperties - 水印配置信息
|
|
122
121
|
*/
|
|
123
122
|
private getWatermarkContent;
|
|
124
123
|
/**
|
|
@@ -132,29 +131,47 @@ declare class Meeting {
|
|
|
132
131
|
/**
|
|
133
132
|
* 通过会控设置焦点画面
|
|
134
133
|
*
|
|
135
|
-
* @param { string }
|
|
134
|
+
* @param { string } id - 指定切换到焦点画面的endpointId
|
|
136
135
|
* @returns
|
|
137
136
|
*/
|
|
138
|
-
setMeetingFocusView(
|
|
137
|
+
setMeetingFocusView(id: string, action: FocusViewAction): Promise<import("../../type/index").IReturnResult>;
|
|
139
138
|
/**
|
|
140
139
|
* 修改参会者名称,目前仅支持修改Local
|
|
141
140
|
*
|
|
142
141
|
* @param { string } newName - 新名称
|
|
143
142
|
*/
|
|
144
|
-
rename(newName: string, callback?: () => void): Promise<import("
|
|
143
|
+
rename(newName: string, callback?: () => void): Promise<import("../../type/index").IReturnResult | undefined>;
|
|
145
144
|
/**
|
|
146
145
|
* 企业配置信息
|
|
147
146
|
*
|
|
148
147
|
* 1. 企业管理平台带宽配置
|
|
149
148
|
* 2. Web端请1080P能力配置
|
|
150
149
|
*/
|
|
151
|
-
|
|
150
|
+
setEnterpriseMediaConfig(): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* 配置上行分辨率配置
|
|
153
|
+
*
|
|
154
|
+
* @param { MEETING_DIRECTION } direction - 配置上下行方向配置
|
|
155
|
+
*/
|
|
156
|
+
processMediaConfig(direction: MEETING_DIRECTION): void;
|
|
157
|
+
/**
|
|
158
|
+
* 配置上行分辨率配置
|
|
159
|
+
*
|
|
160
|
+
* @param { MEETING_DIRECTION } direction - 配置上下行方向配置
|
|
161
|
+
* @param { IVideoProfile } profile - 配置最大分辨率/帧率
|
|
162
|
+
*/
|
|
163
|
+
processVideoProfileConfig(direction: MEETING_DIRECTION, profile: IVideoProfile): void;
|
|
152
164
|
/**
|
|
153
165
|
* 企业配置信息
|
|
154
166
|
*
|
|
155
167
|
* 1. 头像配置
|
|
168
|
+
* 2. 禁用语音转写英文翻译
|
|
169
|
+
*/
|
|
170
|
+
setEnterpriseBuffetConfig(): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* 结束全体会议
|
|
156
173
|
*/
|
|
157
|
-
|
|
174
|
+
endAllMeeting(): Promise<import("../../type/index").IReturnResult>;
|
|
158
175
|
/**
|
|
159
176
|
* 处理信令下发的等候室
|
|
160
177
|
*
|
|
@@ -169,5 +186,18 @@ declare class Meeting {
|
|
|
169
186
|
* @returns { ILayout[] }
|
|
170
187
|
*/
|
|
171
188
|
private getUnAvatarList;
|
|
189
|
+
/**
|
|
190
|
+
* 根据企业配置媒体能力,得到最终的请流参数
|
|
191
|
+
*
|
|
192
|
+
* @param { IReqInfo[] } reqInfoList 请流列表数据
|
|
193
|
+
* @returns { IReqInfo[] } - 最终的请流列表
|
|
194
|
+
*/
|
|
195
|
+
convertReqList(reqInfoList: IReqInfo[]): IReqInfo[];
|
|
196
|
+
/**
|
|
197
|
+
* 处理云会议室属性消息
|
|
198
|
+
*
|
|
199
|
+
* @param { object } data - 云会议室属性消息
|
|
200
|
+
*/
|
|
201
|
+
handleConferencePropertiesMessage(data: any): void;
|
|
172
202
|
}
|
|
173
203
|
export default Meeting;
|