@xylink/xy-rtc-sdk 4.0.3 → 4.0.5
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/action/ability.d.ts +0 -1
- package/action/api.d.ts +15 -1
- package/action/auth.d.ts +3 -4
- package/action/base.d.ts +2 -3
- package/action/config.d.ts +2 -3
- package/action/control.d.ts +3 -4
- package/action/enterprise.d.ts +4 -5
- package/action/http.d.ts +2 -3
- package/action/index.d.ts +9 -10
- package/action/index.type.d.ts +0 -1
- package/action/log.d.ts +1 -2
- package/action/meeting.d.ts +17 -4
- package/enum/client.d.ts +0 -1
- package/enum/constraints.d.ts +0 -1
- package/enum/errorCode/server.d.ts +0 -1
- package/enum/errorCode/signal.d.ts +0 -1
- package/enum/index.d.ts +8 -1
- package/enum/meeting.d.ts +0 -1
- package/enum/polling.d.ts +0 -1
- package/export/tools.d.ts +17 -0
- package/feature/artboard/index.d.ts +10 -4
- package/feature/audioPCM/index.d.ts +29 -0
- package/feature/contentPreserver/index.d.ts +38 -0
- package/feature/customMessage/index.d.ts +1 -2
- package/feature/edu/index.d.ts +1 -2
- package/feature/edu/index.type.d.ts +0 -1
- package/feature/im/index.d.ts +2 -3
- package/feature/query/index.d.ts +2 -3
- package/feature/speaker/index.d.ts +2 -3
- package/feature/speaker/index.type.d.ts +0 -1
- package/feature/translation/index.d.ts +34 -0
- package/feature/vep/index.d.ts +56 -0
- package/feature/vep/index.type.d.ts +139 -0
- package/index.d.ts +11 -9
- package/interface/clientInterface.type.d.ts +11 -12
- package/interface/contentTrackInterface.type.d.ts +0 -1
- package/interface/event.type.d.ts +10 -2
- package/interface/extension.type.d.ts +10 -0
- package/interface/processor.type.d.ts +9 -0
- package/interface/videoAudioTrackInterface.type.d.ts +2 -3
- package/main/ability/const.d.ts +0 -1
- package/main/ability/index.d.ts +1 -2
- package/main/auth/index.d.ts +9 -17
- package/main/auth/index.type.d.ts +0 -1
- package/main/auth/rule.d.ts +9 -0
- package/main/client/clientBase.d.ts +10 -3
- package/main/client/clientState.d.ts +1 -2
- package/main/client/index.d.ts +66 -47
- package/main/client/rule.d.ts +19 -0
- package/main/device/index.d.ts +12 -5
- package/main/device/index.type.d.ts +22 -0
- package/main/helper/i18n.d.ts +0 -1
- package/main/helper/index.d.ts +9 -2
- package/main/layout/index.d.ts +11 -5
- package/main/layout/index.type.d.ts +2 -3
- package/main/layout/polling.d.ts +2 -3
- package/main/layout/state.d.ts +3 -4
- package/main/layout/template/index.d.ts +0 -1
- package/main/layout/template/manager.d.ts +0 -1
- package/main/layout/template/mobile.d.ts +0 -1
- package/main/layout/template/polling.d.ts +0 -1
- package/main/media/index.d.ts +4 -5
- package/main/media/index.type.d.ts +0 -1
- package/main/meeting/control.d.ts +1 -2
- package/main/meeting/control.type.d.ts +0 -1
- package/main/meeting/index.d.ts +8 -3
- package/main/meeting/rule.d.ts +3 -0
- package/main/meeting/verify.d.ts +1 -2
- package/main/peer/index.d.ts +37 -9
- package/main/peer/index.type.d.ts +24 -1
- package/main/peer/state.d.ts +4 -0
- package/main/plugin/audioPCM/audio-processor.worklet.d.ts +1 -0
- package/main/plugin/audioPCM/index.d.ts +31 -0
- package/main/plugin/audioPCM/index.type.d.ts +29 -0
- package/main/plugin/audioPCM/processor.d.ts +68 -0
- package/main/plugin/contentPreserver/index.d.ts +30 -0
- package/main/plugin/contentPreserver/index.type.d.ts +69 -0
- package/main/plugin/contentPreserver/processor.d.ts +127 -0
- package/main/plugin/index.d.ts +1 -2
- package/main/plugin/index.type.d.ts +21 -0
- package/main/quality/index.d.ts +0 -1
- package/main/quality/report.d.ts +2 -2
- package/main/render/audioManager.d.ts +45 -0
- package/main/render/index.d.ts +27 -11
- package/main/render/index.type.d.ts +2 -6
- package/main/render/videoManager.d.ts +36 -3
- package/main/render/videoManager.type.d.ts +10 -0
- package/main/roster/index.d.ts +41 -2
- package/main/server/index.d.ts +3 -4
- package/main/server/index.type.d.ts +2 -0
- package/main/signal/index.d.ts +1 -2
- package/main/socket/index.d.ts +2 -3
- package/main/stream/index.d.ts +9 -9
- package/main/track/baseTrack.d.ts +4 -5
- package/main/track/contentTrack.d.ts +80 -6
- package/main/track/customContentTrack.d.ts +2 -3
- package/main/track/customVideoAudioTrack.d.ts +2 -3
- package/main/track/helper.d.ts +1 -13
- package/main/track/videoAudioCapture.d.ts +1 -2
- package/main/track/videoAudioTrack.d.ts +88 -13
- package/main/vom/config.d.ts +9 -0
- package/main/vom/index.d.ts +5 -2
- package/package.json +6 -3
- package/tools/analyser/index.d.ts +0 -1
- package/tools/analyser/manager.d.ts +1 -2
- package/tools/config.d.ts +0 -1
- package/tools/log/db.d.ts +0 -1
- package/tools/log/logger.d.ts +0 -1
- package/tools/log/logger.worker.d.ts +1 -1
- package/tools/log/loggerManager.d.ts +1 -2
- package/tools/socket/socket.d.ts +2 -3
- package/tools/socket/socketManager.d.ts +2 -3
- package/tools/utils.d.ts +4 -125
- package/type/ability.d.ts +3 -1
- package/type/analyser.d.ts +0 -1
- package/type/base.d.ts +5 -5
- package/type/capture.d.ts +0 -1
- package/type/client.d.ts +9 -48
- package/type/index.d.ts +1 -0
- package/type/layout.d.ts +1 -2
- package/type/meeting.d.ts +4 -5
- package/type/quality.d.ts +1 -2
- package/type/stream.d.ts +11 -4
- package/type/subtitle.d.ts +86 -0
- package/type/track.d.ts +12 -4
- package/xyrtc.js +15952 -14725
- package/tools/data/list.d.ts +0 -87
- package/tools/data/map.d.ts +0 -17
- package/tools/detector/browser.d.ts +0 -114
- package/tools/detector/index.d.ts +0 -187
- package/tools/detector/index.type.d.ts +0 -51
- package/tools/detector/stream.d.ts +0 -77
- package/tools/detector/stream.type.d.ts +0 -56
- package/tools/emitter.d.ts +0 -42
- package/tools/frame/index.d.ts +0 -36
- package/tools/frame/index.type.d.ts +0 -1
- package/tools/index.d.ts +0 -72
- package/tools/pressure/index.d.ts +0 -26
- package/tools/pressure/index.type.d.ts +0 -22
- package/tools/queue/async.d.ts +0 -45
- package/tools/queue/queue.type.d.ts +0 -10
- package/tools/queue/sync.d.ts +0 -36
- package/tools/resize.d.ts +0 -64
- package/tools/snapshot/index.d.ts +0 -23
- package/tools/snapshot/index.type.d.ts +0 -38
- package/tools/store.d.ts +0 -47
- package/tools/verify.d.ts +0 -14
- package/tools/window.d.ts +0 -31
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字幕消息
|
|
3
|
+
*
|
|
4
|
+
* @property { number } callIndex - 消息序列号
|
|
5
|
+
* @property { string } content - 字幕规则
|
|
6
|
+
* @property { string } type - 字幕类型
|
|
7
|
+
*/
|
|
8
|
+
export interface ISubTitle {
|
|
9
|
+
callIndex: number;
|
|
10
|
+
content: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 字幕消息内容,包含内容、字体、背景等
|
|
15
|
+
*
|
|
16
|
+
* @property { string } content - 字幕内容
|
|
17
|
+
* @property { string? } i18nKey - 字幕内容国际化语言key
|
|
18
|
+
* @property { string? } fontFamily - 字体
|
|
19
|
+
* @property { string? } fontRGB - 字体色
|
|
20
|
+
* @property { XYSubTitleScroll } scroll - 是否滚动,"1"代表滚动字幕,"0"代表固定字幕
|
|
21
|
+
* @property { XYSubTitleAction } action - 动作,"push"代表显示字幕;"cancel"代表取消字幕
|
|
22
|
+
* @property { XYSubTitleLocation } location - 位置'top' | 'middle' | 'bottom',分别代表上、中、下位置
|
|
23
|
+
* @property { XYSubTitleFontSize } fontSize - 位置'small' | 'middle' | 'big',分别代表小、中、大号字体
|
|
24
|
+
* @property { string? } backgroundAlpha - 背景色
|
|
25
|
+
* @property { string? } scrollSpeed - 滚动速度, 忽略
|
|
26
|
+
* @property { string? } backgroundRGB - 背景色
|
|
27
|
+
* @property { number? } scrollSpeedLevel - 滚动速度等级, 1-15,默认是3
|
|
28
|
+
*/
|
|
29
|
+
export interface ISubTitleContent {
|
|
30
|
+
content: string;
|
|
31
|
+
i18nKey?: string;
|
|
32
|
+
fontFamily?: string;
|
|
33
|
+
fontRGB?: string;
|
|
34
|
+
scroll?: XYSubTitleScroll;
|
|
35
|
+
action?: XYSubTitleAction;
|
|
36
|
+
location?: XYSubTitleLocation;
|
|
37
|
+
fontSize?: XYSubTitleFontSize;
|
|
38
|
+
backgroundAlpha?: string;
|
|
39
|
+
scrollSpeed?: string;
|
|
40
|
+
backgroundRGB?: string;
|
|
41
|
+
scrollSpeedLevel?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 字幕滚动状态
|
|
45
|
+
*
|
|
46
|
+
* @param FIXED - 固定字幕
|
|
47
|
+
* @param SCROLL - 滚动字幕
|
|
48
|
+
*/
|
|
49
|
+
export declare enum XYSubTitleScroll {
|
|
50
|
+
FIXED = "0",
|
|
51
|
+
SCROLL = "1"
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 字幕动作
|
|
55
|
+
*
|
|
56
|
+
* @param PUSH - 显示字幕
|
|
57
|
+
* @param CANCEL - 取消字幕
|
|
58
|
+
*/
|
|
59
|
+
export declare enum XYSubTitleAction {
|
|
60
|
+
PUSH = "push",
|
|
61
|
+
CANCEL = "cancel"
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 字幕位置
|
|
65
|
+
*
|
|
66
|
+
* @param TOP - 顶部
|
|
67
|
+
* @param MIDDLE - 中间
|
|
68
|
+
* @param BOTTOM - 底部
|
|
69
|
+
*/
|
|
70
|
+
export declare enum XYSubTitleLocation {
|
|
71
|
+
TOP = "top",
|
|
72
|
+
MIDDLE = "middle",
|
|
73
|
+
BOTTOM = "bottom"
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 字幕字体大小
|
|
77
|
+
*
|
|
78
|
+
* @param SMALL - 小号
|
|
79
|
+
* @param MIDDLE - 中号
|
|
80
|
+
* @param BIG - 大号
|
|
81
|
+
*/
|
|
82
|
+
export declare enum XYSubTitleFontSize {
|
|
83
|
+
SMALL = "small",
|
|
84
|
+
MIDDLE = "middle",
|
|
85
|
+
BIG = "big"
|
|
86
|
+
}
|
package/type/track.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StreamResolution } from './stream';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* 创建自定义Track配置参数
|
|
5
4
|
*
|
|
@@ -112,20 +111,29 @@ export type IInitContentStream = {
|
|
|
112
111
|
*
|
|
113
112
|
* @param VIDEO_INPUT - 视频流插件
|
|
114
113
|
* @param AUDIO_INPUT - 音频流插件
|
|
114
|
+
* @param CONTENT_INPUT - 内容输入
|
|
115
115
|
*/
|
|
116
116
|
export declare enum PluginType {
|
|
117
117
|
VIDEO_INPUT = "VIDEO_INPUT",
|
|
118
|
-
AUDIO_INPUT = "AUDIO_INPUT"
|
|
118
|
+
AUDIO_INPUT = "AUDIO_INPUT",
|
|
119
|
+
CONTENT_INPUT = "CONTENT_INPUT"
|
|
119
120
|
}
|
|
120
121
|
/**
|
|
121
122
|
* AI插件处理器Track数据结构
|
|
122
123
|
*
|
|
123
124
|
* @property { MediaStreamTrack | null } track - MediaStreamTrack数据
|
|
124
|
-
* @property { number } width - track的实际宽度
|
|
125
|
-
* @property { number } height - track的实际高度
|
|
126
125
|
*/
|
|
127
126
|
export interface IProcessTrack {
|
|
128
127
|
track: MediaStreamTrack | null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* AI插件处理器视频Track数据结构
|
|
131
|
+
*
|
|
132
|
+
* @property { MediaStreamTrack | null } track - MediaStreamTrack数据
|
|
133
|
+
* @property { number } width - track的实际宽度
|
|
134
|
+
* @property { number } height - track的实际高度
|
|
135
|
+
*/
|
|
136
|
+
export interface IVideoProcessTrack extends IProcessTrack {
|
|
129
137
|
width: number;
|
|
130
138
|
height: number;
|
|
131
139
|
}
|