@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.
Files changed (148) hide show
  1. package/action/ability.d.ts +0 -1
  2. package/action/api.d.ts +15 -1
  3. package/action/auth.d.ts +3 -4
  4. package/action/base.d.ts +2 -3
  5. package/action/config.d.ts +2 -3
  6. package/action/control.d.ts +3 -4
  7. package/action/enterprise.d.ts +4 -5
  8. package/action/http.d.ts +2 -3
  9. package/action/index.d.ts +9 -10
  10. package/action/index.type.d.ts +0 -1
  11. package/action/log.d.ts +1 -2
  12. package/action/meeting.d.ts +17 -4
  13. package/enum/client.d.ts +0 -1
  14. package/enum/constraints.d.ts +0 -1
  15. package/enum/errorCode/server.d.ts +0 -1
  16. package/enum/errorCode/signal.d.ts +0 -1
  17. package/enum/index.d.ts +8 -1
  18. package/enum/meeting.d.ts +0 -1
  19. package/enum/polling.d.ts +0 -1
  20. package/export/tools.d.ts +17 -0
  21. package/feature/artboard/index.d.ts +10 -4
  22. package/feature/audioPCM/index.d.ts +29 -0
  23. package/feature/contentPreserver/index.d.ts +38 -0
  24. package/feature/customMessage/index.d.ts +1 -2
  25. package/feature/edu/index.d.ts +1 -2
  26. package/feature/edu/index.type.d.ts +0 -1
  27. package/feature/im/index.d.ts +2 -3
  28. package/feature/query/index.d.ts +2 -3
  29. package/feature/speaker/index.d.ts +2 -3
  30. package/feature/speaker/index.type.d.ts +0 -1
  31. package/feature/translation/index.d.ts +34 -0
  32. package/feature/vep/index.d.ts +56 -0
  33. package/feature/vep/index.type.d.ts +139 -0
  34. package/index.d.ts +11 -9
  35. package/interface/clientInterface.type.d.ts +11 -12
  36. package/interface/contentTrackInterface.type.d.ts +0 -1
  37. package/interface/event.type.d.ts +10 -2
  38. package/interface/extension.type.d.ts +10 -0
  39. package/interface/processor.type.d.ts +9 -0
  40. package/interface/videoAudioTrackInterface.type.d.ts +2 -3
  41. package/main/ability/const.d.ts +0 -1
  42. package/main/ability/index.d.ts +1 -2
  43. package/main/auth/index.d.ts +9 -17
  44. package/main/auth/index.type.d.ts +0 -1
  45. package/main/auth/rule.d.ts +9 -0
  46. package/main/client/clientBase.d.ts +10 -3
  47. package/main/client/clientState.d.ts +1 -2
  48. package/main/client/index.d.ts +66 -47
  49. package/main/client/rule.d.ts +19 -0
  50. package/main/device/index.d.ts +12 -5
  51. package/main/device/index.type.d.ts +22 -0
  52. package/main/helper/i18n.d.ts +0 -1
  53. package/main/helper/index.d.ts +9 -2
  54. package/main/layout/index.d.ts +11 -5
  55. package/main/layout/index.type.d.ts +2 -3
  56. package/main/layout/polling.d.ts +2 -3
  57. package/main/layout/state.d.ts +3 -4
  58. package/main/layout/template/index.d.ts +0 -1
  59. package/main/layout/template/manager.d.ts +0 -1
  60. package/main/layout/template/mobile.d.ts +0 -1
  61. package/main/layout/template/polling.d.ts +0 -1
  62. package/main/media/index.d.ts +4 -5
  63. package/main/media/index.type.d.ts +0 -1
  64. package/main/meeting/control.d.ts +1 -2
  65. package/main/meeting/control.type.d.ts +0 -1
  66. package/main/meeting/index.d.ts +8 -3
  67. package/main/meeting/rule.d.ts +3 -0
  68. package/main/meeting/verify.d.ts +1 -2
  69. package/main/peer/index.d.ts +37 -9
  70. package/main/peer/index.type.d.ts +24 -1
  71. package/main/peer/state.d.ts +4 -0
  72. package/main/plugin/audioPCM/audio-processor.worklet.d.ts +1 -0
  73. package/main/plugin/audioPCM/index.d.ts +31 -0
  74. package/main/plugin/audioPCM/index.type.d.ts +29 -0
  75. package/main/plugin/audioPCM/processor.d.ts +68 -0
  76. package/main/plugin/contentPreserver/index.d.ts +30 -0
  77. package/main/plugin/contentPreserver/index.type.d.ts +69 -0
  78. package/main/plugin/contentPreserver/processor.d.ts +127 -0
  79. package/main/plugin/index.d.ts +1 -2
  80. package/main/plugin/index.type.d.ts +21 -0
  81. package/main/quality/index.d.ts +0 -1
  82. package/main/quality/report.d.ts +2 -2
  83. package/main/render/audioManager.d.ts +45 -0
  84. package/main/render/index.d.ts +27 -11
  85. package/main/render/index.type.d.ts +2 -6
  86. package/main/render/videoManager.d.ts +36 -3
  87. package/main/render/videoManager.type.d.ts +10 -0
  88. package/main/roster/index.d.ts +41 -2
  89. package/main/server/index.d.ts +3 -4
  90. package/main/server/index.type.d.ts +2 -0
  91. package/main/signal/index.d.ts +1 -2
  92. package/main/socket/index.d.ts +2 -3
  93. package/main/stream/index.d.ts +9 -9
  94. package/main/track/baseTrack.d.ts +4 -5
  95. package/main/track/contentTrack.d.ts +80 -6
  96. package/main/track/customContentTrack.d.ts +2 -3
  97. package/main/track/customVideoAudioTrack.d.ts +2 -3
  98. package/main/track/helper.d.ts +1 -13
  99. package/main/track/videoAudioCapture.d.ts +1 -2
  100. package/main/track/videoAudioTrack.d.ts +88 -13
  101. package/main/vom/config.d.ts +9 -0
  102. package/main/vom/index.d.ts +5 -2
  103. package/package.json +6 -3
  104. package/tools/analyser/index.d.ts +0 -1
  105. package/tools/analyser/manager.d.ts +1 -2
  106. package/tools/config.d.ts +0 -1
  107. package/tools/log/db.d.ts +0 -1
  108. package/tools/log/logger.d.ts +0 -1
  109. package/tools/log/logger.worker.d.ts +1 -1
  110. package/tools/log/loggerManager.d.ts +1 -2
  111. package/tools/socket/socket.d.ts +2 -3
  112. package/tools/socket/socketManager.d.ts +2 -3
  113. package/tools/utils.d.ts +4 -125
  114. package/type/ability.d.ts +3 -1
  115. package/type/analyser.d.ts +0 -1
  116. package/type/base.d.ts +5 -5
  117. package/type/capture.d.ts +0 -1
  118. package/type/client.d.ts +9 -48
  119. package/type/index.d.ts +1 -0
  120. package/type/layout.d.ts +1 -2
  121. package/type/meeting.d.ts +4 -5
  122. package/type/quality.d.ts +1 -2
  123. package/type/stream.d.ts +11 -4
  124. package/type/subtitle.d.ts +86 -0
  125. package/type/track.d.ts +12 -4
  126. package/xyrtc.js +15952 -14725
  127. package/tools/data/list.d.ts +0 -87
  128. package/tools/data/map.d.ts +0 -17
  129. package/tools/detector/browser.d.ts +0 -114
  130. package/tools/detector/index.d.ts +0 -187
  131. package/tools/detector/index.type.d.ts +0 -51
  132. package/tools/detector/stream.d.ts +0 -77
  133. package/tools/detector/stream.type.d.ts +0 -56
  134. package/tools/emitter.d.ts +0 -42
  135. package/tools/frame/index.d.ts +0 -36
  136. package/tools/frame/index.type.d.ts +0 -1
  137. package/tools/index.d.ts +0 -72
  138. package/tools/pressure/index.d.ts +0 -26
  139. package/tools/pressure/index.type.d.ts +0 -22
  140. package/tools/queue/async.d.ts +0 -45
  141. package/tools/queue/queue.type.d.ts +0 -10
  142. package/tools/queue/sync.d.ts +0 -36
  143. package/tools/resize.d.ts +0 -64
  144. package/tools/snapshot/index.d.ts +0 -23
  145. package/tools/snapshot/index.type.d.ts +0 -38
  146. package/tools/store.d.ts +0 -47
  147. package/tools/verify.d.ts +0 -14
  148. 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
  }