@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
@@ -0,0 +1,333 @@
1
+ import { VeLiveVideoFrame, VeLiveVideoFrameSource, VeLiveAudioFrameSource, VeLiveAudioFrame, VeLivePusherStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel, VeLivePusherStatistics } from './keytype';
2
+ import { int, String, Bundle, long, Bitmap, float, JSONObject } from './types';
3
+ export declare class VeLiveVideoFrameFilter {
4
+ /** {zh}
5
+ * @detail callback
6
+ * @brief 自定义的视频处理方法。
7
+ * @order 20
8
+ * @param srcFrame 源视频帧,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
9
+ * @param dstFrame 处理后的视频帧,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
10
+ * @return - 0:处理成功;
11
+ * - <0:处理失败,该帧会被 SDK 丢弃;
12
+ * - >0:处理失败,该帧会被 SDK 继续传递到编码器。
13
+ *
14
+ */
15
+
16
+ onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): int;
17
+ }
18
+ export declare class VeLiveVideoFrameListener {
19
+ /** {zh}
20
+ * @detail callback
21
+ * @brief 设置当前 Listener 需要的视频帧来源。
22
+ * @order 30
23
+ * @return 您所要订阅的视频数据的位置信息,详情请参见 [VeLiveVideoFrameSource](147521#VeLivePusherDef-VeLiveVideoFrameSource)。
24
+ *
25
+ */
26
+
27
+ getObservedVideoFrameSource?(): VeLiveVideoFrameSource;
28
+ /** {zh}
29
+ * @detail callback
30
+ * @brief 采集视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
31
+ * @order 26
32
+ * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](#VeLivePusherDef-VeLiveVideoFrameFilter)。
33
+ *
34
+ */
35
+
36
+ onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
37
+ /** {zh}
38
+ * @detail callback
39
+ * @brief 编码前视频帧回调。只有当您通过 [getObservedVideoFrameSource](#VeLiveVideoFrameListener-getobservedvideoframesource) 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
40
+ * @order 27
41
+ * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
42
+ *
43
+ */
44
+
45
+ onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
46
+ }
47
+ export declare class VeLiveVideoEffectCallback {
48
+ /** {zh}
49
+ * @detail callback
50
+ * @brief 视频特效处理结果回调。
51
+ * @param result 处理结果
52
+ * @param msg 消息
53
+ * @order 6
54
+ *
55
+ */
56
+
57
+ onResult?(result: int, msg: String): void;
58
+ }
59
+ export declare class VeLiveMediaPlayerListener {
60
+ /** {zh}
61
+ * @detail callback
62
+ * @brief 开始播放的回调。
63
+ * @order 7
64
+ *
65
+ */
66
+
67
+ onStart?(info: Bundle): void;
68
+ /** {zh}
69
+ * @detail callback
70
+ * @brief 播放进度的回调,每 100ms 触发一次。
71
+ * @param timeMs 播放进度,单位为 ms。
72
+ * @order 8
73
+ *
74
+ */
75
+
76
+ onProgress?(timeMs: long): void;
77
+ /** {zh}
78
+ * @detail callback
79
+ * @brief 停止播放的回调。
80
+ * @order 9
81
+ *
82
+ */
83
+
84
+ onStop?(): void;
85
+ /** {zh}
86
+ * @detail callback
87
+ * @brief 返错误状态的回调。
88
+ * @param code 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
89
+ * @param msg 错误消息。
90
+ * @order 10
91
+ *
92
+ */
93
+
94
+ onError?(code: int, msg: String): void;
95
+ }
96
+ export declare class VeLiveAudioFrameListener {
97
+ /** {zh}
98
+ * @detail callback
99
+ * @brief 设置当前 Listener 需要的音频帧来源。
100
+ * @order 31
101
+ * @return 订阅的音频帧位置信息,详情请参见 [VeLiveAudioFrameSource](147521#VeLivePusherDef-VeLiveAudioFrameSource)。
102
+ *
103
+ */
104
+
105
+ getObservedAudioFrameSource?(): VeLiveAudioFrameSource;
106
+ /** {zh}
107
+ * @detail callback
108
+ * @brief 采集音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
109
+ * @order 28
110
+ * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
111
+ *
112
+ */
113
+
114
+ onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
115
+ /** {zh}
116
+ * @detail callback
117
+ * @brief 编码前音频帧回调。只有当您通过 [getObservedAudioFrameSource](#VeLiveAudioFrameListener-getobservedaudioframesource) 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
118
+ * @order 29
119
+ * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
120
+ *
121
+ */
122
+
123
+ onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
124
+ }
125
+ export declare class VeLiveMediaPlayerFrameListener {
126
+ /** {zh}
127
+ * @detail callback
128
+ * @brief 播放器音频帧回调。
129
+ * @param frame 音频帧,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
130
+ * @order 11
131
+ *
132
+ */
133
+
134
+ onAudioFrame?(frame: VeLiveAudioFrame): void;
135
+ /** {zh}
136
+ * @detail callback
137
+ * @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
138
+ * @param frame 视频帧数据,包含了帧的时间戳和格式等信息,详情请参见 [VeLiveVideoFrame](147521#VeLiveVideoFrame)。
139
+ * @order 12
140
+ *
141
+ */
142
+
143
+ onVideoFrame?(frame: VeLiveVideoFrame): void;
144
+ }
145
+ export declare class VeLiveSnapshotListener {
146
+ /** {zh}
147
+ * @detail callback
148
+ * @brief 截图成功回调。
149
+ * @notes <br>
150
+ * 调用 snapshot{@link #VeLivePusher#snapshot} 截图成功后,会收到这个回调。
151
+ * @order 19
152
+ * @param image 视频的截图。
153
+ *
154
+ */
155
+
156
+ onSnapshotComplete?(image: Bitmap): void;
157
+ }
158
+ export declare class VeLiveAudioFrameFilter {
159
+ /** {zh}
160
+ * @detail callback
161
+ * @brief 自定义的音频处理方法。
162
+ * @order 21
163
+ * @param srcFrame 源音频帧,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
164
+ * @param dstFrame 处理后的音频帧,详情请参见 [VeLiveAudioFrame](147521#VeLiveAudioFrame)。
165
+ * - 0:处理成功;
166
+ * - ≠0:处理失败,该帧会被 SDK 继续传递到编码器;
167
+ *
168
+ */
169
+
170
+ onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): int;
171
+ }
172
+ export declare class VeLivePusherObserver {
173
+ /** {zh}
174
+ * @detail callback
175
+ * @brief 推流错误回调。
176
+ * @order 1
177
+ * @param code 错误码。详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
178
+ * @param subCode 子错误码。
179
+ * @param msg 错误信息。
180
+ *
181
+ */
182
+
183
+ onError?(code: int, subCode: int, msg: String): void;
184
+ /** {zh}
185
+ * @detail callback
186
+ * @brief 推流状态变化回调。
187
+ * @order 16
188
+ * @param status 变化后的推流状态。详情请参见 [VeLivePusherStatus](147521#VeLivePusherStatus)。
189
+ *
190
+ */
191
+
192
+ onStatusChange?(status: VeLivePusherStatus): void;
193
+ /** {zh}
194
+ * @detail callback
195
+ * @brief 首帧视频回调,当推流器发送出第一帧视频时,触发该回调。
196
+ * @order 2
197
+ * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
198
+ * @param timestampMs 时间戳,单位为 ms。
199
+ *
200
+ */
201
+
202
+ onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
203
+ /** {zh}
204
+ * @detail callback
205
+ * @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
206
+ * @order 3
207
+ * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](147521#VeLiveFirstFrameType)。
208
+ * @param timestampMs 时间戳,单位为 ms。
209
+ *
210
+ */
211
+
212
+ onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: long): void;
213
+ /** {zh}
214
+ * @detail callback
215
+ * @brief 摄像头开启/关闭回调,当推流器的摄像头开启或关闭时,触发该回调。
216
+ * @param open 摄像头的新状态是否为开启。<br>
217
+ * - true:摄像头开启;
218
+ * - false:摄像头关闭。
219
+ * @order 4
220
+ *
221
+ */
222
+
223
+ onCameraOpened?(open: boolean): void;
224
+ /** {zh}
225
+ * @detail callback
226
+ * @brief 麦克风开启/关闭回调,当推流器的麦克风开启或关闭时,触发该回调。
227
+ * @param open 麦克风的新状态是否为开启。<br>
228
+ * - true:麦克风开启;
229
+ * - false:麦克风关闭。
230
+ * @order 5
231
+ *
232
+ */
233
+
234
+ onMicrophoneOpened?(open: boolean): void;
235
+ /** {zh}
236
+ * @detail callback
237
+ * @brief 屏幕采集开启/关闭回调,当推流器的屏幕采集开启或关闭时,触发该回调。
238
+ * @param open 屏幕采集的新状态是否为开启。<br>
239
+ * - true:屏幕采集开启;
240
+ * - false:屏幕采集关闭。
241
+ * @order 14
242
+ *
243
+ */
244
+
245
+ onScreenRecording?(open: boolean): void;
246
+ /** {zh}
247
+ * @detail callback
248
+ * @brief 网络质量状态回调,当推流器检测到网络质量发生变化时,触发该回调。
249
+ * @order 17
250
+ * @param quality 变化后的网络质量。详情请参见 [VeLiveNetworkQuality](147521#VeLiveNetworkQuality)。
251
+ *
252
+ */
253
+
254
+ onNetworkQuality?(quality: VeLiveNetworkQuality): void;
255
+ /** {zh}
256
+ * @detail callback
257
+ * @brief 音量等级回调,当推流器的音频音量等级发生变化时,触发该回调。
258
+ * @order 15
259
+ * @param level 变化后的音量等级。详情请参见 [VeLiveAudioPowerLevel](147521#VeLiveAudioPowerLevel)。
260
+ * @param value 当前音量的分贝值(dB)。<br/>
261
+ * - \\-1 表示当前没有获取到对应的音量分贝值。
262
+ * - 分贝数小于 1,对应 VeLiveAudioPowerLevelSilent 级别
263
+ * - 分贝数大于 1 小于等于 15,对应 VeLiveAudioPowerLevelQuiet 级别
264
+ * - 分贝数大于 15 小于等于 30,对应 VeLiveAudioPowerLevelLight 级别
265
+ * - 分贝数大于 30 小于等于 60,对应 VeLiveAudioPowerLevelNormal 级别
266
+ * - 分贝数大于 60 小于等于 85,对应 VeLiveAudioPowerLevelLoud
267
+ * - 分贝数大于 85,对应 VeLiveAudioPowerLevelNoisy 级别
268
+ *
269
+ */
270
+
271
+ onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: float): void;
272
+ }
273
+ export declare class VeLivePusherStatisticsObserver {
274
+ /** {zh}
275
+ * @detail callback
276
+ * @brief 推流周期性统计信息回调,每 5s 回调一次,您可以调用 [setStatisticsObserver](147517#VeLivePusher-setstatisticsobserver) 修改回调时间间隔。
277
+ * @order 18
278
+ * @param statistics 周期性统计信息,详情请参见 [VeLivePusherStatistics](147521#VeLivePusherDef-VeLivePusherStatistics)。
279
+ *
280
+ */
281
+
282
+ onStatistics?(statistics: VeLivePusherStatistics): void;
283
+ /** {zh}
284
+ * @detail callback
285
+ * @brief 周期性日志信息回调。
286
+ * @order 25
287
+ * @param logInfo 周期性日志信息。
288
+ *
289
+ */
290
+
291
+ onLogMonitor?(logInfo: JSONObject): void;
292
+ }
293
+ export declare class VeLivePusherDef {
294
+ }
295
+ export declare class VeLiveFileRecordingListener {
296
+ /** {zh}
297
+ * @detail callback
298
+ * @brief 直播录制开始回调。
299
+ * @order 22
300
+ *
301
+ */
302
+
303
+ onFileRecordingStarted?(): void;
304
+ /** {zh}
305
+ * @detail callback
306
+ * @brief 直播录制停止回调。
307
+ * @order 23
308
+ *
309
+ */
310
+
311
+ onFileRecordingStopped?(): void;
312
+ /** {zh}
313
+ * @detail callback
314
+ * @brief 直播录制错误回调。
315
+ * @order 24
316
+ * @param errorCode 错误码,详情请参见 [VeLivePusherErrorCode](147520#VeLivePusherErrorCode)。
317
+ * @param message 错误信息。
318
+ *
319
+ */
320
+
321
+ onFileRecordingError?(errorCode: int, message: String): void;
322
+ }
323
+ export declare class VeLiveVideoEffectHandleCallback {
324
+ /** {zh}
325
+ * @detail callback
326
+ * @brief 视频特效对象回调,调用 [setAdvancedFeature](147517#VeLiveVideoEffectManager-setadvancedfeature) 接口时触发此回调,如需使用请联系[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
327
+ * @param handle 视频特效对象。
328
+ * @order 13
329
+ *
330
+ */
331
+
332
+ onEffectHandle?(handle: Object): void;
333
+ }
@@ -0,0 +1,92 @@
1
+ export declare enum VeLivePusherErrorCode {
2
+ /** {zh}
3
+ * @brief 无错误。
4
+ *
5
+ */
6
+
7
+ VeLivePusherSuccess = 0,
8
+ /** {zh}
9
+ * @brief License 错误,可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
10
+ *
11
+ */
12
+
13
+ VeLivePusherInvalidLicense = -1,
14
+ /** {zh}
15
+ * @brief 参数错误,请检查入参,并重新调用。
16
+ *
17
+ */
18
+
19
+ VeLivePusherInvalidParameter = -2,
20
+ /** {zh}
21
+ * @brief 视频采集错误,可能未开启设备视频采集权限,请检查权限是否获取。
22
+ *
23
+ */
24
+
25
+ VeLivePusherVideoCaptureError = -3,
26
+ /** {zh}
27
+ * @brief 音频采集错误,可能未开启设备麦克风采集权限,请检查权限是否获取。
28
+ *
29
+ */
30
+
31
+ VeLivePusherAudioCaptureError = -4,
32
+ /** {zh}
33
+ * @brief 视频编码错误,可能配置了当前设备不支持的视频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
34
+ *
35
+ */
36
+
37
+ VeLivePusherVideoEncoderError = -5,
38
+ /** {zh}
39
+ * @brief 音频编码错误,可能配置了当前设备不支持的音频编码方式,请检查编码参数,并重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
40
+ *
41
+ */
42
+
43
+ VeLivePusherAudioEncoderError = -6,
44
+ /** {zh}
45
+ * @brief 网络发送错误,可能当前网络链路不通,或者开启了代理和关闭了网络权限,请检查网络后重新调用。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
46
+ *
47
+ */
48
+
49
+ VeLivePusherTransportError = -7,
50
+ /** {zh}
51
+ * @brief 视频特效错误,请检查视频特效 SDK 是否已经集成并且初试化成功。检查特效资源路径是否配置正确。如果故障未排除,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
52
+ *
53
+ */
54
+
55
+ VeLivePusherVideoEffectError = -8,
56
+ /** {zh}
57
+ * @brief 音频模块错误,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
58
+ *
59
+ */
60
+
61
+ VeLivePusherAudioDeviceError = -9,
62
+ /** {zh}
63
+ * @brief 您使用的基础版 License 暂不支持 H.265 硬件编码,请登录火山引擎控制台获取高级版 License。
64
+ *
65
+ */
66
+
67
+ VeLivePusherLicenseUnsupportedH265 = -10,
68
+ /** {zh}
69
+ * @brief 当前系统版本不支持屏幕采集功能
70
+ *
71
+ */
72
+
73
+ VeLivePusherScreenCaptureNotSupportError = -11,
74
+ /** {zh}
75
+ * @brief 屏幕采集权限的获取被用户拒绝
76
+ *
77
+ */
78
+
79
+ VeLivePusherScreenCaptureStartError = -12,
80
+ /** {zh}
81
+ * @brief 屏幕采集被系统中断,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
82
+ *
83
+ */
84
+
85
+ VeLivePusherScreenCaptureInterruptedError = -13,
86
+ /** {zh}
87
+ * @brief 其他错误类型,请联系火山引擎[技术支持](https://console.volcengine.com/workorder/create?step=3&SubProductID=P00000076)。
88
+ *
89
+ */
90
+
91
+ VeLivePusherError = -100
92
+ }
@@ -0,0 +1,5 @@
1
+ export * from './api';
2
+ export * from './callback';
3
+ export * from './errorcode';
4
+ export * from './keytype';
5
+ export * from './types';