@volcengine/react-native-live-push 1.1.3-rc.0 → 1.2.0-rc.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.
Files changed (139) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +14 -2
  5. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
  6. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
  8. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +410 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +434 -0
  10. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
  11. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
  12. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +165 -0
  13. package/ios/VeLiveMixerHelper.h +46 -0
  14. package/ios/VeLiveMixerHelper.m +620 -0
  15. package/ios/VeLiveMixerView.h +69 -0
  16. package/ios/VeLiveMixerView.m +600 -0
  17. package/ios/VeLiveMixerViewManager.m +92 -0
  18. package/lib/commonjs/index.js +22698 -20359
  19. package/lib/commonjs/typescript/android/index.d.ts +44 -0
  20. package/lib/commonjs/typescript/codegen/android/api.d.ts +1068 -0
  21. package/lib/commonjs/typescript/codegen/android/callback.d.ts +333 -0
  22. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +92 -0
  23. package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
  24. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1693 -0
  25. package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
  26. package/lib/commonjs/typescript/codegen/ios/api.d.ts +1125 -0
  27. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +242 -0
  28. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +154 -0
  29. package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
  30. package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
  31. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +1154 -0
  32. package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
  33. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1470 -0
  34. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +446 -0
  35. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +109 -0
  36. package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
  37. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +2248 -0
  38. package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
  39. package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
  40. package/lib/commonjs/typescript/component.d.ts +15 -0
  41. package/lib/commonjs/typescript/core/api.d.ts +18 -0
  42. package/lib/commonjs/typescript/core/callback.d.ts +2 -0
  43. package/lib/commonjs/typescript/core/env.d.ts +29 -0
  44. package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
  45. package/lib/commonjs/typescript/core/index.d.ts +6 -0
  46. package/lib/commonjs/typescript/core/keytype.d.ts +18 -0
  47. package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
  48. package/lib/commonjs/typescript/core/pusher.d.ts +13 -0
  49. package/lib/commonjs/typescript/index.d.ts +3 -0
  50. package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
  51. package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
  52. package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
  53. package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
  54. package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
  55. package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
  56. package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
  57. package/lib/commonjs/typescript/runtime.d.ts +1 -0
  58. package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
  59. package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
  60. package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
  61. package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
  62. package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
  63. package/lib/commonjs/typescript/view/index.d.ts +5 -0
  64. package/lib/module/index.js +22695 -20360
  65. package/lib/module/typescript/android/index.d.ts +44 -0
  66. package/lib/module/typescript/codegen/android/api.d.ts +1068 -0
  67. package/lib/module/typescript/codegen/android/callback.d.ts +333 -0
  68. package/lib/module/typescript/codegen/android/errorcode.d.ts +92 -0
  69. package/lib/module/typescript/codegen/android/index.d.ts +5 -0
  70. package/lib/module/typescript/codegen/android/keytype.d.ts +1693 -0
  71. package/lib/module/typescript/codegen/android/types.d.ts +33 -0
  72. package/lib/module/typescript/codegen/ios/api.d.ts +1125 -0
  73. package/lib/module/typescript/codegen/ios/callback.d.ts +242 -0
  74. package/lib/module/typescript/codegen/ios/errorcode.d.ts +154 -0
  75. package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
  76. package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
  77. package/lib/module/typescript/codegen/ios/keytype.d.ts +1154 -0
  78. package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
  79. package/lib/module/typescript/codegen/pack/api.d.ts +1470 -0
  80. package/lib/module/typescript/codegen/pack/callback.d.ts +446 -0
  81. package/lib/module/typescript/codegen/pack/errorcode.d.ts +109 -0
  82. package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
  83. package/lib/module/typescript/codegen/pack/keytype.d.ts +2248 -0
  84. package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
  85. package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
  86. package/lib/module/typescript/component.d.ts +15 -0
  87. package/lib/module/typescript/core/api.d.ts +18 -0
  88. package/lib/module/typescript/core/callback.d.ts +2 -0
  89. package/lib/module/typescript/core/env.d.ts +29 -0
  90. package/lib/module/typescript/core/errorcode.d.ts +2 -0
  91. package/lib/module/typescript/core/index.d.ts +6 -0
  92. package/lib/module/typescript/core/keytype.d.ts +18 -0
  93. package/lib/module/typescript/core/mixer.d.ts +26 -0
  94. package/lib/module/typescript/core/pusher.d.ts +13 -0
  95. package/lib/module/typescript/index.d.ts +3 -0
  96. package/lib/module/typescript/ios/extends.d.ts +41 -0
  97. package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
  98. package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
  99. package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
  100. package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
  101. package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
  102. package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
  103. package/lib/module/typescript/runtime.d.ts +1 -0
  104. package/lib/module/typescript/view/MixView.d.ts +52 -0
  105. package/lib/module/typescript/view/VeImageView.d.ts +19 -0
  106. package/lib/module/typescript/view/VeTextView.d.ts +7 -0
  107. package/lib/module/typescript/view/VeView.d.ts +7 -0
  108. package/lib/module/typescript/view/VeWebView.d.ts +7 -0
  109. package/lib/module/typescript/view/index.d.ts +5 -0
  110. package/lib/typescript/android/index.d.ts +0 -3
  111. package/lib/typescript/codegen/android/api.d.ts +194 -762
  112. package/lib/typescript/codegen/android/callback.d.ts +85 -48
  113. package/lib/typescript/codegen/android/errorcode.d.ts +30 -0
  114. package/lib/typescript/codegen/android/keytype.d.ts +514 -122
  115. package/lib/typescript/codegen/ios/api.d.ts +380 -351
  116. package/lib/typescript/codegen/ios/callback.d.ts +33 -6
  117. package/lib/typescript/codegen/ios/errorcode.d.ts +52 -2
  118. package/lib/typescript/codegen/ios/keytype.d.ts +313 -35
  119. package/lib/typescript/codegen/pack/api.d.ts +302 -821
  120. package/lib/typescript/codegen/pack/callback.d.ts +54 -49
  121. package/lib/typescript/codegen/pack/errorcode.d.ts +38 -5
  122. package/lib/typescript/codegen/pack/keytype.d.ts +672 -228
  123. package/lib/typescript/core/api.d.ts +18 -2
  124. package/lib/typescript/core/keytype.d.ts +16 -0
  125. package/lib/typescript/core/mixer.d.ts +26 -0
  126. package/lib/typescript/core/pusher.d.ts +0 -3
  127. package/lib/typescript/index.d.ts +1 -0
  128. package/lib/typescript/platforms/android/extends.d.ts +8 -0
  129. package/lib/typescript/platforms/android/mixer.d.ts +8 -0
  130. package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
  131. package/lib/typescript/view/MixView.d.ts +52 -0
  132. package/lib/typescript/view/VeImageView.d.ts +19 -0
  133. package/lib/typescript/view/VeTextView.d.ts +7 -0
  134. package/lib/typescript/view/VeView.d.ts +7 -0
  135. package/lib/typescript/view/VeWebView.d.ts +7 -0
  136. package/lib/typescript/view/index.d.ts +5 -0
  137. package/package.json +1 -1
  138. package/react-native-velive-push.podspec +3 -3
  139. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
@@ -1,195 +1,14 @@
1
- import { VeLiveVideoBufferType, VeLivePixelFormat, VeLiveVideoRotation, VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherLogConfig, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveOrientation, VeLiveAudioMixType, VeLiveStreamMixDescription, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel, VeLiveVideoCaptureConfiguration, VeLiveAudioCaptureConfiguration } from './keytype';
2
- import { int, long, Matrix, ByteBuffer, Runnable, float, String, EGLContext, View, Bitmap, Intent, Context, LiveSdkSetting } from './types';
1
+ import { int, float, String, EGLContext, View, Bitmap, long } from './types';
2
+ import { VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveOrientation } from './keytype';
3
3
  import { VeLiveVideoEffectCallback, VeLiveVideoEffectHandleCallback, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveSnapshotListener, VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener } from './callback';
