@volcengine/react-native-live-push 1.1.3-rc.1 → 1.3.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 +328 -0
  10. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +43 -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 +49 -0
  14. package/ios/VeLiveMixerHelper.m +646 -0
  15. package/ios/VeLiveMixerView.h +62 -0
  16. package/ios/VeLiveMixerView.m +547 -0
  17. package/ios/VeLiveMixerViewManager.m +56 -0
  18. package/lib/commonjs/index.js +22697 -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 +17 -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 +44 -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 +22694 -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 +17 -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 +44 -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 +15 -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 +44 -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
@@ -0,0 +1,1693 @@
1
+ import { int, long, Matrix, ByteBuffer, Runnable, double, String, ArrayList, float, Context, LiveSdkSetting } from './types';
2
+ import { VeLivePusher } from './api';
3
+ export declare class VeLiveVideoEncoderConfiguration {
4
+ /** {zh}
5
+ * @detail api
6
+ * @brief 获取推流视频分辨率。
7
+ * @return 推流视频分辨率 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
8
+ *
9
+ */
10
+
11
+ getResolution(): VeLiveVideoResolution;
12
+ /** {zh}
13
+ * @detail api
14
+ * @brief 设置推流视频分辨率。
15
+ * @param resolution 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 [VeLiveVideoResolution](#VeLivePusherDef-VeLiveVideoResolution)。
16
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
17
+ *
18
+ */
19
+
20
+ setResolution(resolution: VeLiveVideoResolution): this;
21
+ /** {zh}
22
+ * @detail api
23
+ * @brief 获取推流视频编码格式。
24
+ * @return 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec)。
25
+ *
26
+ */
27
+
28
+ getCodec(): VeLiveVideoCodec;
29
+ /** {zh}
30
+ * @detail api
31
+ * @brief 设置推流视频编码格式。
32
+ * @param codec 推流视频编码格式,详情请参见 [VeLiveVideoCodec](#VeLiveVideoCodec) 。
33
+ * @return 推流视频编码参数,详见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
34
+ *
35
+ */
36
+
37
+ setCodec(codec: VeLiveVideoCodec): this;
38
+ /** {zh}
39
+ * @detail api
40
+ * @brief 获取推流视频编码码率。
41
+ * @return <br>
42
+ * 推流视频编码码率。
43
+ *
44
+ */
45
+
46
+ getBitrate(): int;
47
+ /** {zh}
48
+ * @detail api
49
+ * @brief 设置推流视频编码码率。
50
+ * @param bitrate 推流视频编码码率,单位为 kbps,默认值由 `resolution` 参数值决定。
51
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
52
+ *
53
+ */
54
+
55
+ setBitrate(bitrate: int): this;
56
+ /** {zh}
57
+ * @detail api
58
+ * @brief 获取推流视频编码最小码率。
59
+ * @return <br>
60
+ * 推流视频编码最小码率。
61
+ *
62
+ */
63
+
64
+ getMinBitrate(): int;
65
+ /** {zh}
66
+ * @detail api
67
+ * @brief 设置推流视频编码最小码率。
68
+ * @param minBitrate 推流视频编码最小码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最小码率
69
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
70
+ *
71
+ */
72
+
73
+ setMinBitrate(minBitrate: int): this;
74
+ /** {zh}
75
+ * @detail api
76
+ * @brief 获取推流视频编码最大码率。
77
+ * @return <br>
78
+ * 推流视频编码最大码率。
79
+ *
80
+ */
81
+
82
+ getMaxBitrate(): int;
83
+ /** {zh}
84
+ * @detail api
85
+ * @brief 设置推流视频编码最大码率。
86
+ * @param maxBitrate 推流视频编码最大码率,单位为 kbps,默认值由 `resolution` 参数值决定;如果开启自适应码率,推流 SDK 根据网络情况进行编码码率自适应调整的最大码率。
87
+ * @return
88
+ * 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
89
+ *
90
+ */
91
+
92
+ setMaxBitrate(maxBitrate: int): this;
93
+ /** {zh}
94
+ * @detail api
95
+ * @brief 获取推流视频编码 GOP。
96
+ * @return <br>
97
+ * 推流视频编码 GOP。
98
+ *
99
+ */
100
+
101
+ getGopSize(): int;
102
+ /** {zh}
103
+ * @detail api
104
+ * @brief 设置推流视频编码 GOP。
105
+ * @param gopSize 视频 GOP 大小,单位为 s,默认值为 2
106
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
107
+ *
108
+ */
109
+
110
+ setGopSize(gopSize: int): this;
111
+ /** {zh}
112
+ * @detail api
113
+ * @brief 获取推流视频编码帧率。
114
+ * @return 推流视频编码帧率。
115
+ *
116
+ */
117
+
118
+ getFps(): int;
119
+ /** {zh}
120
+ * @detail api
121
+ * @brief 设置推流视频编码帧率。
122
+ * @param fps 视频编码帧率,单位为 fps,默认值为 15
123
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
124
+ *
125
+ */
126
+
127
+ setFps(fps: int): this;
128
+ /** {zh}
129
+ * @detail api
130
+ * @brief 获取是否开启 B 帧。
131
+ * @return 是否开启B帧。<br/>
132
+ * - true:B 帧开启;
133
+ * - false:B 帧关闭。
134
+ *
135
+ */
136
+
137
+ isEnableBFrame(): boolean;
138
+ /** {zh}
139
+ * @detail api
140
+ * @brief 设置推流视频编码开启 B 帧。
141
+ * @param enableBFrame 是否开启 B 帧。默认为 false。 <br>
142
+ * - true:开启;
143
+ * - false:关闭。
144
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
145
+ *
146
+ */
147
+
148
+ setEnableBFrame(enableBFrame: boolean): this;
149
+ /** {zh}
150
+ * @detail api
151
+ * @brief 获取是否开启硬件编码。
152
+ * @return <br>
153
+ * 是否开启硬件编码。<br>
154
+ * - true:开启;
155
+ * - false:关闭。
156
+ *
157
+ */
158
+
159
+ isEnableAccelerate(): boolean;
160
+ /** {zh}
161
+ * @detail api
162
+ * @brief 设置推流视频编码开启硬件编码。
163
+ * @param enableAccelerate 是否开启硬件编码。默认值为 true。 <br>
164
+ * - true:开启;
165
+ * - false:关闭。
166
+ * @return 推流视频编码参数配置对象,详情请参见 [VeLiveVideoEncoderConfiguration](#VeLivePusherDef-VeLiveVideoEncoderConfiguration)。
167
+ *
168
+ */
169
+
170
+ setEnableAccelerate(enableAccelerate: boolean): this;
171
+ }
172
+ export declare class VeLiveVideoFrame {
173
+ constructor(width: int, height: int, pts: long, data: ArrayBuffer);
174
+ /** {zh}
175
+ * @detail api
176
+ * @brief 增加 VeLiveVideoFrame 对象的引用计数。当您需要继续使用 VeLiveVideoFrame 对象时,请调用此方法将引用计数增加 1。
177
+ *
178
+ */
179
+
180
+ retain(): void;
181
+ /** {zh}
182
+ * @detail api
183
+ * @brief 释放对 VeLiveVideoFrame 对象的引用。在您不再需要使用 VeLiveVideoFrame 对象时,应调用此方法将引用计数减少 1。当引用计数减少到零,表示不再有引用指向该对象,可以安全地释放或销毁该对象。
184
+ *
185
+ */
186
+
187
+ release(): void;
188
+ /** {zh}
189
+ * @detail api
190
+ * @brief 获取视频数据类型。
191
+ * @return 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
192
+ *
193
+ */
194
+
195
+ getBufferType(): VeLiveVideoBufferType;
196
+ /** {zh}
197
+ * @detail api
198
+ * @brief 设置视频数据类型。
199
+ * @param bufferType 视频数据类型,详情请参见 [VeLiveVideoBufferType](#VeLiveVideoBufferType)。
200
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
201
+ *
202
+ */
203
+
204
+ setBufferType(bufferType: VeLiveVideoBufferType): this;
205
+ /** {zh}
206
+ * @detail api
207
+ * @brief 获取视频像素格式。
208
+ * @return 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
209
+ *
210
+ */
211
+
212
+ getPixelFormat(): VeLivePixelFormat;
213
+ /** {zh}
214
+ * @detail api
215
+ * @brief 设置视频像素格式。
216
+ * @param pixelFormat 视频像素格式,详情请参见 [VeLivePixelFormat](#VeLivePixelFormat)。
217
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
218
+ *
219
+ */
220
+
221
+ setPixelFormat(pixelFormat: VeLivePixelFormat): this;
222
+ /** {zh}
223
+ * @detail api
224
+ * @brief 获取视频帧旋转角度。
225
+ * @return 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
226
+ *
227
+ */
228
+
229
+ getRotation(): VeLiveVideoRotation;
230
+ /** {zh}
231
+ * @detail api
232
+ * @brief 设置视频帧旋转角度。
233
+ * @param rotation 视频帧旋转角度,详情请参见 [VeLiveVideoRotation](#VeLiveVideoRotation)。
234
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
235
+ *
236
+ */
237
+
238
+ setRotation(rotation: VeLiveVideoRotation): this;
239
+ /** {zh}
240
+ * @detail api
241
+ * @brief 获取视频帧宽度。
242
+ * @return <br>
243
+ * 视频帧宽度。
244
+ *
245
+ */
246
+
247
+ getWidth(): int;
248
+ /** {zh}
249
+ * @detail api
250
+ * @brief 获取视频帧高度。
251
+ * @return <br>
252
+ * 视频帧高度。
253
+ *
254
+ */
255
+
256
+ getHeight(): int;
257
+ /** {zh}
258
+ * @detail api
259
+ * @brief 获取带旋转角度的视频帧宽度。
260
+ * @return <br>
261
+ * 带旋转角度的视频帧宽度。
262
+ *
263
+ */
264
+
265
+ getRotatedWidth(): int;
266
+ /** {zh}
267
+ * @detail api
268
+ * @brief 获取带旋转角度的视频帧高度。
269
+ * @return <br>
270
+ * 带旋转角度的视频帧高度。
271
+ *
272
+ */
273
+
274
+ getRotatedHeight(): int;
275
+ /** {zh}
276
+ * @detail api
277
+ * @brief 获取视频帧时间戳。
278
+ * @return <br>
279
+ * 视频帧时间戳,单位为 μs。
280
+ *
281
+ */
282
+
283
+ getPts(): long;
284
+ /** {zh}
285
+ * @detail api
286
+ * @brief 获取视频帧纹理 ID。
287
+ * @return <br>
288
+ * 视频帧纹理 ID。
289
+ *
290
+ */
291
+
292
+ getTextureId(): int;
293
+ /** {zh}
294
+ * @detail api
295
+ * @brief 获取视频帧纹理矩阵。
296
+ * @return 视频帧纹理矩阵。
297
+ *
298
+ */
299
+
300
+ getTextureMatrix(): Matrix;
301
+ /** {zh}
302
+ * @detail api
303
+ * @brief 获取 ByteBuffer 格式的视频数据。
304
+ * @return <br>
305
+ * ByteBuffer 格式的视频数据。
306
+ *
307
+ */
308
+
309
+ getBuffer(): ByteBuffer;
310
+ /** {zh}
311
+ * @detail api
312
+ * @brief 获取 byte[] 格式的视频数据。
313
+ * @return byte[] 格式的视频数据。
314
+ *
315
+ */
316
+
317
+ getData(): ArrayBuffer;
318
+ /** {zh}
319
+ * @detail api
320
+ * @brief 获取视频帧内部销毁回调。
321
+ * @return <br>
322
+ * 视频帧内部销毁回调。
323
+ *
324
+ */
325
+
326
+ getReleaseCallback(): Runnable;
327
+ /** {zh}
328
+ * @detail api
329
+ * @brief 设置视频帧内部销毁回调。
330
+ * @param releaseCallback 视频帧内部销毁回调
331
+ * @return 视频帧对象,详情请参见 [VeLiveVideoFrame](#VeLiveVideoFrame)。
332
+ *
333
+ */
334
+
335
+ setReleaseCallback(releaseCallback: Runnable): this;
336
+ }
337
+ export declare enum VeLiveAudioCodec {
338
+ /** {zh}
339
+ * @brief FDKAAC 编码。
340
+ *
341
+ */
342
+
343
+ VeLiveAudioCodecFdkAAC = 0,
344
+ /** {zh}
345
+ * @brief Mediacodec AAC 编码。
346
+ *
347
+ */
348
+
349
+ VeLiveAudioCodecMediaCodecAAC = 1,
350
+ /** {zh}
351
+ * @brief FFMPEG AAC 编码。
352
+ *
353
+ */
354
+
355
+ VeLiveAudioCodecFFmpegAAC = 2
356
+ }
357
+ export declare enum VeLiveVideoCodec {
358
+ /** {zh}
359
+ * @brief 使用 H.264 视频编码。
360
+ *
361
+ */
362
+
363
+ VeLiveVideoCodecH264 = 0,
364
+ /** {zh}
365
+ * @brief 使用火山引擎自研 ByteVC1 视频编码。
366
+ *
367
+ */
368
+
369
+ VeLiveVideoCodecByteVC1 = 1
370
+ }
371
+ export declare class VeLivePusherStatistics {
372
+ /** {zh}
373
+ * @brief 视频编码宽度,单位为 px。
374
+ *
375
+ */
376
+
377
+ encodeWidth: int;
378
+ /** {zh}
379
+ * @brief 视频编码高度,单位为 px。
380
+ *
381
+ */
382
+
383
+ encodeHeight: int;
384
+ /** {zh}
385
+ * @brief 视频采集宽度,单位为 px。
386
+ *
387
+ */
388
+
389
+ captureWidth: int;
390
+ /** {zh}
391
+ * @brief 视频采集高度,单位为 px。
392
+ *
393
+ */
394
+
395
+ captureHeight: int;
396
+ /** {zh}
397
+ * @brief 视频采集帧率,单位为 fps。
398
+ *
399
+ */
400
+
401
+ captureFps: double;
402
+ /** {zh}
403
+ * @brief 视频编码帧率,单位为 fps。
404
+ *
405
+ */
406
+
407
+ encodeFps: double;
408
+ /** {zh}
409
+ * @brief 视频发送帧率,可用展示实时帧率,单位为 fps。
410
+ *
411
+ */
412
+
413
+ transportFps: double;
414
+ /** {zh}
415
+ * @brief 视频推流帧率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的帧率,单位为 fps。
416
+ *
417
+ */
418
+
419
+ fps: int;
420
+ /** {zh}
421
+ * @brief 视频推流码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的码率,单位为 kbps。
422
+ *
423
+ */
424
+
425
+ videoBitrate: int;
426
+ /** {zh}
427
+ * @brief 视频推流最小码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最小码率,单位为 kbps。
428
+ *
429
+ */
430
+
431
+ minVideoBitrate: int;
432
+ /** {zh}
433
+ * @brief 视频推流最大码率,即您通过 [setVideoEncoderConfiguration](147517#VeLivePusher-setvideoencoderconfiguration) 方法设置的最大码率,单位为 kbps。
434
+ *
435
+ */
436
+
437
+ maxVideoBitrate: int;
438
+ /** {zh}
439
+ * @brief 视频编码码率,单位为 kbps。
440
+ *
441
+ */
442
+
443
+ encodeVideoBitrate: double;
444
+ /** {zh}
445
+ * @brief 视频发送码率,可用于展示实时码率,单位为 kbps。
446
+ *
447
+ */
448
+
449
+ transportVideoBitrate: double;
450
+ /** {zh}
451
+ * @brief 音频编码码率,单位为 kbps。
452
+ *
453
+ */
454
+
455
+ encodeAudioBitrate: double;
456
+ /** {zh}
457
+ * @brief 推流地址。
458
+ *
459
+ */
460
+
461
+ url: String;
462
+ /** {zh}
463
+ * @brief 视频编码格式。
464
+ *
465
+ */
466
+
467
+ codec: String;
468
+ }
469
+ export declare enum VeLivePusherRenderMode {
470
+ /** {zh}
471
+ * @brief 视频帧自适应画布。视频帧非等比缩放,直至画布被填满。在此过程中,视频帧的长宽比例可能会发生变化。
472
+ *
473
+ */
474
+
475
+ VeLivePusherRenderModeFill = 0,
476
+ /** {zh}
477
+ * @brief 视频帧内容全部显示优先。视频尺寸等比缩放,优先保证视频内容全部显示。当视频尺寸与显示窗口尺寸不一致时,会把窗口未被填满的区域填充成背景颜色。
478
+ *
479
+ */
480
+
481
+ VeLivePusherRenderModeFit = 1,
482
+ /** {zh}
483
+ * @brief 视窗填满优先。视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
484
+ *
485
+ */
486
+
487
+ VeLivePusherRenderModeHidden = 2
488
+ }
489
+ export declare enum VeLiveVideoEffectLicenseType {
490
+ /** {zh}
491
+ * @brief 离线认证视频特效许可证。
492
+ *
493
+ */
494
+
495
+ VeLiveVideoEffectLicenseTypeOffLine = 0,
496
+ /** {zh}
497
+ * @brief 在线认证视频特效许可证。
498
+ *
499
+ */
500
+
501
+ VeLiveVideoEffectLicenseTypeOnLine = 1
502
+ }
503
+ export declare enum VeLiveAudioBufferType {
504
+ /** {zh}
505
+ * @brief 未知的音频数据类型。
506
+ *
507
+ */
508
+
509
+ VeLiveAudioBufferTypeUnknown = 0,
510
+ /** {zh}
511
+ * @brief ByteBuffer 音频数据类型。
512
+ *
513
+ */
514
+
515
+ VeLiveAudioBufferTypeByteBuffer = 1
516
+ }
517
+ export declare enum VeLiveAudioChannel {
518
+ /** {zh}
519
+ * @brief 单声道,适用于语音通信,节省带宽。
520
+ *
521
+ */
522
+
523
+ VeLiveAudioChannelMono = 1,
524
+ /** {zh}
525
+ * @brief 立体声,适用于音乐播放,提供更丰富的音频体验。
526
+ *
527
+ */
528
+
529
+ VeLiveAudioChannelStereo = 2
530
+ }
531
+ export declare enum VeLiveFirstFrameType {
532
+ /** {zh}
533
+ * @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
534
+ *
535
+ */
536
+
537
+ VeLiveFirstCaptureFrame = 0,
538
+ /** {zh}
539
+ * @brief 视频渲染首帧,渲染首帧是在渲染过程中在屏幕上显示的第一帧视频数据。
540
+ *
541
+ */
542
+
543
+ VeLiveFirstRenderFrame = 1,
544
+ /** {zh}
545
+ * @brief 视频/音频编码完成首帧,编码完成首帧是编码为某种特定格式的第一帧数据。
546
+ *
547
+ */
548
+
549
+ VeLiveFirstEncodedFrame = 2,
550
+ /** {zh}
551
+ * @brief 视频/音频发送首帧,发送首帧是在发送过程中,通过网络传输的第一帧数据。
552
+ *
553
+ */
554
+
555
+ VeLiveFirstSendFrame = 3
556
+ }
557
+ export declare enum VeLiveVideoCaptureType {
558
+ /** {zh}
559
+ * @brief 使用前置摄像头进行视频采集。
560
+ *
561
+ */
562
+
563
+ VeLiveVideoCaptureFrontCamera = 0,
564
+ /** {zh}
565
+ * @brief 使用后置摄像头进行视频采集。
566
+ *
567
+ */
568
+
569
+ VeLiveVideoCaptureBackCamera = 1,
570
+ /** {zh}
571
+ * @brief 使用设备的双摄进行视频采集。
572
+ *
573
+ */
574
+
575
+ VeLiveVideoCaptureDualCamera = 2,
576
+ /** {zh}
577
+ * @brief 使用屏幕采集。
578
+ *
579
+ */
580
+
581
+ VeLiveVideoCaptureScreen = 3,
582
+ /** {zh}
583
+ * @brief 使用外部设备或源进行视频采集。
584
+ *
585
+ */
586
+
587
+ VeLiveVideoCaptureExternal = 4,
588
+ /** {zh}
589
+ * @brief 使用指定的静态图片作为视频源。
590
+ *
591
+ */
592
+
593
+ VeLiveVideoCaptureCustomImage = 5,
594
+ /** {zh}
595
+ * @brief 使用最近采集的一帧图像重复作为视频源。
596
+ *
597
+ */
598
+
599
+ VeLiveVideoCaptureLastFrame = 6,
600
+ /** {zh}
601
+ * @brief 使用黑色帧作为视频源,一般用于调试或特殊需求。
602
+ *
603
+ */
604
+
605
+ VeLiveVideoCaptureDummyFrame = 7
606
+ }
607
+ export declare enum VeLiveVideoProfile {
608
+ /** {zh}
609
+ * @brief 未知的视频配置类型。
610
+ *
611
+ */
612
+
613
+ VeLiveVideoProfileUnknown = 0,
614
+ /** {zh}
615
+ * @brief H.264 编码配置,使用 Baseline 级别。
616
+ *
617
+ */
618
+
619
+ VeLiveVideoProfileH264Baseline = 1,
620
+ /** {zh}
621
+ * @brief H.264 编码配置,使用 Main 级别。
622
+ *
623
+ */
624
+
625
+ VeLiveVideoProfileH264Main = 2,
626
+ /** {zh}
627
+ * @brief H.264 编码配置,使用 High 级别。
628
+ *
629
+ */
630
+
631
+ VeLiveVideoProfileH264High = 3,
632
+ /** {zh}
633
+ * @brief ByteVC1 编码配置,使用 Main 级别。
634
+ *
635
+ */
636
+
637
+ VeLiveVideoProfileByteVC1Main = 4
638
+ }
639
+ export declare enum VeLiveVideoRotation {
640
+ /** {zh}
641
+ * @brief 不旋转。
642
+ *
643
+ */
644
+
645
+ VeLiveVideoRotation0 = 0,
646
+ /** {zh}
647
+ * @brief 顺时针旋转 90 度。
648
+ *
649
+ */
650
+
651
+ VeLiveVideoRotation90 = 90,
652
+ /** {zh}
653
+ * @brief 顺时针旋转 180 度。
654
+ *
655
+ */
656
+
657
+ VeLiveVideoRotation180 = 180,
658
+ /** {zh}
659
+ * @brief 顺时针旋转 270 度。
660
+ *
661
+ */
662
+
663
+ VeLiveVideoRotation270 = 270
664
+ }
665
+ export declare enum VeLiveVideoFrameSource {
666
+ /** {zh}
667
+ * @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
668
+ *
669
+ */
670
+
671
+ VeLiveVideoFrameSourceCapture = 1,
672
+ /** {zh}
673
+ * @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
674
+ *
675
+ */
676
+
677
+ VeLiveVideoFrameSourcePreEncode = "1 << 1"
678
+ }
679
+ export declare enum VeLiveAudioProfile {
680
+ /** {zh}
681
+ * @brief LC-AAC 编码方式。
682
+ *
683
+ */
684
+
685
+ VeLiveAudioAACProfileLC = 0,
686
+ /** {zh}
687
+ * @brief HEv1-AAC 编码方式。
688
+ *
689
+ */
690
+
691
+ VeLiveAudioAACProfileHEv1 = 1,
692
+ /** {zh}
693
+ * @brief HEv2-AAC 编码方式。
694
+ *
695
+ */
696
+
697
+ VeLiveAudioAACProfileHEv2 = 2
698
+ }
699
+ export declare enum VeLiveVideoBufferType {
700
+ /** {zh}
701
+ * @brief 未知视频数据类型,当未指定输入视频数据的格式时,会默认为此类型。
702
+ *
703
+ */
704
+
705
+ VeLiveVideoBufferTypeUnknown = 0,
706
+ /** {zh}
707
+ * @brief 视频数据类型为 OpenGL 纹理。
708
+ *
709
+ */
710
+
711
+ VeLiveVideoBufferTypeTexture = 1,
712
+ /** {zh}
713
+ * @brief 视频数据类型为 ByteBuffer 类型。
714
+ *
715
+ */
716
+
717
+ VeLiveVideoBufferTypeByteBuffer = 2,
718
+ /** {zh}
719
+ * @brief 视频数据类型为 ByteArray 类型。
720
+ *
721
+ */
722
+
723
+ VeLiveVideoBufferTypeByteArray = 3
724
+ }
725
+ export declare class VeLiveAudioCaptureConfiguration {
726
+ /** {zh}
727
+ * @detail api
728
+ * @brief 获取采集音频采样率。
729
+ * @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
730
+ *
731
+ */
732
+
733
+ getSampleRate(): VeLiveAudioSampleRate;
734
+ /** {zh}
735
+ * @detail api
736
+ * @brief 设置采集音频采样率。
737
+ * @param sampleRate 音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
738
+ * @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
739
+ *
740
+ */
741
+
742
+ setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
743
+ /** {zh}
744
+ * @detail api
745
+ * @brief 获取采集音频声道数。
746
+ * @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
747
+ *
748
+ */
749
+
750
+ getChannel(): VeLiveAudioChannel;
751
+ /** {zh}
752
+ * @detail api
753
+ * @brief 设置采集音频声道数。
754
+ * @param channel 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)
755
+ * @return 推流音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
756
+ *
757
+ */
758
+
759
+ setChannel(channel: VeLiveAudioChannel): this;
760
+ }
761
+ export declare class VeLiveStreamMixDescription {
762
+ /** {zh}
763
+ * @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout)。
764
+ *
765
+ */
766
+
767
+ mixVideoStreams: ArrayList<VeLiveMixVideoLayout>;
768
+ /** {zh}
769
+ * @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout)。
770
+ *
771
+ */
772
+
773
+ mixAudioStreams: ArrayList<VeLiveMixAudioLayout>;
774
+ /** {zh}
775
+ * @brief 视频混流画布的背景色设置,采用 #RRGGBB 格式。
776
+ *
777
+ */
778
+
779
+ backgroundColor: String;
780
+ }
781
+ export declare enum VeLiveAudioSampleRate {
782
+ /** {zh}
783
+ * @brief 8k 采样。
784
+ *
785
+ */
786
+
787
+ VeLiveAudioSampleRate8000 = 8000,
788
+ /** {zh}
789
+ * @brief 16k 采样。
790
+ *
791
+ */
792
+
793
+ VeLiveAudioSampleRate16000 = 16000,
794
+ /** {zh}
795
+ * @brief 32k 采样。
796
+ *
797
+ */
798
+
799
+ VeLiveAudioSampleRate32000 = 32000,
800
+ /** {zh}
801
+ * @brief 44.1k 采样。
802
+ *
803
+ */
804
+
805
+ VeLiveAudioSampleRate44100 = 44100,
806
+ /** {zh}
807
+ * @brief 48k 采样。
808
+ *
809
+ */
810
+
811
+ VeLiveAudioSampleRate48000 = 48000
812
+ }
813
+ export declare enum VeLiveAudioPowerLevel {
814
+ /** {zh}
815
+ * @brief 无声,音量 ≤1db。
816
+ *
817
+ */
818
+
819
+ VeLiveAudioPowerLevelSilent = 0,
820
+ /** {zh}
821
+ * @brief 安静,音量 15db 以下。
822
+ *
823
+ */
824
+
825
+ VeLiveAudioPowerLevelQuiet = 1,
826
+ /** {zh}
827
+ * @brief 轻声,接近耳语音量,音量为 16db~30db 之间。
828
+ *
829
+ */
830
+
831
+ VeLiveAudioPowerLevelLight = 2,
832
+ /** {zh}
833
+ * @brief 正常,音量适宜,类似正常对话的音量,音量为 30db~60db 之间。
834
+ *
835
+ */
836
+
837
+ VeLiveAudioPowerLevelNormal = 3,
838
+ /** {zh}
839
+ * @brief 较大,音量较高,类似咖啡馆、餐厅的环境噪音,音量为 61db~85db 之间。
840
+ *
841
+ */
842
+
843
+ VeLiveAudioPowerLevelLoud = 4,
844
+ /** {zh}
845
+ * @brief 吵闹,音量极高,类似于繁忙的街道或者是音乐会现场,音量超过 85db。
846
+ *
847
+ */
848
+
849
+ VeLiveAudioPowerLevelNoise = 5
850
+ }
851
+ export declare class VeLiveVideoCaptureConfiguration {
852
+ /** {zh}
853
+ * @detail api
854
+ * @brief 获取采集视频宽度。
855
+ * @return 采集视频宽度。
856
+ *
857
+ */
858
+
859
+ getWidth(): int;
860
+ /** {zh}
861
+ * @detail api
862
+ * @brief 设置采集视频宽度。
863
+ * @param width 采集视频宽度,默认值为 720。
864
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
865
+ *
866
+ */
867
+
868
+ setWidth(width: int): this;
869
+ /** {zh}
870
+ * @detail api
871
+ * @brief 获取采集视频高度。
872
+ * @return <br>
873
+ * 采集视频高度。
874
+ *
875
+ */
876
+
877
+ getHeight(): int;
878
+ /** {zh}
879
+ * @detail api
880
+ * @brief 设置采集视频高度。
881
+ * @param height 采集视频高度,默认值为 1280。
882
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
883
+ *
884
+ */
885
+
886
+ setHeight(height: int): this;
887
+ /** {zh}
888
+ * @detail api
889
+ * @brief 获取采集视频帧率。
890
+ * @return <br>
891
+ * 采集视频帧率。
892
+ *
893
+ */
894
+
895
+ getFps(): int;
896
+ /** {zh}
897
+ * @detail api
898
+ * @brief 设置采集视频帧率。
899
+ * @param fps 采集视频帧率,默认值为 15。
900
+ * @return 推流视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
901
+ *
902
+ */
903
+
904
+ setFps(fps: int): this;
905
+ }
906
+ export declare enum VeLivePixelFormat {
907
+ /** {zh}
908
+ * @brief 未知格式。
909
+ *
910
+ */
911
+
912
+ VeLivePixelFormatUnknown = 0,
913
+ /** {zh}
914
+ * @brief I420 格式。
915
+ *
916
+ */
917
+
918
+ VeLivePixelFormatI420 = 1,
919
+ /** {zh}
920
+ * @brief NV12 格式。
921
+ *
922
+ */
923
+
924
+ VeLivePixelFormatNV12 = 2,
925
+ /** {zh}
926
+ * @brief NV21 格式。
927
+ *
928
+ */
929
+
930
+ VeLivePixelFormatNV21 = 3,
931
+ /** {zh}
932
+ * @brief 2D 纹理格式。
933
+ *
934
+ */
935
+
936
+ VeLivePixelFormat2DTexture = 4,
937
+ /** {zh}
938
+ * @brief OES 纹理格式。
939
+ *
940
+ */
941
+
942
+ VeLivePixelFormatOesTexture = 5
943
+ }
944
+ export declare enum VeLivePusherStatus {
945
+ /** {zh}
946
+ * @brief 初始状态。
947
+ *
948
+ */
949
+
950
+ VeLivePushStatusNone = 0,
951
+ /** {zh}
952
+ * @brief 正在连接服务器。
953
+ *
954
+ */
955
+
956
+ VeLivePushStatusConnecting = 1,
957
+ /** {zh}
958
+ * @brief 连接服务器成功。
959
+ *
960
+ */
961
+
962
+ VeLivePushStatusConnectSuccess = 2,
963
+ /** {zh}
964
+ * @brief 重连服务器中。
965
+ *
966
+ */
967
+
968
+ VeLivePushStatusReconnecting = 3,
969
+ /** {zh}
970
+ * @brief 推流连接被终止。
971
+ *
972
+ */
973
+
974
+ VeLivePushStatusConnectStop = 4,
975
+ /** {zh}
976
+ * @brief 推流连接失败。
977
+ *
978
+ */
979
+
980
+ VeLivePushStatusConnectError = 5,
981
+ /** {zh}
982
+ * @brief 与服务器断开连接。
983
+ *
984
+ */
985
+
986
+ VeLivePushStatusDisconnected = 6
987
+ }
988
+ export declare enum VeLiveVideoResolution {
989
+ /** {zh}
990
+ * @brief 360P 分辨率。档位详细配置如下所示。
991
+ * - 横屏分辨率:640x360
992
+ * - 竖屏分辨率:360x640
993
+ * - 帧率:15fps
994
+ * - 目标码率:500kbps
995
+ * - 最小码率:250kbps
996
+ * - 最大码率:800kbps
997
+ *
998
+ */
999
+
1000
+ VeLiveVideoResolution360P = "VeLiveVideoResolution360P",
1001
+ /** {zh}
1002
+ * @brief 480P 分辨率。档位详细配置如下所示。
1003
+ * - 横屏分辨率:864x480
1004
+ * - 竖屏分辨率:480x864
1005
+ * - 帧率:15fps
1006
+ * - 目标码率:800kbps
1007
+ * - 最小码率:320kbps
1008
+ * - 最大码率:1266kbps
1009
+ *
1010
+ */
1011
+
1012
+ VeLiveVideoResolution480P = "VeLiveVideoResolution480P",
1013
+ /** {zh}
1014
+ * @brief 540P 分辨率。档位详细配置如下所示。
1015
+ * - 横屏 960x540
1016
+ * - 竖屏 540x960
1017
+ * - 帧率:15fps
1018
+ * - 目标码率:1000kbps
1019
+ * - 最小码率:500kbps
1020
+ * - 最大码率:1520kbps
1021
+ *
1022
+ */
1023
+
1024
+ VeLiveVideoResolution540P = "VeLiveVideoResolution540P",
1025
+ /** {zh}
1026
+ * @brief 720P 分辨率。档位详细配置如下所示。
1027
+ * - 横屏 1280x720
1028
+ * - 竖屏 720x1280
1029
+ * - 帧率:15fps
1030
+ * - 目标码率:1200kbps
1031
+ * - 最小码率:800kbps
1032
+ * - 最大码率:1900kbps
1033
+ *
1034
+ */
1035
+
1036
+ VeLiveVideoResolution720P = "VeLiveVideoResolution720P",
1037
+ /** {zh}
1038
+ * @brief 1080P 分辨率。档位详细配置如下所示。
1039
+ * - 横屏 1920x1080
1040
+ * - 竖屏 1080x1920
1041
+ * - 帧率:20 fps
1042
+ * - 目标码率:2500kbps
1043
+ * - 最小码率:1000kbps
1044
+ * - 最大码率:3800kbps
1045
+ *
1046
+ */
1047
+
1048
+ VeLiveVideoResolution1080P = "VeLiveVideoResolution1080P"
1049
+ }
1050
+ export declare class VeLiveAudioFrame {
1051
+ constructor();
1052
+ /** {zh}
1053
+ * @detail api
1054
+ * @brief 获取音频数据类型。
1055
+ * @return 音频数据类型,详情请参见 [VeLiveAudioBufferType](#VeLiveAudioBufferType)。
1056
+ *
1057
+ */
1058
+
1059
+ getBufferType(): VeLiveAudioBufferType;
1060
+ /** {zh}
1061
+ * @detail api
1062
+ * @brief 获取音频采样率。
1063
+ * @return 音频采样率,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1064
+ *
1065
+ */
1066
+
1067
+ getSampleRate(): VeLiveAudioSampleRate;
1068
+ /** {zh}
1069
+ * @detail api
1070
+ * @brief 获取音频声道数。
1071
+ * @return 音频声道数,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1072
+ *
1073
+ */
1074
+
1075
+ getChannels(): VeLiveAudioChannel;
1076
+ /** {zh}
1077
+ * @detail api
1078
+ * @brief 获取每个声道的采样点数。
1079
+ * @return 采样点数。
1080
+ *
1081
+ */
1082
+
1083
+ getSamplesPerChannel(): int;
1084
+ /** {zh}
1085
+ * @detail api
1086
+ * @brief 获取音频时间戳,单位为 μs。
1087
+ * @return <br>
1088
+ * 音频时间戳,单位为 μs。
1089
+ *
1090
+ */
1091
+
1092
+ getPts(): long;
1093
+ /** {zh}
1094
+ * @detail api
1095
+ * @brief 获取音频数据。音频帧数据为小端字节序存储。
1096
+ * @return <br>
1097
+ * 格式为 ByteBuffer 的音频数据。
1098
+ *
1099
+ */
1100
+
1101
+ getBuffer(): ByteBuffer;
1102
+ }
1103
+ export declare enum VeLiveNetworkQuality {
1104
+ /** {zh}
1105
+ * @brief 未查询到网络状态。
1106
+ *
1107
+ */
1108
+
1109
+ VeLiveNetworkQualityUnknown = 0,
1110
+ /** {zh}
1111
+ * @brief 网络差。
1112
+ *
1113
+ */
1114
+
1115
+ VeLiveNetworkQualityBad = 1,
1116
+ /** {zh}
1117
+ * @brief 网络一般。
1118
+ *
1119
+ */
1120
+
1121
+ VeLiveNetworkQualityPoor = 2,
1122
+ /** {zh}
1123
+ * @brief 网络状态佳。
1124
+ *
1125
+ */
1126
+
1127
+ VeLiveNetworkQualityGood = 3
1128
+ }
1129
+ export declare enum VeLivePusherLogLevel {
1130
+ /** {zh}
1131
+ * @brief 输出 VERBOSE、DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1132
+ *
1133
+ */
1134
+
1135
+ VeLiveLogLevelVerbose = 0,
1136
+ /** {zh}
1137
+ * @brief 输出 DEBUG、INFO、WARNING 和 ERROR 级别的日志。
1138
+ *
1139
+ */
1140
+
1141
+ VeLiveLogLevelDebug = 1,
1142
+ /** {zh}
1143
+ * @brief 输出 INFO、WARNING 和 ERROR 级别的日志。
1144
+ *
1145
+ */
1146
+
1147
+ VeLiveLogLevelInfo = 2,
1148
+ /** {zh}
1149
+ * @brief 输出 WARNING 和 ERROR 级别的日志。
1150
+ *
1151
+ */
1152
+
1153
+ VeLiveLogLevelWarn = 3,
1154
+ /** {zh}
1155
+ * @brief 输出 ERROR 级别的日志。
1156
+ *
1157
+ */
1158
+
1159
+ VeLiveLogLevelError = 4,
1160
+ /** {zh}
1161
+ * @brief 关闭日志。
1162
+ *
1163
+ */
1164
+
1165
+ VeLiveLogLevelNone = 5
1166
+ }
1167
+ export declare enum VeLiveAudioBitDepth {
1168
+ /** {zh}
1169
+ * @brief 16bit 位深度。
1170
+ *
1171
+ */
1172
+
1173
+ VeLiveAudioBitDepth16 = 16
1174
+ }
1175
+ export declare class VeLiveMixAudioLayout {
1176
+ /** {zh}
1177
+ * @brief 音频流 ID,唯一标识,用于区分不同的音频流。
1178
+ *
1179
+ */
1180
+
1181
+ streamId: int;
1182
+ /** {zh}
1183
+ * @detail api
1184
+ * @brief 混流音频的音量,范围为 [0.0,4.0]。当您将 [VeLiveAudioMixType](#VeLiveAudioMixType) 设置为 `VeLiveAudioMixPlayAndPush` 时,该变量同时控制混流音频在拉流端和本地的播放音量。
1185
+ *
1186
+ */
1187
+
1188
+ volume: float;
1189
+ /** {zh}
1190
+ * @detail api
1191
+ * @brief 更新音频混流设置。
1192
+ * @param other 新的音频混流设置,详情请参见 [VeLiveMixAudioLayout](#VeLivePusherDef-VeLiveMixAudioLayout)。
1193
+ *
1194
+ */
1195
+
1196
+ update(other: VeLiveMixAudioLayout): void;
1197
+ }
1198
+ export declare class VeLivePusherConfiguration {
1199
+ /** {zh}
1200
+ * @detail api
1201
+ * @brief 设置推流器推流失败后尝试重连的时间间隔。
1202
+ * @param interval 时间间隔,单位为 s,默认值为 5
1203
+ * @order 2
1204
+ *
1205
+ */
1206
+
1207
+ setReconnectIntervalSeconds(interval: int): this;
1208
+ /** {zh}
1209
+ * @detail api
1210
+ * @brief 获取推流器推流失败后尝试重连的时间间隔。
1211
+ * @order 3
1212
+ * @return <br>
1213
+ * 时间间隔,单位为 s。
1214
+ *
1215
+ */
1216
+
1217
+ getReconnectIntervalSeconds(): int;
1218
+ /** {zh}
1219
+ * @detail api
1220
+ * @brief 设置推流器推流失败后尝试重连的次数。
1221
+ * @param maxCount 重连次数,默认值为 3
1222
+ * @order 4
1223
+ *
1224
+ */
1225
+
1226
+ setReconnectCount(maxCount: int): this;
1227
+ /** {zh}
1228
+ * @detail api
1229
+ * @brief 获取推流器推流失败后尝试重连的次数。
1230
+ * @order 5
1231
+ * @return <br>
1232
+ * 重连次数。
1233
+ *
1234
+ */
1235
+
1236
+ getReconnectCount(): int;
1237
+ /** {zh}
1238
+ * @detail api
1239
+ * @brief 设置视频采集参数,用于调整和设置视频采集相关的参数。
1240
+ * @order 6
1241
+ * @param config 视频采集参数,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
1242
+ * @return 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
1243
+ *
1244
+ */
1245
+
1246
+ setVideoCaptureConfig(config: VeLiveVideoCaptureConfiguration): this;
1247
+ /** {zh}
1248
+ * @detail api
1249
+ * @brief 获取视频采集参数,用于调整和设置视频采集相关的参数。
1250
+ * @order 7
1251
+ * @return 视频采集参数配置对象,详情请参见 [VeLiveVideoCaptureConfiguration](#VeLivePusherDef-VeLiveVideoCaptureConfiguration)。
1252
+ *
1253
+ */
1254
+
1255
+ getVideoCaptureConfig(): VeLiveVideoCaptureConfiguration;
1256
+ /** {zh}
1257
+ * @detail api
1258
+ * @brief 设置音频采集参数,用于调整和设置音频采集相关的参数。
1259
+ * @order 7
1260
+ * @param config 音频采集参数,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
1261
+ * @return 推流引擎初始化配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
1262
+ *
1263
+ */
1264
+
1265
+ setAudioCaptureConfig(config: VeLiveAudioCaptureConfiguration): this;
1266
+ /** {zh}
1267
+ * @detail api
1268
+ * @brief 获取音频采集参数,用于调整和设置音频采集相关的参数。
1269
+ * @order 8
1270
+ * @return 音频采集参数配置对象,详情请参见 [VeLiveAudioCaptureConfiguration](#VeLivePusherDef-VeLiveAudioCaptureConfiguration)。
1271
+ *
1272
+ */
1273
+
1274
+ getAudioCaptureConfig(): VeLiveAudioCaptureConfiguration;
1275
+ /** {zh}
1276
+ * @detail api
1277
+ * @brief 设置应用上下文。
1278
+ * @order 9
1279
+ * @param context 应用上下文。
1280
+ * @return 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
1281
+ *
1282
+ */
1283
+
1284
+ setContext(context: Context): this;
1285
+ /** {zh}
1286
+ * @detail api
1287
+ * @brief 获取应用上下文。
1288
+ * @order 10
1289
+ * @return <br>
1290
+ * 应用上下文。
1291
+ *
1292
+ */
1293
+
1294
+ getContext(): Context;
1295
+ /** {zh}
1296
+ * @detail api
1297
+ * @brief 设置扩展参数,默认不需要设置。如果需要使用,您可通过提交工单联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
1298
+ * @order 11
1299
+ * @param params 扩展参数。
1300
+ * @return
1301
+ * 推流引擎初始化配置对象,详情请参见 [VeLivePusherConfiguration](#VeLivePusherConfiguration)。
1302
+ *
1303
+ */
1304
+
1305
+ setExtraParameters(params: String): this;
1306
+ /** {zh}
1307
+ * @detail api
1308
+ * @brief 获取扩展参数。
1309
+ * @order 12
1310
+ * @return <br>
1311
+ * 扩展参数。
1312
+ *
1313
+ */
1314
+
1315
+ getExtraParams(): LiveSdkSetting;
1316
+ /** {zh}
1317
+ * @detail api
1318
+ * @brief 构造推流引擎。
1319
+ * @order 1
1320
+ * @return 推流引擎,详情请参见 [VeLivePusher](147517#VeLivePusher)。
1321
+ *
1322
+ */
1323
+
1324
+ build(): VeLivePusher;
1325
+ }
1326
+ export declare enum VeLiveOrientation {
1327
+ /** {zh}
1328
+ * @brief 横屏模式。
1329
+ *
1330
+ */
1331
+
1332
+ VeLiveOrientationLandscape = 0,
1333
+ /** {zh}
1334
+ * @brief 竖屏模式。
1335
+ *
1336
+ */
1337
+
1338
+ VeLiveOrientationPortrait = 1
1339
+ }
1340
+ export declare enum VeLiveVideoMirrorType {
1341
+ /** {zh}
1342
+ * @brief 对采集画面的镜像控制。开启时,预览和推流画面都会呈现为镜像状态。
1343
+ *
1344
+ */
1345
+
1346
+ VeLiveVideoMirrorCapture = 0,
1347
+ /** {zh}
1348
+ * @brief 对预览画面的镜像控制。开启时,只有主播预览画面呈现镜像状态。
1349
+ *
1350
+ */
1351
+
1352
+ VeLiveVideoMirrorPreview = 1,
1353
+ /** {zh}
1354
+ * @brief 对编码前画面的镜像控制。开启时,主播推流画面呈现镜像状态。
1355
+ *
1356
+ */
1357
+
1358
+ VeLiveVideoMirrorPushStream = 2
1359
+ }
1360
+ export declare class VeLiveFileRecorderConfiguration {
1361
+ /** {zh}
1362
+ * @detail api
1363
+ * @brief 获取录制视频宽度。
1364
+ * @return <br>
1365
+ * 录制视频宽度。
1366
+ *
1367
+ */
1368
+
1369
+ getWidth(): int;
1370
+ /** {zh}
1371
+ * @detail api
1372
+ * @brief 设置录制视频宽度。
1373
+ * @param width 录制视频宽度,默认值为 360
1374
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
1375
+ *
1376
+ */
1377
+
1378
+ setWidth(width: int): this;
1379
+ /** {zh}
1380
+ * @detail api
1381
+ * @brief 获取录制视频高度。
1382
+ * @return <br>
1383
+ * 录制视频高度。
1384
+ *
1385
+ */
1386
+
1387
+ getHeight(): int;
1388
+ /** {zh}
1389
+ * @detail api
1390
+ * @brief 设置录制视频高度。
1391
+ * @param height 录制视频宽度,默认值为 640。
1392
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。<br/>
1393
+ *
1394
+ */
1395
+
1396
+ setHeight(height: int): this;
1397
+ /** {zh}
1398
+ * @detail api
1399
+ * @brief 获取录制视频帧率。
1400
+ * @return <br>
1401
+ * 录制视频帧率。
1402
+ *
1403
+ */
1404
+
1405
+ getFps(): int;
1406
+ /** {zh}
1407
+ * @detail api
1408
+ * @brief 设置录制视频帧率。
1409
+ * @param fps 录制视频帧率,默认值为 15。
1410
+ * @return 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
1411
+ *
1412
+ */
1413
+
1414
+ setFps(fps: int): this;
1415
+ /** {zh}
1416
+ * @detail api
1417
+ * @brief 获取录制视频码率。
1418
+ * @return <br>
1419
+ * 录制视频码率。
1420
+ *
1421
+ */
1422
+
1423
+ getBitrate(): int;
1424
+ /** {zh}
1425
+ * @detail api
1426
+ * @brief 设置录制视频码率。
1427
+ * @param bitrate 录制视频码率,单位为 kbps,默认值为 2000。
1428
+ * @return
1429
+ * 推流本地文件录制配置对象,详情请参见 [VeLiveFileRecorderConfiguration](#VeLivePusherDef-VeLiveFileRecorderConfiguration)。
1430
+ *
1431
+ */
1432
+
1433
+ setBitrate(bitrate: int): this;
1434
+ }
1435
+ export declare class VeLiveMixVideoLayout {
1436
+ /** {zh}
1437
+ * @brief 视频流 ID,唯一标识,用于区分不同的视频流。
1438
+ *
1439
+ */
1440
+
1441
+ streamId: int;
1442
+ /** {zh}
1443
+ * @brief 视频流对应区域左上角的横坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1444
+ *
1445
+ */
1446
+
1447
+ x: float;
1448
+ /** {zh}
1449
+ * @brief 视频流对应区域左上角的纵坐标,该坐标是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1450
+ *
1451
+ */
1452
+
1453
+ y: float;
1454
+ /** {zh}
1455
+ * @brief 视频流对应区域宽度,该宽度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1456
+ *
1457
+ */
1458
+
1459
+ width: float;
1460
+ /** {zh}
1461
+ * @brief 视频流对应区域高度,该高度是相对整体画面的归一化比例,取值的范围为 [0.0,1.0]。
1462
+ *
1463
+ */
1464
+
1465
+ height: float;
1466
+ /** {zh}
1467
+ * @brief 视频流在混流中的透明度,取值范围为 [0.0,1.0],取值 0.0 表示全透明,取值 1.0 表示不透明。
1468
+ *
1469
+ */
1470
+
1471
+ alpha: float;
1472
+ /** {zh}
1473
+ * @brief 视频流在混流中的层级。取值范围为 [0,100],取值 0 表示最底层,取值越大,层级越高。
1474
+ *
1475
+ */
1476
+
1477
+ zOrder: int;
1478
+ /** {zh}
1479
+ * @brief 视频流的渲染模式。详情请参见 [VeLivePusherRenderMode](#VeLivePusherRenderMode)。
1480
+ *
1481
+ */
1482
+
1483
+ renderMode: VeLivePusherRenderMode;
1484
+ /** {zh}
1485
+ * @brief 是否保留视频流原 Alpha 通道值,默认为保留,当 [alpha](#VeLiveMixVideoLayout-alpha) 取值在 [0.0, 1.0] 之间时,则忽略该配置。
1486
+ * - YES:保留;
1487
+ * - NO:不保留。
1488
+ *
1489
+ */
1490
+
1491
+ enableAlpha: boolean;
1492
+ /** {zh}
1493
+ * @detail api
1494
+ * @brief 更新视频混流设置。
1495
+ * @param other 新的视频混流设置,详情请参见 [VeLiveMixVideoLayout](#VeLivePusherDef-VeLiveMixVideoLayout)。
1496
+ *
1497
+ */
1498
+
1499
+ update(other: VeLiveMixVideoLayout): void;
1500
+ }
1501
+ export declare class VeLiveVideoEffectLicenseConfiguration {
1502
+ /** {zh}
1503
+ * @detail api
1504
+ * @brief 初始化配置为本地验证模式。
1505
+ * @param path 视频特效许可证的本地缓存路径。可通过 [getPath](#VeLiveVideoEffectLicenseConfiguration-getpath) 获取。
1506
+ * @return 返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的本地路径进行许可证验证。
1507
+ *
1508
+ */
1509
+
1510
+ static create(path: String): VeLiveVideoEffectLicenseConfiguration;
1511
+ /** {zh}
1512
+ * @detail api
1513
+ * @brief 初始化配置为在线验证模式。
1514
+ * @return <br>返回 VeLiveVideoEffectLicenseConfiguration 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
1515
+ * @param key 视频特效许可证的在线认证 key。可通过 [getKey](#VeLiveVideoEffectLicenseConfiguration-getkey) 获取。
1516
+ * @param secret 视频特效许可证的在线认证 secret。可通过 [getSecret](#VeLiveVideoEffectLicenseConfiguration-getsecret) 获取。
1517
+ * @param url 视频特效许可证的在线认证地址,如果传入 `null`,可通过 [getUrl](147521#VeLiveVideoEffectLicenseConfiguration-geturl) 获取在线认证地址。
1518
+ *
1519
+ */
1520
+
1521
+ static create_key$secret$url(key: String, secret: String, url: String): VeLiveVideoEffectLicenseConfiguration;
1522
+ /** {zh}
1523
+ * @detail api
1524
+ * @brief 获取视频特效许可证类型。
1525
+ * @return 视频特效许可证类型,许可证类型请参见 [VeLiveVideoEffectLicenseType](147521#VeLiveVideoEffectLicenseType)。
1526
+ *
1527
+ */
1528
+
1529
+ getType(): VeLiveVideoEffectLicenseType;
1530
+ /** {zh}
1531
+ * @detail api
1532
+ * @brief 获取视频特效许可证的本地路径。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,返回许可证文件的本地路径。
1533
+ * @return 视频特效许可证的本地路径。
1534
+ *
1535
+ */
1536
+
1537
+ getPath(): String;
1538
+ /** {zh}
1539
+ * @detail api
1540
+ * @brief 获取视频特效许可证的在线认证 key。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 key。
1541
+ * @return 视频特效许可证的在线认证 key。
1542
+ *
1543
+ */
1544
+
1545
+ getKey(): String;
1546
+ /** {zh}
1547
+ * @detail api
1548
+ * @brief 获取视频特效许可证的在线认证 secret。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证的 secret。
1549
+ * @return 视频特效许可证的在线认证 secret。
1550
+ *
1551
+ */
1552
+
1553
+ getSecret(): String;
1554
+ /** {zh}
1555
+ * @detail api
1556
+ * @brief 获取视频特效许可证的在线认证地址。当 [VeLiveVideoEffectLicenseType](#VeLiveVideoEffectLicenseType) 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,返回在线认证地址。
1557
+ * @return 视频特效许可证的在线认证地址。
1558
+ *
1559
+ */
1560
+
1561
+ getUrl(): String;
1562
+ }
1563
+ export declare enum VeLiveAudioFrameSource {
1564
+ /** {zh}
1565
+ * @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
1566
+ *
1567
+ */
1568
+
1569
+ VeLiveAudioFrameSourceCapture = 1,
1570
+ /** {zh}
1571
+ * @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
1572
+ *
1573
+ */
1574
+
1575
+ VeLiveAudioFrameSourcePreEncode = "1 << 1"
1576
+ }
1577
+ export declare class VeLiveAudioEncoderConfiguration {
1578
+ /** {zh}
1579
+ * @detail api
1580
+ * @brief 获取推流音频编码码率。
1581
+ * @return <br>
1582
+ * 推流音频编码码率。
1583
+ *
1584
+ */
1585
+
1586
+ getBitrate(): int;
1587
+ /** {zh}
1588
+ * @detail api
1589
+ * @brief 设置推流音频编码码率。
1590
+ * @param bitrate 推流音频编码码率,单位为 kbps,默认值为 64。
1591
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
1592
+ *
1593
+ */
1594
+
1595
+ setBitrate(bitrate: int): this;
1596
+ /** {zh}
1597
+ * @detail api
1598
+ * @brief 获取推流音频采样率。
1599
+ * @return 推流音频采样率。详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1600
+ *
1601
+ */
1602
+
1603
+ getSampleRate(): VeLiveAudioSampleRate;
1604
+ /** {zh}
1605
+ * @detail api
1606
+ * @brief 设置推流音频采样率。
1607
+ * @param sampleRate 推流音频采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 [VeLiveAudioSampleRate](#VeLiveAudioSampleRate)。
1608
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
1609
+ *
1610
+ */
1611
+
1612
+ setSampleRate(sampleRate: VeLiveAudioSampleRate): this;
1613
+ /** {zh}
1614
+ * @detail api
1615
+ * @brief 获取推流音频声道。
1616
+ * @return 推流音频声道。详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1617
+ *
1618
+ */
1619
+
1620
+ getChannel(): VeLiveAudioChannel;
1621
+ /** {zh}
1622
+ * @detail api
1623
+ * @brief 设置推流音频声道。
1624
+ * @param channel 推流音频声道,默认值为 VeLiveAudioChannelStereo,详情请参见 [VeLiveAudioChannel](#VeLiveAudioChannel)。
1625
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
1626
+ *
1627
+ */
1628
+
1629
+ setChannel(channel: VeLiveAudioChannel): this;
1630
+ /** {zh}
1631
+ * @detail api
1632
+ * @brief 获取推流音频编码类型。
1633
+ * @return 推流音频编码类型。详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
1634
+ *
1635
+ */
1636
+
1637
+ getProfile(): VeLiveAudioProfile;
1638
+ /** {zh}
1639
+ * @detail api
1640
+ * @brief 设置推流音频编码类型。
1641
+ * @param profile 推流音频编码类型,默认值为 VeLiveAudioAACProfileLC,详情请参见 [VeLiveAudioProfile](#VeLiveAudioProfile)。
1642
+ * @return 推流音频编码参数配置对象,详情请参见 [VeLiveAudioEncoderConfiguration](#VeLivePusherDef-VeLiveAudioEncoderConfiguration)。
1643
+ *
1644
+ */
1645
+
1646
+ setProfile(profile: VeLiveAudioProfile): this;
1647
+ }
1648
+ export declare enum VeLiveAudioMixType {
1649
+ /** {zh}
1650
+ * @brief 拉流端可以听到混音效果,本地无法听到。
1651
+ *
1652
+ */
1653
+
1654
+ VeLiveAudioMixPush = 0,
1655
+ /** {zh}
1656
+ * @brief 拉流端和本地都可以听到混音效果。
1657
+ *
1658
+ */
1659
+
1660
+ VeLiveAudioMixPlayAndPush = 1
1661
+ }
1662
+ export declare enum VeLiveAudioCaptureType {
1663
+ /** {zh}
1664
+ * @brief 使用默认麦克风设备进行音频采集。
1665
+ *
1666
+ */
1667
+
1668
+ VeLiveAudioCaptureMicrophone = 0,
1669
+ /** {zh}
1670
+ * @brief 使用语音通话模式进行音频采集,此模式下会启动硬件的 3A 功能,即自动增益控制、自动频率控制和自动噪声抑制。
1671
+ *
1672
+ */
1673
+
1674
+ VeLiveAudioCaptureVoiceCommunication = 1,
1675
+ /** {zh}
1676
+ * @brief 使用录屏直播无障碍音频模式进行音频采集。
1677
+ *
1678
+ */
1679
+
1680
+ VeLiveAudioCaptureVoiceRecognition = 2,
1681
+ /** {zh}
1682
+ * @brief 使用外部设备或源进行音频采集。
1683
+ *
1684
+ */
1685
+
1686
+ VeLiveAudioCaptureExternal = 3,
1687
+ /** {zh}
1688
+ * @brief 使用静音帧作为音频源。
1689
+ *
1690
+ */
1691
+
1692
+ VeLiveAudioCaptureMuteFrame = 4
1693
+ }