4
- export declare class VeLiveVideoFrame {
5
- constructor(width: int, height: int, pts: long, texId: int, isOes: boolean, matrix: Matrix);
6
- constructor(width: int, height: int, pts: long, byteBuffer: ByteBuffer);
7
- constructor(width: int, height: int, pts: long, data: ArrayBuffer);
8
- constructor();
9
- width: number;
10
- height: number;
11
- ptsUs: number;
12
- textureId: number;
13
- data: any;
14
- /** {zh}
15
- * @detail api
16
- * @brief 增加 VeLiveVideoFrame 对象的引用计数。当您需要继续使用 VeLiveVideoFrame 对象时,请调用此方法将引用计数增加 1。
17
- *
18
- */
19
-
20
- retain(): void;
21
- /** {zh}
22
- * @detail api
23
- * @brief 释放对 VeLiveVideoFrame 对象的引用。在您不再需要使用 VeLiveVideoFrame 对象时,应调用此方法将引用计数减少 1。当引用计数减少到零,表示不再有引用指向该对象,可以安全地释放或销毁该对象。
24
- *
25
- */
26
-
27
- release(): void;
28
- /** {zh}
29
- * @detail api
30
- * @brief 获取视频数据类型。
31
- * @return 视频数据类型,详情请参见 [VeLiveVideoBufferType](147521#VeLiveVideoBufferType)。
32
- *
33
- */
34
-
35
- getBufferType(): VeLiveVideoBufferType;
36
- /** {zh}
37
- * @detail api
38
- * @brief 设置视频数据类型。
39
- * @param bufferType 视频数据类型,详情请参见 VeLiveVideoBufferType{@link #VeLiveVideoBufferType}
40
- * @return <br>
41
- * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
42
- *
43
- */
44
-
45
- setBufferType(bufferType: VeLiveVideoBufferType): this;
46
- /** {zh}
47
- * @detail api
48
- * @brief 获取视频像素格式。
49
- * @return <br>
50
- * 视频像素格式,详情请参见 VeLivePixelFormat{@link #VeLivePixelFormat}。
51
- *
52
- */
53
-
54
- getPixelFormat(): VeLivePixelFormat;
55
- /** {zh}
56
- * @detail api
57
- * @brief 设置视频像素格式。
58
- * @param pixelFormat 视频像素格式,详情请参见 VeLivePixelFormat{@link #VeLivePixelFormat}
59
- * @return <br>
60
- * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
61
- *
62
- */
63
-
64
- setPixelFormat(pixelFormat: VeLivePixelFormat): this;
65
- /** {zh}
66
- * @detail api
67
- * @brief 获取视频帧旋转角度。
68
- * @return <br>
69
- * 视频帧旋转角度,详情请参见 VeLiveVideoRotation{@link #VeLiveVideoRotation}。
70
- *
71
- */
72
-
73
- getRotation(): VeLiveVideoRotation;
74
- /** {zh}
75
- * @detail api
76
- * @brief 设置视频帧旋转角度。
77
- * @param rotation 视频帧旋转角度,详情请参见 VeLiveVideoRotation{@link #VeLiveVideoRotation}
78
- * @return <br>
79
- * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
80
- *
81
- */
82
-
83
- setRotation(rotation: VeLiveVideoRotation): this;
84
- /** {zh}
85
- * @detail api
86
- * @brief 获取视频帧宽度。
87
- * @return <br>
88
- * 视频帧宽度。
89
- *
90
- */
91
-
92
- getWidth(): int;
93
- /** {zh}
94
- * @detail api
95
- * @brief 获取视频帧高度。
96
- * @return <br>
97
- * 视频帧高度。
98
- *
99
- */
100
-
101
- getHeight(): int;
102
- /** {zh}
103
- * @detail api
104
- * @brief 获取带旋转角度的视频帧宽度。
105
- * @return <br>
106
- * 带旋转角度的视频帧宽度。
107
- *
108
- */
109
-
110
- getRotatedWidth(): int;
111
- /** {zh}
112
- * @detail api
113
- * @brief 获取带旋转角度的视频帧高度。
114
- * @return <br>
115
- * 带旋转角度的视频帧高度。
116
- *
117
- */
118
-
119
- getRotatedHeight(): int;
120
- /** {zh}
121
- * @detail api
122
- * @brief 获取视频帧时间戳。
123
- * @return <br>
124
- * 视频帧时间戳,单位为 μs。
125
- *
126
- */
127
-
128
- getPts(): long;
129
- /** {zh}
130
- * @detail api
131
- * @brief 获取视频帧纹理 ID。
132
- * @return <br>
133
- * 视频帧纹理 ID。
134
- *
135
- */
136
-
137
- getTextureId(): int;
138
- /** {zh}
139
- * @detail api
140
- * @brief 获取视频帧纹理矩阵。
141
- * @return <br>
142
- * 视频帧纹理矩阵。
143
- *
144
- */
145
-
146
- getTextureMatrix(): Matrix;
147
- /** {zh}
148
- * @detail api
149
- * @brief 获取 ByteBuffer 格式的视频数据。
150
- * @return <br>
151
- * ByteBuffer 格式的视频数据。
152
- *
153
- */
154
-
155
- getBuffer(): ByteBuffer;
156
- /** {zh}
157
- * @detail api
158
- * @brief 获取 byte[] 格式的视频数据。
159
- * @return <br>
160
- * byte[] 格式的视频数据。
161
- *
162
- */
163
-
164
- getData(): ArrayBuffer;
165
- /** {zh}
166
- * @detail api
167
- * @brief 获取视频帧内部销毁回调。
168
- * @return <br>
169
- * 视频帧内部销毁回调。
170
- *
171
- */
172
-
173
- getReleaseCallback(): Runnable;
174
- /** {zh}
175
- * @detail api
176
- * @brief 设置视频帧内部销毁回调。
177
- * @param releaseCallback 视频帧内部销毁回调
178
- * @return <br>
179
- * 视频帧对象,详情请参见 VeLiveVideoFrame{@link #VeLiveVideoFrame}。
180
- *
181
- */
182
-
183
- setReleaseCallback(releaseCallback: Runnable): this;
184
- }
185
4
  export declare class VeLiveCameraDevice {
186
5
  /** {zh}
187
6
  * @detail api
188
7
  * @brief 获取相机支持帧率范围。
8
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
9
+ * @order 3
189
10
  * @return <br>
190
11
  * 相机支持帧率范围。
191
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
192
- * @order 66
193
12
  *
194
13
  */
195
14
 
@@ -197,14 +16,14 @@ export declare class VeLiveCameraDevice {
197
16
  /** {zh}
198
17
  * @detail api
199
18
  * @brief 开启/关闭闪光灯。
200
- * @return <br>
201
- * - 0:开启/关闭成功;
202
- * - ≠0:开启/关闭失败。
203
19
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
204
- * @order 67
20
+ * @order 8
205
21
  * @param enable 是否开启闪光灯。默认为 false。 <br>
206
22
  * - true:开启;
207
23
  * - false:关闭。
24
+ * @return <br>
25
+ * - 0:开启/关闭成功;
26
+ * - ≠0:开启/关闭失败。
208
27
  *
209
28
  */
210
29
 
@@ -212,12 +31,12 @@ export declare class VeLiveCameraDevice {
212
31
  /** {zh}
213
32
  * @detail api
214
33
  * @brief 设置摄像头的缩放倍数。
34
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
35
+ * @order 5
36
+ * @param ratio 缩放倍数。默认为原尺寸。缩放倍数的取值范围为 [[getMinZoomRatio](#VeLiveCameraDevice-getminzoomratio),[getMaxZoomRatio](#VeLiveCameraDevice-getmaxzoomratio)]。
215
37
  * @return <br>
216
38
  * - 0:缩放成功;
217
39
  * - ≠0:缩放失败。
218
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
219
- * @order 68
220
- * @param ratio 缩放倍数。默认为原尺寸。缩放倍数的取值范围为 [[getMinZoomRatio](#VeLiveCameraDevice-getminzoomratio),[getMaxZoomRatio](#VeLiveCameraDevice-getmaxzoomratio)]。
221
40
  *
222
41
  */
223
42
 
@@ -225,11 +44,11 @@ export declare class VeLiveCameraDevice {
225
44
  /** {zh}
226
45
  * @detail api
227
46
  * @brief 获取摄像头当前的缩放倍数。
47
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
48
+ * @order 4
228
49
  * @return <br>
229
50
  * - ≤0:表示不支持缩放;
230
- * - \\>0:支持缩放,数值表示当前缩放倍数。
231
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
232
- * @order 68
51
+ * - >0:支持缩放,数值表示当前缩放倍数。
233
52
  *
234
53
  */
235
54
 
@@ -237,11 +56,11 @@ export declare class VeLiveCameraDevice {
237
56
  /** {zh}
238
57
  * @detail api
239
58
  * @brief 获取摄像头的最大缩放倍数。
59
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
60
+ * @order 6
240
61
  * @return <br>
241
62
  * - ≤0:表示不支持缩放;
242
- * - \\>0:支持缩放,数值表示最大缩放倍数。
243
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
244
- * @order 69
63
+ * - >0:支持缩放,数值表示最大缩放倍数。
245
64
  *
246
65
  */
247
66
 
@@ -249,11 +68,11 @@ export declare class VeLiveCameraDevice {
249
68
  /** {zh}
250
69
  * @detail api
251
70
  * @brief 获取摄像头的最小缩放倍数。
71
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
72
+ * @order 7
252
73
  * @return <br>
253
74
  * - ≤0:表示不支持缩放;
254
- * - \\>0:支持缩放,数值表示最小缩放倍数。
255
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
256
- * @order 70
75
+ * - >0:支持缩放,数值表示最小缩放倍数。
257
76
  *
258
77
  */
259
78
 
@@ -261,11 +80,11 @@ export declare class VeLiveCameraDevice {
261
80
  /** {zh}
262
81
  * @detail api
263
82
  * @brief 是否支持自动对焦。
83
+ * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
84
+ * @order 9
264
85
  * @return <br>
265
86
  * - true:支持;
266
87
  * - false:不支持。
267
- * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
268
- * @order 71
269
88
  *
270
89
  */
271
90
 
@@ -273,14 +92,14 @@ export declare class VeLiveCameraDevice {
273
92
  /** {zh}
274
93
  * @detail api
275
94
  * @brief 开启/关闭自动对焦功能。
276
- * @return <br>
277
- * - 0:开启/关闭成功;
278
- * - ≠0:开启/关闭失败。
279
95
  * @notes <br>需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
280
- * @order 72
96
+ * @order 10
281
97
  * @param enable 是否开启自动对焦,默认为 true。
282
98
  * - true:开启;
283
99
  * - false:关闭。
100
+ * @return <br>
101
+ * - 0:开启/关闭成功;
102
+ * - ≠0:开启/关闭失败。
284
103
  *
285
104
  */
286
105
 
@@ -288,15 +107,15 @@ export declare class VeLiveCameraDevice {
288
107
  /** {zh}
289
108
  * @detail api
290
109
  * @brief 设置摄像头的对焦位置。
291
- * @return <br>
292
- * - 0:设置成功;
293
- * - ≠0:设置失败。
294
110
  * @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
295
- * @order 73
111
+ * @order 11
296
112
  * @param viewW 当前视图宽度。
297
113
  * @param viewH 当前视图高度。
298
114
  * @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
299
115
  * @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
116
+ * @return <br>
117
+ * - 0:设置成功;
118
+ * - ≠0:设置失败。
300
119
  *
301
120
  */
302
121
 
@@ -304,10 +123,10 @@ export declare class VeLiveCameraDevice {
304
123
  /** {zh}
305
124
  * @detail api
306
125
  * @brief 检查当前使用的摄像头是否支持手动设置曝光点。
126
+ * @notes 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
127
+ * @order 12
307
128
  * @return - YES:支持;
308
129
  * - NO:不支持。
309
- * @notes 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能检查曝光点设置能力。
310
- * @order 74
311
130
  *
312
131
  */
313
132
 
@@ -315,15 +134,15 @@ export declare class VeLiveCameraDevice {
315
134
  /** {zh}
316
135
  * @detail api
317
136
  * @brief 设置当前使用的摄像头的曝光点。
318
- * @return - =0:成功;
319
- * - ≠0:失败。
320
137
  * @notes - 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集,并且使用 SDK 内部渲染时,才能设置曝光点;
321
138
  * - 调用 [stopVideoCapture](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光点失效。
322
- * @order 75
139
+ * @order 13
323
140
  * @param viewW 当前视图宽度。
324
141
  * @param viewH 当前视图高度。
325
142
  * @param x 以左上角为原点,对焦点距当前视图的横向坐标值。
326
143
  * @param y 以左上角为原点,对焦点距当前视图的纵向坐标值。
144
+ * @return - =0:成功;
145
+ * - ≠0:失败。
327
146
  *
328
147
  */
329
148
 
@@ -331,10 +150,10 @@ export declare class VeLiveCameraDevice {
331
150
  /** {zh}
332
151
  * @detail api
333
152
  * @brief 获取摄像头的最小曝光补偿值。
334
- * @return - ≤0:表示不支持曝光补偿;
335
- * - \\>0:支持曝光补偿,数值表示最小曝光补偿。
336
153
  * @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
337
- * @order 76
154
+ * @order 14
155
+ * @return - ≤0:表示不支持曝光补偿;
156
+ * - >0:支持曝光补偿,数值表示最小曝光补偿。
338
157
  *
339
158
  */
340
159
 
@@ -342,10 +161,10 @@ export declare class VeLiveCameraDevice {
342
161
  /** {zh}
343
162
  * @detail api
344
163
  * @brief 获取摄像头的最大曝光补偿值。
345
- * @return - ≤0:表示不支持曝光补偿;
346
- * - \\>0:支持曝光补偿,数值表示最大曝光补偿。
347
164
  * @notes 需要在调用 [startVideoCapture](#VeLivePusher-startvideocapture) 启动相机采集后,调用本方法。
348
- * @order 77
165
+ * @order 15
166
+ * @return - ≤0:表示不支持曝光补偿;
167
+ * - >0:支持曝光补偿,数值表示最大曝光补偿。
349
168
  *
350
169
  */
351
170
 
@@ -353,12 +172,12 @@ export declare class VeLiveCameraDevice {
353
172
  /** {zh}
354
173
  * @detail api
355
174
  * @brief 设置当前使用的摄像头的曝光补偿。
356
- * @return - =0:设置成功;
357
- * - ≠0:设置失败。
358
175
  * @notes - 必须已调用 [startVideoCapture](#VeLivePusher-startvideocapture) 使用 SDK 内部采集模块进行视频采集时,才能设置曝光补偿。
359
176
  * - 调用 [stopVideoCapture](#VeLivePusher-stopvideocapture) 关闭内部采集后,设置的曝光补偿失效。
360
- * @order 78
177
+ * @order 16
361
178
  * @param value 曝光补偿值,取值范围 [[getMinExposureCompensation](#VeLiveCameraDevice-getminexposurecompensation),[getMaxExposureCompensation](#VeLiveCameraDevice-getmaxexposurecompensation)],0 为系统默认值,表示没有曝光补偿。
179
+ * @return - =0:设置成功;
180
+ * - ≠0:设置失败。
362
181
  *
363
182
  */
364
183
 
@@ -368,20 +187,19 @@ export declare class VeLiveVideoEffectManager {
368
187
  /** {zh}
369
188
  * @detail api
370
189
  * @brief 视频特效许可证配置,用于初始化视频特效管理对象。
190
+ * @order 89
191
+ * @param config 特效初始化配置,详情请参见 [VeLiveVideoEffectLicenseConfiguration](147521#VeLivePusherDef-VeLiveVideoEffectLicenseConfiguration)。
371
192
  * @return <br>
372
193
  * - 0:调用成功;
373
194
  * - -1:调用失败。
374
- * @order 89
375
- * @param config 特效初始化配置,详情请参见 [VeLiveVideoEffectLicenseConfiguration](147521#VeLiveVideoEffectLicenseConfiguration)。
376
195
  *
377
196
  */
378
197
 
379
198
  setupWithConfig(config: VeLiveVideoEffectLicenseConfiguration): int;
380
199
  /** {zh}
381
200
  * @detail api
382
- * @brief 更新在线 License。本方法仅对在线 License 有效。
201
+ * @brief 如果您使用在线 License 认证方式,在许可证过期后,可调用该方法更新 License
383
202
  * @notes - 需要通过调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用;
384
- * - 如果您使用在线 License 认证方式,在许可证过期后,可调用该方法更新 License;
385
203
  * - 本方法为异步操作。
386
204
  * @order 90
387
205
  * @param callback 结果回调信息
@@ -392,11 +210,7 @@ export declare class VeLiveVideoEffectManager {
392
210
  /** {zh}
393
211
  * @detail api
394
212
  * @brief 创建/销毁特效引擎。
395
- * @return <br>
396
- * - 0:成功;
397
- * - -1:失败。
398
- * @notes <br>
399
- * - 该方法需要在调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 和 [setAlgorithmModelPath](#VeLiveVideoEffectManager-setalgorithmmodelpath) 后调用;
213
+ * @notes - 该方法需要在调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 和 [setAlgorithmModelPath](#VeLiveVideoEffectManager-setalgorithmmodelpath) 后调用;
400
214
  * - 该方法不直接开启/关闭视频特效,您需要在调用该方法后,调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 开启视频特效;
401
215
  * - 通用场景下,特效引擎会随 EffectManager 销毁而销毁。如果您对性能有较高要求,也可以在不使用特效相关功能时,调用该方法销毁特效引擎;
402
216
  * - 如果重复创建/销毁特效引擎,会产生时间消耗。
@@ -404,7 +218,9 @@ export declare class VeLiveVideoEffectManager {
404
218
  * @param enable 是否创建特效引擎。默认为 false。 <br>
405
219
  * - true:创建;
406
220
  * - false:销毁。
407
- * @param callback 视频特效回调 [VeLiveVideoEffectCallback](147519#velivevideoeffectcallback)。
221
+ * @param callback 视频特效回调 [VeLiveVideoEffectCallback](147519#VeLivePusherDef-VeLiveVideoEffectCallback)。
222
+ * @return - 0:成功;
223
+ * - -1:失败。
408
224
  *
409
225
  */
410
226
 
@@ -412,12 +228,12 @@ export declare class VeLiveVideoEffectManager {
412
228
  /** {zh}
413
229
  * @detail api
414
230
  * @brief 设置特效算法模型包的路径。
415
- * @return <br>
416
- * - 0:调用成功;
417
- * - -1:调用失败。
418
231
  * @notes <br>需要通过调用 [setupWithConfig](#VeLiveVideoEffectManager-setupwithconfig) 设置视频特效许可证后调用。
419
232
  * @order 91
420
233
  * @param path 特效算法模型包的路径
234
+ * @return <br>
235
+ * - 0:调用成功;
236
+ * - -1:调用失败。
421
237
  *
422
238
  */
423
239
 
@@ -425,45 +241,41 @@ export declare class VeLiveVideoEffectManager {
425
241
  /** {zh}
426
242
  * @detail api
427
243
  * @brief 设置视频特效组合。支持设置 ComposeMakeup.bundle 中的功能,包括美颜、美形、美体、美妆等。
428
- * @return <br>
429
- * - 0:调用成功;
430
- * - -1:调用失败。
431
244
  * @notes <br>
432
245
  * - 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法;
433
246
  * - 重复调用本方法,仅最后一次调用生效;
434
247
  * - 如果需要在当前的视频特效组合中叠加特效,可调用 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 方法。
435
248
  * @order 93
436
249
  * @param nodes 视频特效素材包路径数组
250
+ * @return <br>
251
+ * - 0:调用成功;
252
+ * - -1:调用失败。
437
253
  *
438
254
  */
439
255
 
440
256
  setComposeNodes(nodes: Array<String>): int;
441
257
  /** {zh}
442
258
  * @detail api
443
- * @brief 在已有的视频特效组合上,叠加视频特效素材包。
259
+ * @brief 在已有的视频特效组合上,叠加视频特效素材包,您可以调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置视频特效组合。
260
+ * @notes 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
261
+ * @order 94
262
+ * @param nodes 视频特效素材包路径数组
444
263
  * @return <br>
445
264
  * - 0:调用成功;
446
265
  * - -1:调用失败。
447
- * @notes <br>
448
- * - 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
449
- * - 调用本方法,会在 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置的视频特效组合的基础上叠加特效。
450
- * @order 94
451
- * @param nodes 视频特效素材包路径数组
452
266
  *
453
267
  */
454
268
 
455
269
  appendComposeNodes(nodes: Array<String>): int;
456
270
  /** {zh}
457
271
  * @detail api
458
- * @brief 移除指定的视频特效资源。
272
+ * @brief 调用本方法,可移除调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 和 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 设置的视频特效资源。
273
+ * @notes 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
274
+ * @order 94
275
+ * @param nodes 视频特效素材包路径数组
459
276
  * @return <br>
460
277
  * - 0:调用成功;
461
278
  * - -1:调用失败。
462
- * @notes <br>
463
- * - 需要在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 创建特效引擎后,调用本方法。
464
- * - 调用本方法,可移除调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 和 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 设置的视频特效资源。
465
- * @order 94
466
- * @param nodes 视频特效素材包路径数组
467
279
  *
468
280
  */
469
281
 
@@ -471,9 +283,6 @@ export declare class VeLiveVideoEffectManager {
471
283
  /** {zh}
472
284
  * @detail api
473
285
  * @brief 设置视频特效强度。
474
- * @return <br>
475
- * - 0:调用成功;
476
- * - -1:调用失败。
477
286
  * @notes <br>
478
287
  * - 需要在调用 [setComposeNodes](#VeLiveVideoEffectManager-setcomposenodes) 设置视频特效组合或调用 [appendComposeNodes](#VeLiveVideoEffectManager-appendcomposenodes) 叠加视频特效素材包后,调用本方法;
479
288
  * - 该方法仅适用于同时含有上述三个参数的特效资源,对于没有强度参数的特效(如贴纸),该方法无效。
@@ -481,6 +290,9 @@ export declare class VeLiveVideoEffectManager {
481
290
  * @param node 视频特效素材包路径
482
291
  * @param key 需要设置的素材 key 名称
483
292
  * @param intensity 需要设置的强度值。取值范围为 [0.0,1.0]
293
+ * @return <br>
294
+ * - 0:调用成功;
295
+ * - -1:调用失败。
484
296
  *
485
297
  */
486
298
 
@@ -488,12 +300,12 @@ export declare class VeLiveVideoEffectManager {
488
300
  /** {zh}
489
301
  * @detail api
490
302
  * @brief 设置颜色滤镜。
491
- * @return <br>
492
- * - 0:调用成功;
493
- * - -1:调用失败。
494
303
  * @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
495
304
  * @order 96
496
305
  * @param path 滤镜资源包绝对路径
306
+ * @return <br>
307
+ * - 0:调用成功;
308
+ * - -1:调用失败。
497
309
  *
498
310
  */
499
311
 
@@ -501,12 +313,11 @@ export declare class VeLiveVideoEffectManager {
501
313
  /** {zh}
502
314
  * @detail api
503
315
  * @brief 设置已启用的颜色滤镜强度。
504
- * @return <br>
505
- * - 0:调用成功;
506
- * - -1:调用失败。
507
316
  * @notes <br>请在调用 [setFilter](#VeLiveVideoEffectManager-setfilter) 设置颜色滤镜后调用。
508
317
  * @order 97
509
318
  * @param intensity 滤镜强度,取值范围为 [0.0,1.0]。
319
+ * @return - 0:调用成功;
320
+ * - -1:调用失败。
510
321
  *
511
322
  */
512
323
 
@@ -514,22 +325,22 @@ export declare class VeLiveVideoEffectManager {
514
325
  /** {zh}
515
326
  * @detail api
516
327
  * @brief 设置贴纸特效。
517
- * @return <br>
518
- * - 0:调用成功;
519
- * - -1:调用失败。
520
328
  * @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法。
521
329
  * @order 98
522
330
  * @param path 贴纸素材包的绝对路径
331
+ * @return <br>
332
+ * - 0:调用成功;
333
+ * - -1:调用失败。
523
334
  *
524
335
  */
525
336
 
526
337
  setSticker(path: String): int;
527
338
  /** {zh}
528
339
  * @detail api
529
- * @brief CV 高级接口。
530
- * @notes <br>请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法,不要在主线程中频繁执行同步操作。
340
+ * @brief 智能美化特效的高级功能。
341
+ * @notes 请在调用 [setEnable](#VeLiveVideoEffectManager-setenable) 开启视频特效后,调用该方法,不要在主线程中频繁执行同步操作。
531
342
  * @order 99
532
- * @param callback 回调 CV 的 handle。
343
+ * @param callback handle 作为参数的回调函数。
533
344
  * @param isGLThread 是否在 GL 线程回调 callback。
534
345
  * @param isAsync 是否同步执行 callback。
535
346
  *
@@ -551,25 +362,16 @@ export declare class VeLivePusher {
551
362
  /** {zh}
552
363
  * @detail api
553
364
  * @brief 设置输出到控制台的日志等级。
554
- * @order 60
365
+ * @order 49
555
366
  * @param logLevel 输出的日志级别。级别详情请参见 [VeLivePusherLogLevel](147521#VeLivePusherLogLevel)。
556
367
  *
557
368
  */
558
369
 
559
370
  static setLogLevel(logLevel: VeLivePusherLogLevel): void;
560
- /** {zh}
561
- * @detail api
562
- * @hidden
563
- * @brief 设置日志控制。
564
- * @param config 输出的日志控制,详情请参见 [VeLivePusherLogConfig](147521#VeLivePusherLogConfig)。
565
- *
566
- */
567
-
568
- static setLogConfig(config: VeLivePusherLogConfig): void;
569
371
  /** {zh}
570
372
  * @detail api
571
373
  * @brief 设置 OpenGL 的上下文。
572
- * @order 61
374
+ * @order 50
573
375
  * @param context OpenGL 上下文。
574
376
  *
575
377
  */
@@ -578,7 +380,7 @@ export declare class VeLivePusher {
578
380
  /** {zh}
579
381
  * @detail api
580
382
  * @brief 停止采集和推流,并销毁推流器。通常在调用 [stopPush](#VeLivePusher-stoppush) 结束推流后调用此方法进行清理。
581
- * @order 13
383
+ * @order 4
582
384
  *
583
385
  */
584
386
 
@@ -589,7 +391,7 @@ export declare class VeLivePusher {
589
391
  * @notes <br>
590
392
  * - 需要在创建推流引擎后,调用本方法;
591
393
  * - 重复调用本方法,仅最后一次调用生效。
592
- * @order 14
394
+ * @order 2
593
395
  * @param observer 推流器回调对象,详细信息请参见 [VeLivePusherObserver](147519#VeLivePusherObserver)。
594
396
  *
595
397
  */
@@ -601,8 +403,8 @@ export declare class VeLivePusher {
601
403
  * @notes <br>
602
404
  * - 需要在创建推流引擎后,调用本方法;
603
405
  * - 重复调用本方法,仅最后一次调用生效。
604
- * @order 15
605
- * @param observer 推流器周期性回调对象,详细信息请参见 [VeLivePusherStatisticsObserver](147519#VeLivePusherStatisticsObserver)。
406
+ * @order 3
407
+ * @param observer 推流器周期性回调对象,详细信息请参见 [VeLivePusherStatisticsObserver](147519#VeLivePusherDef-VeLivePusherStatisticsObserver)。
606
408
  * @param interval 周期性回调的时间间隔,单位为 s,默认值为 5。
607
409
  *
608
410
  */
@@ -612,7 +414,7 @@ export declare class VeLivePusher {
612
414
  * @detail api
613
415
  * @brief 设置本地摄像头预览视图。摄像头采集到的画面,经过美颜、脸形调整、滤镜等多种效果叠加之后,最终会显示到传入的 View 上。
614
416
  * @param view 摄像头预览视图
615
- * @order 16
417
+ * @order 5
616
418
  *
617
419
  */
618
420
 
@@ -621,6 +423,7 @@ export declare class VeLivePusher {
621
423
  * @detail api
622
424
  * @brief 设置本地预览画面的填充模式。
623
425
  * @param mode 填充模式。
426
+ * @order 6
624
427
  *
625
428
  */
626
429
 
@@ -630,7 +433,7 @@ export declare class VeLivePusher {
630
433
  * @brief 开启/关闭镜像。
631
434
  * @notes <br>
632
435
  * 用于配置视频镜像效果,影响采集、预览和推流画面。
633
- * @order 17
436
+ * @order 7
634
437
  * @param type 镜像类型,详细信息请参见 [VeLiveVideoMirrorType](147521#VeLiveVideoMirrorType)。
635
438
  * @param mirror 是否开启镜像。<br>
636
439
  * - true:开启;
@@ -643,10 +446,9 @@ export declare class VeLivePusher {
643
446
  * @detail api
644
447
  * @brief 开始视频采集。
645
448
  * @notes <br>调用该接口后,可以通过调用接口 [stopVideoCapture](#VeLivePusher-stopvideocapture) 停止视频采集。
646
- * @order 18
449
+ * @order 8
647
450
  * @param type 视频采集类型,详细信息请参见 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType}
648
451
  *
649
- *
650
452
  */
651
453
 
652
454
  startVideoCapture(type: VeLiveVideoCaptureType): void;
@@ -654,7 +456,7 @@ export declare class VeLivePusher {
654
456
  * @detail api
655
457
  * @brief 停止视频采集。
656
458
  * @notes <br>调用该接口后,可以通过调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 开始视频采集。
657
- * @order 19
459
+ * @order 10
658
460
  *
659
461
  */
660
462
 
@@ -663,7 +465,7 @@ export declare class VeLivePusher {
663
465
  * @detail api
664
466
  * @brief 开始音频采集。
665
467
  * @notes <br>调用该接口后,可以通过调用接口 [stopAudioCapture](#VeLivePusher-stopaudiocapture) 停止音频采集。
666
- * @order 20
468
+ * @order 9
667
469
  * @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
668
470
  *
669
471
  */
@@ -673,7 +475,7 @@ export declare class VeLivePusher {
673
475
  * @detail api
674
476
  * @brief 停止音频采集。
675
477
  * @notes <br>调用该接口后,可以通过调用接口 [startAudioCapture](#VeLivePusher-startaudiocapture) 开始音频采集。
676
- * @order 21
478
+ * @order 11
677
479
  *
678
480
  */
679
481
 
@@ -682,7 +484,7 @@ export declare class VeLivePusher {
682
484
  * @detail api
683
485
  * @brief 切换视频采集类型。
684
486
  * @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
685
- * @order 22
487
+ * @order 12
686
488
  * @param type 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
687
489
  *
688
490
  */
@@ -692,7 +494,7 @@ export declare class VeLivePusher {
692
494
  * @detail api
693
495
  * @brief 切换音频采集类型。
694
496
  * @notes <br>该接口必须在调用接口 [startVideoCapture](#VeLivePusher-startvideocapture) 后调用才能生效。
695
- * @order 23
497
+ * @order 13
696
498
  * @param type 音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
697
499
  *
698
500
  */
@@ -701,8 +503,8 @@ export declare class VeLivePusher {
701
503
  /** {zh}
702
504
  * @detail api
703
505
  * @brief 获取当前视频采集类型。
704
- * @return <br>视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
705
- * @order 24
506
+ * @order 14
507
+ * @return 视频采集类型,详细信息请参见 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType)。
706
508
  *
707
509
  */
708
510
 
@@ -710,17 +512,16 @@ export declare class VeLivePusher {
710
512
  /** {zh}
711
513
  * @detail api
712
514
  * @brief 获取当前音频采集类型。
515
+ * @order 15
713
516
  * @return <br>音频采集类型,详细信息请参见 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType)。
714
- * @order 25
715
517
  *
716
518
  */
717
519
 
718
520
  getCurrentAudioCaptureType(): VeLiveAudioCaptureType;
719
521
  /** {zh}
720
522
  * @detail api
721
- * @brief 自定义静态图,适用于静态图推流采集类型。
722
- * @notes <br>使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 [startVideoCapture](#VeLivePusher-startvideocapture) 方法,将 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
723
- * @order 26
523
+ * @brief 自定义静态图,适用于静态图推流采集类型。使用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureCustomImage,您可调用 [startVideoCapture](#VeLivePusher-startvideocapture) 方法,将 [VeLiveVideoCaptureType](147521#VeLiveVideoCaptureType) 设置为 VeLiveVideoCaptureCustomImage。
524
+ * @order 16
724
525
  * @param image 静态图片,用于在静态图推流采集类型下设置静态图。
725
526
  *
726
527
  */
@@ -732,11 +533,10 @@ export declare class VeLivePusher {
732
533
  * - 控制闪光灯开关
733
534
  * - 设置摄像头缩放比例
734
535
  * - 设置自动对焦
735
- * @return <br>
736
- * 相机设备管理对象 VeLiveCameraDevice{@link #VeLiveCameraDevice}。
737
536
  * @notes <br>
738
537
  * 该接口需要在 startVideoCapture{@link #startVideoCapture} 方法中设置 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 为 VeLiveVideoCaptureFrontCamera 或 VeLiveVideoCaptureBackCamera。
739
- * @order 27
538
+ * @order 17
539
+ * @return 相机设备管理对象 [VeLiveCameraDevice](#VeLiveCameraDevice)。
740
540
  *
741
541
  */
742
542
 
@@ -745,8 +545,8 @@ export declare class VeLivePusher {
745
545
  * @detail api
746
546
  * @brief 设置推流视频编码参数。
747
547
  * @notes 该接口可在推流开始前或开始后调用。
748
- * @order 28
749
- * @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration}
548
+ * @order 18
549
+ * @param config 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 [VeLiveVideoEncoderConfiguration](147521#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
750
550
  *
751
551
  */
752
552
 
@@ -754,9 +554,8 @@ export declare class VeLivePusher {
754
554
  /** {zh}
755
555
  * @detail api
756
556
  * @brief 获取推流视频编码参数。
757
- * @return <br>
758
- * 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration}
759
- * @order 29
557
+ * @order 19
558
+ * @return 推流视频参数,支持设置推流视频分辨率、编码格式、目标码率和视频 GOP 大小等信息。详情请参见 [VeLiveVideoEncoderConfiguration](147521#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
760
559
  *
761
560
  */
762
561
 
@@ -765,8 +564,8 @@ export declare class VeLivePusher {
765
564
  * @detail api
766
565
  * @brief 设置推流音频编码参数。
767
566
  * @notes <br>该接口需要在 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法之前调用。
768
- * @order 30
769
- * @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLiveAudioEncoderConfiguration)。
567
+ * @order 20
568
+ * @param config 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
770
569
  *
771
570
  */
772
571
 
@@ -774,8 +573,8 @@ export declare class VeLivePusher {
774
573
  /** {zh}
775
574
  * @detail api
776
575
  * @brief 获取推流音频编码参数。
777
- * @return <br>推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLiveAudioEncoderConfiguration)。
778
- * @order 31
576
+ * @order 21
577
+ * @return 推流音频编码参数,详情请参见 [VeLiveAudioEncoderConfiguration](147521#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
779
578
  *
780
579
  */
781
580
 
@@ -783,7 +582,7 @@ export declare class VeLivePusher {
783
582
  /** {zh}
784
583
  * @detail api
785
584
  * @brief 开始推流。
786
- * @order 32
585
+ * @order 22
787
586
  * @param url 推流地址,用于将直播流推送到目标服务器。
788
587
  *
789
588
  */
@@ -794,7 +593,7 @@ export declare class VeLivePusher {
794
593
  * @brief 开始推流,支持备用推流地址。
795
594
  * @notes <br>
796
595
  * 当主推流地址不可用时,会自动切换到备用推流地址继续推流。
797
- * @order 33
596
+ * @order 23
798
597
  * @param urls 推流地址列表,包含一个或多个推流地址。
799
598
  *
800
599
  */
@@ -804,7 +603,7 @@ export declare class VeLivePusher {
804
603
  * @detail api
805
604
  * @brief 停止推流。
806
605
  * @notes <br>停止推流后,可以通过调用 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法重新开始推流。
807
- * @order 34
606
+ * @order 24
808
607
  *
809
608
  */
810
609
 
@@ -812,11 +611,11 @@ export declare class VeLivePusher {
812
611
  /** {zh}
813
612
  * @detail api
814
613
  * @brief 当前是否正在推流中,可用来查询推流器的当前状态。
614
+ * @order 25
815
615
  * @return <br>
816
616
  * 是否正在推流。<br>
817
617
  * - true:正在推流中;
818
618
  * - false:已经停止推流。
819
- * @order 35
820
619
  *
821
620
  */
822
621
 
@@ -824,14 +623,14 @@ export declare class VeLivePusher {
824
623
  /** {zh}
825
624
  * @detail api
826
625
  * @brief 设置推流水印。
827
- * @return <br>
828
- * - 0:水印设置成功;
829
- * - <0:水印设置失败。
830
- * @order 36
626
+ * @order 26
831
627
  * @param image 水印图片。取值为 null 时,表示禁用水印。
832
628
  * @param x 水印的水平偏移量,即水印图片相对视频流左上角的横向偏移与视频流宽度的比值,取值范围为 [0.0,1.0]。
833
629
  * @param y 水印的垂直偏移量,即水印图片相对视频流左上角的纵向偏移与视频流高度的比值,取值范围为 [0.0,1.0]。
834
630
  * @param scale 水印图片的缩放比例,取值范围为 [0.0,1.0]。
631
+ * @return <br>
632
+ * - 0:水印设置成功;
633
+ * - <0:水印设置失败。
835
634
  *
836
635
  */
837
636
 
@@ -839,10 +638,10 @@ export declare class VeLivePusher {
839
638
  /** {zh}
840
639
  * @detail api
841
640
  * @brief 开始本地文件录制。
842
- * @order 37
641
+ * @order 27
843
642
  * @param path 录制文件保存路径,不能为空。
844
- * @param config 文件录制设置,详情请参见 [VeLiveFileRecorderConfiguration](147521#VeLiveFileRecorderConfiguration)。
845
- * @param listener 本地文件录制的监听,详情请参见 [VeLiveFileRecordingListener](147519#VeLiveFileRecordingListener)
643
+ * @param config 文件录制设置,详情请参见 [VeLiveFileRecorderConfiguration](147521#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
644
+ * @param listener 本地文件录制的监听,详情请参见 [VeLiveFileRecordingListener](147519#VeLivePusherDef-VeLiveFileRecordingListener)。
846
645
  *
847
646
  */
848
647
 
@@ -851,7 +650,7 @@ export declare class VeLivePusher {
851
650
  * @detail api
852
651
  * @brief 停止本地文件录制。
853
652
  * @notes <br>该接口需要在 [startFileRecording](#VeLivePusher-startfilerecording) 方法之后调用。
854
- * @order 38
653
+ * @order 28
855
654
  *
856
655
  */
857
656
 
@@ -859,12 +658,12 @@ export declare class VeLivePusher {
859
658
  /** {zh}
860
659
  * @detail api
861
660
  * @brief 高级配置。
661
+ * @order 29
662
+ * @param key 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Key。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
663
+ * @param value 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Value。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
862
664
  * @return <br>
863
665
  * - 0:成功;
864
666
  * - -1:失败,参数错误。
865
- * @order 39
866
- * @param key 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Key。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
867
- * @param value 推流高级配置为 JSON 格式的字符串,此参数为 JSON 结构中的 Value。您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076),了解配置方法。
868
667
  *
869
668
  */
870
669
 
@@ -872,13 +671,12 @@ export declare class VeLivePusher {
872
671
  /** {zh}
873
672
  * @detail api
874
673
  * @brief 推送外部视频帧数据。
875
- * @return <br>
876
- * - 0:成功;
877
- * - <0:失败。
878
674
  * @notes <br>
879
675
  * 调用该接口时,需要将视频采集类型设置为 VeLiveVideoCaptureExternal,您可调用 startVideoCapture{@link #startVideoCapture} 方法,将 VeLiveVideoCaptureType{@link #VeLiveVideoCaptureType} 设置为 VeLiveVideoCaptureExternal。
880
- * @order 40
881
- * @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame)。
676
+ * @order 30
677
+ * @param frame 视频帧的数据信息,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
678
+ * @return - 0:成功;
679
+ * - <0:失败。
882
680
  *
883
681
  */
884
682
 
@@ -886,13 +684,12 @@ export declare class VeLivePusher {
886
684
  /** {zh}
887
685
  * @detail api
888
686
  * @brief 推送外部音频帧数据。
687
+ * @notes 该接口需要在 startAudioCapture 方法中设置 [VeLiveAudioCaptureType](147521#VeLiveAudioCaptureType) 为 VeLiveAudioCaptureExternal。
688
+ * @order 31
689
+ * @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
889
690
  * @return <br>
890
691
  * - 0:成功;
891
692
  * - <0:失败。
892
- * @notes <br>
893
- * 该接口需要在 startAudioCapture{@link #startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureExternal。
894
- * @order 41
895
- * @param frame 外部音频数据。详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame)。
896
693
  *
897
694
  */
898
695
 
@@ -900,7 +697,7 @@ export declare class VeLivePusher {
900
697
  /** {zh}
901
698
  * @detail api
902
699
  * @brief 设置推流视频帧朝向。默认为竖屏推流。
903
- * @order 42
700
+ * @order 32
904
701
  * @param orientation 视频帧朝向,详情请参见 [VeLiveOrientation](147521#VeLiveOrientation)。
905
702
  *
906
703
  */
@@ -909,11 +706,8 @@ export declare class VeLivePusher {
909
706
  /** {zh}
910
707
  * @detail api
911
708
  * @brief 通过视频帧发送 SEI 消息。
912
- * @return <br>
913
- * - 0:成功;
914
- * - <0:失败。
915
709
  * @notes <br>该接口需要在调用 [startPush](#VeLivePusher-startpush) 或 [startPushWithUrls](#VeLivePusher-startpushwithurls) 方法之后调用。
916
- * @order 43
710
+ * @order 33
917
711
  * @param key SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Key。
918
712
  * @param value SEI 消息为 JSON 格式的字符串。此参数为 JSON 结构中的 Value。
919
713
  * @param repeat 消息发送重复的次数。例如,`repeat` 取值为 20,`isKeyFrame` 取值为 YES,则会在视频帧开始的连续 20 个关键帧中添加 SEI 消息。
@@ -923,6 +717,9 @@ export declare class VeLivePusher {
923
717
  * @param allowsCovered 是否允许覆盖。<br>
924
718
  * - true:允许;
925
719
  * - false:不允许。
720
+ * @return <br>
721
+ * - 0:成功;
722
+ * - <0:失败。
926
723
  *
927
724
  */
928
725
 
@@ -933,7 +730,7 @@ export declare class VeLivePusher {
933
730
  * @param mute 是否设置为静音。默认为正常推流。<br>
934
731
  * - true:静音推流;
935
732
  * - false:正常推流。
936
- * @order 44
733
+ * @order 34
937
734
  *
938
735
  */
939
736
 
@@ -941,10 +738,10 @@ export declare class VeLivePusher {
941
738
  /** {zh}
942
739
  * @detail api
943
740
  * @brief 当前是否是静音状态。
741
+ * @order 35
944
742
  * @return <br>
945
743
  * - true:当前是静音状态;
946
744
  * - false:当前非静音状态。
947
- * @order 45
948
745
  *
949
746
  */
950
747
 
@@ -957,11 +754,9 @@ export declare class VeLivePusher {
957
754
  * - 设置素材
958
755
  * - 设置贴图
959
756
  * - 设置滤镜
960
- * @return <br>
961
- * 视频特效管理对象 VeLiveVideoEffectManager{@link #VeLiveVideoEffectManager}。
962
- * @notes <br>
963
- * 该接口需要集成美颜特效 CV SDK 后才能使用。
964
- * @order 46
757
+ * @notes 该接口需要集成智能美化特效 SDK 后才能使用。
758
+ * @order 36
759
+ * @return 视频特效管理对象 [VeLiveVideoEffectManager](#VeLiveVideoEffectManager)。
965
760
  *
966
761
  */
967
762
 
@@ -969,8 +764,8 @@ export declare class VeLivePusher {
969
764
  /** {zh}
970
765
  * @detail api
971
766
  * @brief 自定义视频处理。
972
- * @order 47
973
- * @param filter 视频数据处理回调,详情请参见 [VeLiveVideoFrameFilter](147519#VeLiveVideoFrameFilter)。
767
+ * @order 37
768
+ * @param filter 视频数据处理回调,详情请参见 [VeLiveVideoFrameFilter](147519#VeLivePusherDef-VeLiveVideoFrameFilter)。
974
769
  *
975
770
  */
976
771
 
@@ -978,11 +773,10 @@ export declare class VeLivePusher {
978
773
  /** {zh}
979
774
  * @detail api
980
775
  * @brief 获取音频模块管理对象。
981
- * @return <br>
982
- * 音频模块管理对象 VeLiveAudioDevice{@link #VeLiveAudioDevice}。
983
776
  * @notes <br>
984
777
  * 该接口需要在 startAudioCapture{@link #startAudioCapture} 方法中设置 VeLiveAudioCaptureType{@link #VeLiveAudioCaptureType} 为 VeLiveAudioCaptureMicrophone。
985
- * @order 48
778
+ * @order 38
779
+ * @return 音频模块管理对象 [VeLiveAudioDevice](#VeLiveAudioDevice)。
986
780
  *
987
781
  */
988
782
 
@@ -990,7 +784,7 @@ export declare class VeLivePusher {
990
784
  /** {zh}
991
785
  * @detail api
992
786
  * @brief 自定义音频处理。
993
- * @order 49
787
+ * @order 39
994
788
  * @param filter 音频帧滤镜对象 VeLiveAudioFrameFilter 。
995
789
  *
996
790
  */
@@ -999,45 +793,32 @@ export declare class VeLivePusher {
999
793
  /** {zh}
1000
794
  * @detail api
1001
795
  * @brief 创建播放器。
1002
- * @return <br>
1003
- * 播放器管理对象 VeLiveMediaPlayer{@link #VeLiveMediaPlayer}
1004
- * @order 50
796
+ * @order 1
797
+ * @return 播放器管理对象 [VeLiveMediaPlayer](#VeLiveMediaPlayer)
1005
798
  *
1006
799
  */
1007
800
 
1008
801
  createPlayer(): VeLiveMediaPlayer;
1009
802
  /** {zh}
1010
803
  * @detail api
1011
- * @brief 获取混流管理对象。
1012
- * @return <br>
1013
- * 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
1014
- * @order 51
1015
- *
1016
- */
1017
-
1018
- getMixerManager(): VeLiveMixerManager;
1019
- /** {zh}
1020
- * @detail api
1021
- * @brief 开始屏幕采集。
1022
- * @order 52
1023
- * @param enableAppAudio 是否支持应用内音频数据,默认为 true,该参数暂不支持修改。
1024
- * @param screenIntent 系统屏幕录制权限。
804
+ * @brief 开始系统音频采集。
805
+ * @order 41
1025
806
  *
1026
807
  */
1027
808
 
1028
- startScreenRecording(enableAppAudio: boolean, screenIntent: Intent): void;
809
+ startMixSystemAudio(): void;
1029
810
  /** {zh}
1030
811
  * @detail api
1031
- * @brief 停止屏幕采集。
1032
- * @order 53
812
+ * @brief 停止系统音频采集。
813
+ * @order 42
1033
814
  *
1034
815
  */
1035
816
 
1036
- stopScreenRecording(): void;
817
+ stopMixSystemAudio(): void;
1037
818
  /** {zh}
1038
819
  * @detail api
1039
820
  * @brief 获取当前是否处于屏幕采集状态。
1040
- * @order 54
821
+ * @order 43
1041
822
  *
1042
823
  */
1043
824
 
@@ -1045,11 +826,11 @@ export declare class VeLivePusher {
1045
826
  /** {zh}
1046
827
  * @detail api
1047
828
  * @brief 添加视频帧的监听回调,用于获取推流器输出的视频帧。
829
+ * @order 44
830
+ * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLivePusherDef-VeLiveVideoFrameListener)。
1048
831
  * @return <br>
1049
832
  * - 0:成功;
1050
833
  * - <0:失败。
1051
- * @order 55
1052
- * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLiveVideoFrameListener)。
1053
834
  *
1054
835
  */
1055
836
 
@@ -1057,13 +838,13 @@ export declare class VeLivePusher {
1057
838
  /** {zh}
1058
839
  * @detail api
1059
840
  * @brief 移除已添加的视频帧监听回调。
841
+ * @notes <br>
842
+ * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
843
+ * @order 45
844
+ * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLivePusherDef-VeLiveVideoFrameListener)。
1060
845
  * @return <br>
1061
846
  * - 0:成功;
1062
847
  * - <0:失败。
1063
- * @notes <br>
1064
- * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
1065
- * @order 56
1066
- * @param listener 视频帧的监听回调,详细信息请参见 [VeLiveVideoFrameListener](147519#VeLiveVideoFrameListener)。
1067
848
  *
1068
849
  */
1069
850
 
@@ -1071,11 +852,11 @@ export declare class VeLivePusher {
1071
852
  /** {zh}
1072
853
  * @detail api
1073
854
  * @brief 添加音频帧的监听回调,用于获取推流器输出的音频帧。
855
+ * @order 46
856
+ * @param listener 音频帧监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLivePusherDef-VeLiveAudioFrameListener)。
1074
857
  * @return <br>
1075
858
  * - 0:成功;
1076
859
  * - <0:失败。
1077
- * @order 57
1078
- * @param listener 音频帧监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLiveAudioFrameListener)。
1079
860
  *
1080
861
  */
1081
862
 
@@ -1083,13 +864,13 @@ export declare class VeLivePusher {
1083
864
  /** {zh}
1084
865
  * @detail api
1085
866
  * @brief 移除已添加的音频帧监听回调。
867
+ * @notes <br>
868
+ * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
869
+ * @order 47
870
+ * @param listener 音频帧的监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLivePusherDef-VeLiveAudioFrameListener)。
1086
871
  * @return <br>
1087
872
  * - 0:成功;
1088
873
  * - <0:失败。
1089
- * @notes <br>
1090
- * 如果没有添加过此监听回调或者监听回调已被移除,调用此方法将返回失败。
1091
- * @order 58
1092
- * @param listener 音频帧的监听回调,详细信息请参见 [VeLiveAudioFrameListener](147519#VeLiveAudioFrameListener) 。
1093
874
  *
1094
875
  */
1095
876
 
@@ -1097,129 +878,18 @@ export declare class VeLivePusher {
1097
878
  /** {zh}
1098
879
  * @detail api
1099
880
  * @brief 视频截图。
1100
- * @order 59
1101
- * @param listener 截图监听对象,详情请参见 [VeLiveSnapshotListener](147519#VeLiveSnapshotListener)。
881
+ * @order 48
882
+ * @param listener 截图监听对象,详情请参见 [VeLiveSnapshotListener](147519#VeLivePusherDef-VeLiveSnapshotListener)。
1102
883
  *
1103
884
  */
1104
885
 
1105
886
  snapshot(listener: VeLiveSnapshotListener): void;
1106
887
  }
1107
- export declare class VeLiveMixerManager {
1108
- /** {zh}
1109
- * @detail api
1110
- * @brief 添加一路需要混流的视频流到混流器中。
1111
- * @return <br>
1112
- * 视频流 ID。
1113
- * @order 79
1114
- *
1115
- */
1116
-
1117
- addVideoStream(): int;
1118
- /** {zh}
1119
- * @detail api
1120
- * @brief 添加一路音频流到混流器中。
1121
- * @return <br>
1122
- * 音频流 ID。
1123
- * @order 80
1124
- *
1125
- */
1126
-
1127
- addAudioStream(): int;
1128
- /** {zh}
1129
- * @detail api
1130
- * @brief 添加一路音频流到混流器中,并指定混流类型。
1131
- * @return <br>
1132
- * 音频流 ID。
1133
- * @order 81
1134
- * @param type 混流类型,详情请参见 [VeLiveAudioMixType](147521#VeLiveAudioMixType) 。
1135
- *
1136
- */
1137
-
1138
- addAudioStream_type(type: VeLiveAudioMixType): int;
1139
- /** {zh}
1140
- * @detail api
1141
- * @brief 获取主路视频流 ID。
1142
- * @order 83
1143
- *
1144
- */
1145
-
1146
- getOriginVideoStream(): int;
1147
- /** {zh}
1148
- * @detail api
1149
- * @brief 获取主路音频流 ID。
1150
- * @order 84
1151
- *
1152
- */
1153
-
1154
- getOriginAudioStream(): int;
1155
- /** {zh}
1156
- * @detail api
1157
- * @brief 获取主路屏幕流 ID。
1158
- * @order 85
1159
- *
1160
- */
1161
-
1162
- getOriginScreenStream(): int;
1163
- /** {zh}
1164
- * @detail api
1165
- * @brief 获取主路系统音频流 ID。
1166
- * @order 86
1167
- *
1168
- */
1169
-
1170
- getOriginSystemAudioStream(): int;
1171
- /** {zh}
1172
- * @detail api
1173
- * @brief 发送指定混流 ID 的自定义视频帧数据。
1174
- * @order 87
1175
- * @param frame 自定义的视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame) 。
1176
- * @param streamId 需要混流的视频流 ID。
1177
- *
1178
- */
1179
-
1180
- sendCustomVideoFrame(frame: VeLiveVideoFrame, streamId: int): void;
1181
- /** {zh}
1182
- * @detail api
1183
- * @brief 发送指定混流 ID 的自定义音频帧数据。
1184
- * @order 88
1185
- * @param frame 自定义的音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame) 。
1186
- * @param streamId 混流的音频流 ID。
1187
- *
1188
- */
1189
-
1190
- sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: int): void;
1191
- /** {zh}
1192
- * @detail api
1193
- * @brief 更新音视频混流的布局。
1194
- * @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](147521#VeLiveStreamMixDescription)。
1195
- *
1196
- */
1197
-
1198
- updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
1199
- /** {zh}
1200
- * @detail api
1201
- * @brief 从混流器中移除一路非主路的视频流。
1202
- * @order 80
1203
- * @param streamId 需要移除的非主路视频流 ID。
1204
- *
1205
- */
1206
-
1207
- removeVideoStream(streamId: int): void;
1208
- /** {zh}
1209
- * @detail api
1210
- * @brief 从混流器中移除一路非主路的音频流。
1211
- * @order 82
1212
- * @param streamId 需要移除的非主路音频流 ID。
1213
- *
1214
- */
1215
-
1216
- removeAudioStream(streamId: int): void;
1217
- }
1218
888
  export declare class VeLiveMediaPlayer {
1219
889
  /** {zh}
1220
890
  * @detail api
1221
891
  * @brief 销毁播放器实例。
1222
- * @order 100
892
+ * @order 1
1223
893
  *
1224
894
  */
1225
895
 
@@ -1229,8 +899,8 @@ export declare class VeLiveMediaPlayer {
1229
899
  * @brief 设置播放状态的监听。
1230
900
  * @notes <br>
1231
901
  * 重复调用本方法,仅最后一次调用生效。
1232
- * @order 101
1233
- * @param listener 播放状态监听。详情请参见 [VeLiveMediaPlayerListener](147519#VeLiveMediaPlayerListener)。
902
+ * @order 4
903
+ * @param listener 播放状态监听。详情请参见 [VeLiveMediaPlayerListener](147519#VeLivePusherDef-VeLiveMediaPlayerListener)。
1234
904
  *
1235
905
  */
1236
906
 
@@ -1238,21 +908,21 @@ export declare class VeLiveMediaPlayer {
1238
908
  /** {zh}
1239
909
  * @detail api
1240
910
  * @brief 设置文件路径。支持的文件格式包括 MP3、AAC、M4A、WAV。
911
+ * @order 2
912
+ * @param url 文件路径。
1241
913
  * @return <br>
1242
914
  * - 0:成功;
1243
915
  * - ≠0:失败。
1244
- * @order 102
1245
- * @param url 文件路径。
1246
916
  *
1247
917
  */
1248
918
 
1249
919
  prepare(url: String): int;
1250
920
  /** {zh}
1251
921
  * @detail api
1252
- * @brief 暂停播放。
922
+ * @brief 开始播放。
1253
923
  * @notes <br>
1254
924
  * 需要在调用 start{@link #start} 开始播放后,调用本方法。
1255
- * @order 103
925
+ * @order 12
1256
926
  *
1257
927
  */
1258
928
 
@@ -1260,12 +930,12 @@ export declare class VeLiveMediaPlayer {
1260
930
  /** {zh}
1261
931
  * @detail api
1262
932
  * @brief 停止播放。
933
+ * @notes <br>
934
+ * 需要在调用 start{@link #start} 开始播放后,调用本方法。
935
+ * @order 13
1263
936
  * @return <br>
1264
937
  * - 0:成功;
1265
938
  * - ≠0:失败。
1266
- * @notes <br>
1267
- * 需要在调用 start{@link #start} 开始播放后,调用本方法。
1268
- * @order 104
1269
939
  *
1270
940
  */
1271
941
 
@@ -1274,7 +944,7 @@ export declare class VeLiveMediaPlayer {
1274
944
  * @detail api
1275
945
  * @brief 暂停播放。
1276
946
  * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start)[start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
1277
- * @order 105
947
+ * @order 14
1278
948
  *
1279
949
  */
1280
950
 
@@ -1283,7 +953,7 @@ export declare class VeLiveMediaPlayer {
1283
953
  * @detail api
1284
954
  * @brief 恢复播放。
1285
955
  * @notes <br>需要在调用 [pause](#VeLiveMediaPlayer-pause) 暂停播放后,调用本方法。
1286
- * @order 106
956
+ * @order 15
1287
957
  *
1288
958
  */
1289
959
 
@@ -1291,11 +961,11 @@ export declare class VeLiveMediaPlayer {
1291
961
  /** {zh}
1292
962
  * @detail api
1293
963
  * @brief 获取文件的总时长,单位为 ms。
964
+ * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
965
+ * @order 3
1294
966
  * @return <br>
1295
- * - \\\\>0:成功,音频文件时长;
967
+ * - >0:成功,音频文件时长;
1296
968
  * - ≤0:失败。
1297
- * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放后,调用本方法。
1298
- * @order 107
1299
969
  *
1300
970
  */
1301
971
 
@@ -1303,11 +973,11 @@ export declare class VeLiveMediaPlayer {
1303
973
  /** {zh}
1304
974
  * @detail api
1305
975
  * @brief 设置播放进度。
976
+ * @order 5
977
+ * @param posMs 播放时间,单位为 ms。
1306
978
  * @return <br>
1307
979
  * - 0:成功;
1308
980
  * - ≠0:失败。
1309
- * @order 108
1310
- * @param posMs 播放时间,单位为 ms。
1311
981
  *
1312
982
  */
1313
983
 
@@ -1318,7 +988,7 @@ export declare class VeLiveMediaPlayer {
1318
988
  * @param enable 开启/关闭,默认为 false。 <br>
1319
989
  * - ture:开启;
1320
990
  * - false:关闭。
1321
- * @order 109
991
+ * @order 6
1322
992
  *
1323
993
  */
1324
994
 
@@ -1326,29 +996,20 @@ export declare class VeLiveMediaPlayer {
1326
996
  /** {zh}
1327
997
  * @detail api
1328
998
  * @brief 开启/关闭自动音量均衡。
1329
- * @order 110
999
+ * @order 7
1330
1000
  * @param sourceLufs 源响度。
1331
1001
  * @param targetLufs 目标响度。
1332
1002
  *
1333
1003
  */
1334
1004
 
1335
1005
  enableAutoEq(sourceLufs: float, targetLufs: float): void;
1336
- /** {zh}
1337
- * @detail api
1338
- * @brief 支持 MP4 格式的视频渲染。
1339
- * @order 111
1340
- * @param view 渲染视图。
1341
- *
1342
- */
1343
-
1344
- setRenderView(view: View): void;
1345
1006
  /** {zh}
1346
1007
  * @detail api
1347
1008
  * @brief 设置音视频帧回调的监听。
1348
1009
  * @notes <br>
1349
1010
  * 重复调用本方法,仅最后一次调用生效。
1350
- * @order 112
1351
- * @param listener 音视频帧回调监听。详情请参见 [VeLiveMediaPlayerFrameListener](147519#VeLiveMediaPlayerFrameListener)。
1011
+ * @order 8
1012
+ * @param listener 音视频帧回调监听。详情请参见 [VeLiveMediaPlayerFrameListener](147519#VeLivePusherDef-VeLiveMediaPlayerFrameListener)。
1352
1013
  *
1353
1014
  */
1354
1015
 
@@ -1356,7 +1017,7 @@ export declare class VeLiveMediaPlayer {
1356
1017
  /** {zh}
1357
1018
  * @detail api
1358
1019
  * @brief 设置播放音频的音量。
1359
- * @order 113
1020
+ * @order 9
1360
1021
  * @param volume 播放音频音量,取值范围为 [0.0,4.0]。
1361
1022
  *
1362
1023
  */
@@ -1366,7 +1027,7 @@ export declare class VeLiveMediaPlayer {
1366
1027
  * @detail api
1367
1028
  * @brief 设置音频采集音量。
1368
1029
  * @notes <br>需要在调用 [start](#VeLiveMediaPlayer-start) 开始播放背景音乐后,调用本方法。
1369
- * @order 114
1030
+ * @order 10
1370
1031
  * @param volume 音频采集音量,取值范围为 [0.0,4.0]。
1371
1032
  *
1372
1033
  */
@@ -1378,76 +1039,12 @@ export declare class VeLiveMediaPlayer {
1378
1039
  * @param loop 是否循环播放。默认为 false。<br>
1379
1040
  * - true:循环播放;
1380
1041
  * - false:不循环播放。
1381
- * @order 115
1042
+ * @order 11
1382
1043
  *
1383
1044
  */
1384
1045
 
1385
1046
  enableBGMLoop(loop: boolean): void;
1386
1047
  }
1387
- export declare class VeLiveAudioFrame {
1388
- constructor();
1389
- constructor(sampleRate: VeLiveAudioSampleRate, channel: VeLiveAudioChannel, pts: long, buffer: ByteBuffer);
1390
- bufferType: any;
1391
- sampleRate: any;
1392
- channels: any;
1393
- ptsUs: any;
1394
- buffer: any;
1395
- samplesPerChannel: any;
1396
- /** {zh}
1397
- * @detail api
1398
- * @brief 获取音频数据类型。
1399
- * @return <br>
1400
- * 音频数据类型,详情请参见 VeLiveAudioBufferType{@link #VeLiveAudioBufferType}。
1401
- *
1402
- */
1403
-
1404
- getBufferType(): VeLiveAudioBufferType;
1405
- /** {zh}
1406
- * @detail api
1407
- * @brief 获取音频采样率。
1408
- * @return <br>
1409
- * 音频采样率,详情请参见 VeLiveAudioSampleRate{@link #VeLiveAudioSampleRate}。
1410
- *
1411
- */
1412
-
1413
- getSampleRate(): VeLiveAudioSampleRate;
1414
- /** {zh}
1415
- * @detail api
1416
- * @brief 获取音频声道数。
1417
- * @return <br>
1418
- * 音频声道数,详情请参见 VeLiveAudioChannel{@link #VeLiveAudioChannel}。
1419
- *
1420
- */
1421
-
1422
- getChannels(): VeLiveAudioChannel;
1423
- /** {zh}
1424
- * @detail api
1425
- * @brief 获取音频位深度。
1426
- * @return <br>
1427
- * 音频位深度。
1428
- *
1429
- */
1430
-
1431
- getSamplesPerChannel(): int;
1432
- /** {zh}
1433
- * @detail api
1434
- * @brief 获取音频时间戳,单位为 μs。
1435
- * @return <br>
1436
- * 音频时间戳,单位为 μs。
1437
- *
1438
- */
1439
-
1440
- getPts(): long;
1441
- /** {zh}
1442
- * @detail api
1443
- * @brief 获取音频数据。音频帧数据为 float32 格式小端字节序存储。
1444
- * @return <br>
1445
- * 格式为 ByteBuffer 的音频数据。
1446
- *
1447
- */
1448
-
1449
- getBuffer(): ByteBuffer;
1450
- }
1451
1048
  export declare class VeLiveAudioDevice {
1452
1049
  /** {zh}
1453
1050
  * @detail api
@@ -1461,176 +1058,11 @@ export declare class VeLiveAudioDevice {
1461
1058
  /** {zh}
1462
1059
  * @detail api
1463
1060
  * @brief 获取当前音量响度。
1061
+ * @order 75
1464
1062
  * @return <br>
1465
1063
  * 当前音量响度等级。
1466
- * @order 75
1467
1064
  *
1468
1065
  */
1469
1066
 
1470
1067
  getVoiceLoudness(): float;
1471
- /** {zh}
1472
- * @detail api
1473
- * @brief 查询是否支持硬件耳返。
1474
- * @return <br>
1475
- * - true:支持;
1476
- * - false:不支持。
1477
- * @order 76
1478
- *
1479
- */
1480
-
1481
- isSupportHardwareEcho(): boolean;
1482
- /** {zh}
1483
- * @detail api
1484
- * @brief 是否开启耳返功能。
1485
- * @param enable 耳返功能开关。默认值为 false。<br>
1486
- * - true:开启;
1487
- * - false:关闭。
1488
- * @order 77
1489
- *
1490
- */
1491
-
1492
- enableEcho(enable: boolean): void;
1493
- /** {zh}
1494
- * @detail api
1495
- * @brief 获取当前耳返开启状态。
1496
- * @return <br>
1497
- * - true:开启;
1498
- * - false:关闭。
1499
- * @order 78
1500
- *
1501
- */
1502
-
1503
- isEnableEcho(): boolean;
1504
- }
1505
- export declare class VeLivePusherConfiguration {
1506
- /** {zh}
1507
- * @detail api
1508
- * @brief 设置推流器推流失败后尝试重连的时间间隔。
1509
- * @param interval 时间间隔,单位为 s,默认值为 5
1510
- * @order 2
1511
- *
1512
- */
1513
-
1514
- setReconnectIntervalSeconds(interval: int): this;
1515
- /** {zh}
1516
- * @detail api
1517
- * @brief 获取推流器推流失败后尝试重连的时间间隔。
1518
- * @return <br>
1519
- * 时间间隔,单位为 s。
1520
- * @order 3
1521
- *
1522
- */
1523
-
1524
- getReconnectIntervalSeconds(): int;
1525
- /** {zh}
1526
- * @detail api
1527
- * @brief 设置推流器推流失败后尝试重连的次数。
1528
- * @param maxCount 重连次数,默认值为 3
1529
- * @order 4
1530
- *
1531
- */
1532
-
1533
- setReconnectCount(maxCount: int): this;
1534
- /** {zh}
1535
- * @detail api
1536
- * @brief 获取推流器推流失败后尝试重连的次数。
1537
- * @return <br>
1538
- * 重连次数。
1539
- * @order 5
1540
- *
1541
- */
1542
-
1543
- getReconnectCount(): int;
1544
- /** {zh}
1545
- * @detail api
1546
- * @brief 设置视频采集参数,用于调整和设置视频采集相关的参数。
1547
- * @return <br>
1548
- * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1549
- * @order 6
1550
- * @param config 视频采集参数,详情请参见 [VeLiveVideoCaptureConfiguration](147521#VeLiveVideoCaptureConfiguration)。
1551
- *
1552
- */
1553
-
1554
- setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): this;
1555
- /** {zh}
1556
- * @detail api
1557
- * @brief 获取视频采集参数,用于调整和设置视频采集相关的参数。
1558
- * @return <br>视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](147521#VeLiveVideoCaptureConfiguration)。
1559
- * @order 7
1560
- *
1561
- */
1562
-
1563
- getVideoCaptureConfig(): VeLiveVideoCaptureConfiguration;
1564
- /** {zh}
1565
- * @detail api
1566
- * @brief 设置音频采集参数,用于调整和设置音频采集相关的参数。
1567
- * @return <br>
1568
- * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1569
- * @order 7
1570
- * @param config 音频采集参数,详情请参见 [VeLiveAudioCaptureConfiguration](147521#VeLiveAudioCaptureConfiguration)。
1571
- *
1572
- */
1573
-
1574
- setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): this;
1575
- /** {zh}
1576
- * @detail api
1577
- * @brief 获取音频采集参数,用于调整和设置音频采集相关的参数。
1578
- * @return <br>音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](147521#VeLiveAudioCaptureConfiguration)。
1579
- * @order 8
1580
- *
1581
- */
1582
-
1583
- getAudioCaptureConfig(): VeLiveAudioCaptureConfiguration;
1584
- /** {zh}
1585
- * @detail api
1586
- * @brief 设置应用上下文。
1587
- * @return <br>
1588
- * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1589
- * @order 9
1590
- * @param context 应用上下文。
1591
- *
1592
- */
1593
-
1594
- setContext(context: Context): this;
1595
- /** {zh}
1596
- * @detail api
1597
- * @brief 获取应用上下文。
1598
- * @return <br>
1599
- * 应用上下文。
1600
- * @order 10
1601
- *
1602
- */
1603
-
1604
- getContext(): Context;
1605
- /** {zh}
1606
- * @detail api
1607
- * @brief 设置扩展参数,默认不需要设置。如果需要使用,您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
1608
- * @return <br>
1609
- * 推流引擎初始化配置对象,详情请参见 VeLivePusherConfiguration{@link #VeLivePusherConfiguration}。
1610
- * @order 11
1611
- * @param params 扩展参数
1612
- *
1613
- */
1614
-
1615
- setExtraParameters(params: String): this;
1616
- /** {zh}
1617
- * @detail api
1618
- * @brief 获取扩展参数。
1619
- * @return <br>
1620
- * 扩展参数。
1621
- * @order 12
1622
- *
1623
- */
1624
-
1625
- getExtraParams(): LiveSdkSetting;
1626
- /** {zh}
1627
- * @detail api
1628
- * @brief 构造推流引擎。
1629
- * @return <br>
1630
- * 推流引擎,详情请参见 VeLivePusher{@link #VeLivePusher}。
1631
- * @order 1
1632
- *
1633
- */
1634
-
1635
- build(): VeLivePusher;
1636
1068
  }