@volcengine/react-native-live-push 1.0.2 → 1.1.1-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 (36) hide show
  1. package/README.md +1 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +1 -1
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +5 -3
  5. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +86 -11
  6. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +29 -40
  7. package/ios/VeLivePushView.m +1 -1
  8. package/ios/VeLivePushViewManager.m +5 -1
  9. package/lib/commonjs/index.js +21800 -17843
  10. package/lib/module/index.js +21800 -17836
  11. package/lib/typescript/android/index.d.ts +3 -0
  12. package/lib/typescript/codegen/android/api.d.ts +353 -125
  13. package/lib/typescript/codegen/android/callback.d.ts +36 -5
  14. package/lib/typescript/codegen/android/errorcode.d.ts +12 -0
  15. package/lib/typescript/codegen/android/keytype.d.ts +305 -73
  16. package/lib/typescript/codegen/android/types.d.ts +7 -6
  17. package/lib/typescript/codegen/ios/api.d.ts +81 -118
  18. package/lib/typescript/codegen/ios/callback.d.ts +22 -58
  19. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  20. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  21. package/lib/typescript/codegen/ios/keytype.d.ts +40 -98
  22. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  23. package/lib/typescript/codegen/pack/api.d.ts +1261 -1195
  24. package/lib/typescript/codegen/pack/callback.d.ts +166 -270
  25. package/lib/typescript/codegen/pack/errorcode.d.ts +24 -122
  26. package/lib/typescript/codegen/pack/index.d.ts +1 -1
  27. package/lib/typescript/codegen/pack/keytype.d.ts +1095 -1244
  28. package/lib/typescript/codegen/pack/types.d.ts +67 -0
  29. package/lib/typescript/component.d.ts +10 -3
  30. package/lib/typescript/core/api.d.ts +2 -2
  31. package/lib/typescript/core/callback.d.ts +2 -2
  32. package/lib/typescript/core/errorcode.d.ts +2 -2
  33. package/lib/typescript/core/keytype.d.ts +2 -7
  34. package/lib/typescript/platforms/ios/extends.d.ts +17 -0
  35. package/package.json +7 -4
  36. package/react-native-velive-push.podspec +1 -1
@@ -1,6 +1,6 @@
1
- import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveVideoFrameSource, VeLiveAudioFrameSource, VeLivePushStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel } from './keytype';
1
+ import { VeLivePusherStatistics, VeLiveVideoFrame, VeLiveAudioFrame, VeLivePushStatus, VeLiveFirstFrameType, VeLiveNetworkQuality, VeLiveAudioPowerLevel } from './keytype';
2
2
  import { NSDictionary, int, NSString, long, NSError, UIImage, int64_t, BOOL, float } from './types';
3
- export declare abstract class VeLivePusherStatisticsObserver {
3
+ export declare class VeLivePusherStatisticsObserver {
4
4
  /** {zh}
5
5
  * @detail callback
6
6
  * @brief 推流周期性统计信息回调。
@@ -16,7 +16,7 @@ export declare abstract class VeLivePusherStatisticsObserver {
16
16
  */
17
17
  onLogMonitor?(logInfo: NSDictionary): void;
18
18
  }
19
- export declare abstract class VeLiveMediaPlayerFrameListener {
19
+ export declare class VeLiveMediaPlayerFrameListener {
20
20
  /** {zh}
21
21
  * @detail callback
22
22
  * @brief 播放器视频帧回调。当完成一个新的视频帧的解码后,触发该回调。
@@ -30,7 +30,7 @@ export declare abstract class VeLiveMediaPlayerFrameListener {
30
30
  */
31
31
  onAudioFrame?(audioFrame: VeLiveAudioFrame): void;
32
32
  }
33
- export declare abstract class VeLiveFileRecordingListener {
33
+ export declare class VeLiveFileRecordingListener {
34
34
  /** {zh}
35
35
  * @detail callback
36
36
  * @brief 直播录制开始回调。
@@ -50,9 +50,9 @@ export declare abstract class VeLiveFileRecordingListener {
50
50
  * @param errorCode 错误码,详情请参见 [VeLivePusherCode](155320#VeLivePusherCode)。
51
51
  * @param msg 错误信息。
52
52
  */
53
- onFileRecordingError?(errorCode: int, msg: NSString): void;
53
+ onFileRecordingError$message?(errorCode: int, msg: NSString): void;
54
54
  }
55
- export declare abstract class VeLiveScreenCaptureStatusObserver {
55
+ export declare class VeLiveScreenCaptureStatusObserver {
56
56
  /** {zh}
57
57
  * @detail callback
58
58
  * @brief 录屏推流开始的回调。当 `[RPBroadcastSampleHandler startBroadcast]` 回调被触发时,会同时触发该回调。
@@ -74,63 +74,37 @@ export declare abstract class VeLiveScreenCaptureStatusObserver {
74
74
  */
75
75
  broadcastFinished?(): void;
76
76
  }
77
- export declare abstract class VeLiveVideoFrameFilter {
78
- /** {zh}
79
- * @detail callback
80
- * @brief 自定义的视频处理方法。
81
- * @return <br>
82
- * - =0:处理成功;
83
- * - <0:处理失败,该帧会被 SDK 丢弃;
84
- * - >0:处理失败,该帧会被 SDK 继续传递到编码器。
85
- * @order 14
86
- * @param srcFrame 源视频帧,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
87
- * @param dstFrame 处理后的视频帧,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
88
- */
89
- onVideoProcess?(srcFrame: VeLiveVideoFrame, dstFrame: VeLiveVideoFrame): int;
77
+ export declare class VeLiveVideoFrameFilter {
90
78
  }
91
- export declare abstract class VeLiveVideoFrameListener {
92
- /** {zh}
93
- * @detail callback
94
- * @brief 设置当前 Listener 需要的视频帧来源。
95
- * @return 您所要订阅的视频数据的位置信息,详情请参见 {@link #VeLiveVideoFrameSource VeLiveVideoFrameSource}。
96
- * @order 16
97
- */
98
- getObservedVideoFrameSource?(): VeLiveVideoFrameSource;
79
+ export declare class VeLiveVideoFrameListener {
99
80
  /** {zh}
100
81
  * @detail callback
101
- * @brief 采集视频帧回调。只有当您通过 {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
82
+ * @brief 采集视频帧回调。只有当您通过 getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourceCapture` 时,才会触发该回调。
102
83
  * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
103
84
  */
104
85
  onCaptureVideoFrame?(frame: VeLiveVideoFrame): void;
105
86
  /** {zh}
106
87
  * @detail callback
107
- * @brief 编码前视频帧回调。只有当您通过 {@link #VeLiveVideoFrameListener#getObservedVideoFrameSource getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
88
+ * @brief 编码前视频帧回调。只有当您通过 getObservedVideoFrameSource{@link #VeLiveVideoFrameListener#getObservedVideoFrameSource} 返回 `VeLiveVideoFrameSourcePreEncode` 时,才会触发该回调。
108
89
  * @param frame 视频帧数据,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
109
90
  */
110
91
  onPreEncodeVideoFrame?(frame: VeLiveVideoFrame): void;
111
92
  }
112
- export declare abstract class VeLiveAudioFrameListener {
93
+ export declare class VeLiveAudioFrameListener {
113
94
  /** {zh}
114
95
  * @detail callback
115
- * @brief 设置当前 Listener 需要的音频帧来源。
116
- * @return 订阅的音频帧位置信息,详情请参见 {@link #VeLiveAudioFrameSource VeLiveAudioFrameSource}。
117
- * @order 19
118
- */
119
- getObservedAudioFrameSource?(): VeLiveAudioFrameSource;
120
- /** {zh}
121
- * @detail callback
122
- * @brief 采集音频帧回调。只有当您通过 {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
96
+ * @brief 采集音频帧回调。只有当您通过 getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourceCapture` 时,才会触发该回调。
123
97
  * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
124
98
  */
125
99
  onCaptureAudioFrame?(frame: VeLiveAudioFrame): void;
126
100
  /** {zh}
127
101
  * @detail callback
128
- * @brief 编码前音频帧回调。只有当您通过 {@link #VeLiveAudioFrameListener#getObservedAudioFrameSource getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
102
+ * @brief 编码前音频帧回调。只有当您通过 getObservedAudioFrameSource{@link #VeLiveAudioFrameListener#getObservedAudioFrameSource} 返回 `VeLiveAudioFrameSourcePreEncode` 时,才会触发该回调。
129
103
  * @param frame 音频帧数据,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
130
104
  */
131
105
  onPreEncodeAudioFrame?(frame: VeLiveAudioFrame): void;
132
106
  }
133
- export declare abstract class VeLiveMediaPlayerListener {
107
+ export declare class VeLiveMediaPlayerListener {
134
108
  /** {zh}
135
109
  * @detail callback
136
110
  * @brief 开始播放的回调。
@@ -154,28 +128,18 @@ export declare abstract class VeLiveMediaPlayerListener {
154
128
  */
155
129
  onError?(error: NSError): void;
156
130
  }
157
- export declare abstract class VeLiveAudioFrameFilter {
158
- /** {zh}
159
- * @detail callback
160
- * @brief 自定义的音频处理方法。
161
- * @order 15
162
- * @return - =0:处理成功;
163
- * - ≠0:处理失败,该帧会被 SDK 继续传递到编码器。
164
- * @param srcFrame 源音频帧,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
165
- * @param dstFrame 处理后的音频帧,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
166
- */
167
- onAudioProcess?(srcFrame: VeLiveAudioFrame, dstFrame: VeLiveAudioFrame): int;
131
+ export declare class VeLiveAudioFrameFilter {
168
132
  }
169
- export declare abstract class VeLiveSnapshotListener {
133
+ export declare class VeLiveSnapshotListener {
170
134
  /** {zh}
171
135
  * @detail callback
172
136
  * @brief 截图成功回调。
173
- * @notes <br>调用 {@link #VeLivePusher#snapshot snapshot:} 截图成功后,会收到这个回调。
137
+ * @notes <br>调用 snapshot:{@link #VeLivePusher#snapshot} 截图成功后,会收到这个回调。
174
138
  * @param image 视频的截图。
175
139
  */
176
140
  onSnapshotComplete?(image: UIImage): void;
177
141
  }
178
- export declare abstract class VeLivePusherObserver {
142
+ export declare class VeLivePusherObserver {
179
143
  /** {zh}
180
144
  * @detail callback
181
145
  * @brief 推流错误回调。
@@ -184,7 +148,7 @@ export declare abstract class VeLivePusherObserver {
184
148
  * @param subcode 子错误码,详情请参见 [VeLivePusherErrorCode](155320#VeLivePusherErrorCode)。
185
149
  * @param msg 错误信息。
186
150
  */
187
- onError?(code: int, subcode: int, msg: NSString): void;
151
+ onError$subcode$message?(code: int, subcode: int, msg: NSString): void;
188
152
  /** {zh}
189
153
  * @detail callback
190
154
  * @brief 推流状态变化回调。
@@ -199,7 +163,7 @@ export declare abstract class VeLivePusherObserver {
199
163
  * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
200
164
  * @param timestampMs 时间戳,单位为 ms。
201
165
  */
202
- onFirstVideoFrame?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
166
+ onFirstVideoFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
203
167
  /** {zh}
204
168
  * @detail callback
205
169
  * @brief 首帧音频回调,当推流器发送出第一帧音频时,触发该回调。
@@ -207,7 +171,7 @@ export declare abstract class VeLivePusherObserver {
207
171
  * @param type 首帧的类型,详情请参见 [VeLiveFirstFrameType](155321#VeLiveFirstFrameType)。
208
172
  * @param timestampMs 时间戳,单位为 ms。
209
173
  */
210
- onFirstAudioFrame?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
174
+ onFirstAudioFrame$timestampMs?(type: VeLiveFirstFrameType, timestampMs: int64_t): void;
211
175
  /** {zh}
212
176
  * @detail callback
213
177
  * @brief 摄像头开启/关闭回调,当推流器的摄像头开启或关闭时,触发该回调。
@@ -247,5 +211,5 @@ export declare abstract class VeLivePusherObserver {
247
211
  * - 分贝数大于 60 小于等于 85,对应 VeLiveAudioPowerLevelLoud 级别;
248
212
  * - 分贝数大于 85,对应 VeLiveAudioPowerLevelNoisy 级别。
249
213
  */
250
- onAudioPowerQuality?(level: VeLiveAudioPowerLevel, value: float): void;
214
+ onAudioPowerQuality$value?(level: VeLiveAudioPowerLevel, value: float): void;
251
215
  }
@@ -0,0 +1 @@
1
+ export { UIView } from '../../platforms/ios/extends';
@@ -2,4 +2,5 @@ export * from './api';
2
2
  export * from './callback';
3
3
  export * from './errorcode';
4
4
  export * from './keytype';
5
+ export * from './external';
5
6
  export * from './types';
@@ -1,4 +1,4 @@
1
- import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString, NSUInteger, long } from './types';
1
+ import { int, BOOL, NSDictionary, float, CMTime, GLuint, CVPixelBufferRef, CMSampleBufferRef, NSData, NSArray, NSString } from './types';
2
2
  export declare enum VeLiveVideoEffectLicenseType {
3
3
  /** {zh}
4
4
  * @brief 离线认证视频特效许可证。
@@ -57,11 +57,11 @@ export declare enum VeLiveVideoEncodeFrameType {
57
57
  }
58
58
  export declare class VeLiveVideoEncoderConfiguration {
59
59
  /** {zh}
60
- * @brief 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 {@link #VeLiveVideoResolution VeLiveVideoResolution}。
60
+ * @brief 推流视频分辨率,默认值为 VeLiveVideoResolution720P,详情请参见 VeLiveVideoResolution{@link #VeLiveVideoResolution}。
61
61
  */
62
62
  resolution: VeLiveVideoResolution;
63
63
  /** {zh}
64
- * @brief 推流视频编码格式,默认值为 VeLiveVideoCodecH264,详情请参见 {@link #VeLiveVideoCodec VeLiveVideoCodec}。
64
+ * @brief 推流视频编码格式,默认值为 VeLiveVideoCodecH264,详情请参见 VeLiveVideoCodec{@link #VeLiveVideoCodec}。
65
65
  */
66
66
  codec: VeLiveVideoCodec;
67
67
  /** {zh}
@@ -97,10 +97,10 @@ export declare class VeLiveVideoEncoderConfiguration {
97
97
  */
98
98
  enableAccelerate: BOOL;
99
99
  /** {zh}
100
- * @brief 初始化方法,用于创建一个 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration} 对象,并指定视频的分辨率。
101
- * @param resolution 视频的分辨率,详情请参见 {@link #VeLiveVideoResolution VeLiveVideoResolution}。
100
+ * @brief 初始化方法,用于创建一个 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象,并指定视频的分辨率。
101
+ * @param resolution 视频的分辨率,详情请参见 VeLiveVideoResolution{@link #VeLiveVideoResolution}。
102
102
  * @return <br>
103
- * 创建的 {@link #VeLiveVideoEncoderConfiguration VeLiveVideoEncoderConfiguration} 对象。
103
+ * 创建的 VeLiveVideoEncoderConfiguration{@link #VeLiveVideoEncoderConfiguration} 对象。
104
104
  */
105
105
  initWithResolution(resolution: VeLiveVideoResolution): this;
106
106
  }
@@ -108,11 +108,11 @@ export declare enum VeLiveVideoFrameSource {
108
108
  /** {zh}
109
109
  * @brief 采集到的原始视频帧。这是从设备的摄像头或其他视频输入源获取的视频帧。
110
110
  */
111
- VeLiveVideoFrameSourceCapture = "1<<0",
111
+ VeLiveVideoFrameSourceCapture = 1,
112
112
  /** {zh}
113
113
  * @brief 编码前的视频帧。这是通过各种处理(例如滤镜、旋转等)后,准备进行编码的视频帧。
114
114
  */
115
- VeLiveVideoFrameSourcePreEncode = "1<<1"
115
+ VeLiveVideoFrameSourcePreEncode = 2
116
116
  }
117
117
  export declare enum VeLiveAudioBufferType {
118
118
  /** {zh}
@@ -130,11 +130,11 @@ export declare enum VeLiveAudioBufferType {
130
130
  }
131
131
  export declare class VeLivePusherConfiguration {
132
132
  /** {zh}
133
- * @brief 视频采集参数设置,用于调整和设置视频采集相关的参数。详情请参见 {@link #VeLiveVideoCaptureConfiguration VeLiveVideoCaptureConfiguration}。
133
+ * @brief 视频采集参数设置,用于调整和设置视频采集相关的参数。详情请参见 VeLiveVideoCaptureConfiguration{@link #VeLiveVideoCaptureConfiguration}。
134
134
  */
135
135
  videoCaptureConfig: VeLiveVideoCaptureConfiguration;
136
136
  /** {zh}
137
- * @brief 音频采集参数设置,用于调整和设置音频采集相关的参数。详情请参见 {@link #VeLiveAudioCaptureConfiguration VeLiveAudioCaptureConfiguration}。
137
+ * @brief 音频采集参数设置,用于调整和设置音频采集相关的参数。详情请参见 VeLiveAudioCaptureConfiguration{@link #VeLiveAudioCaptureConfiguration}。
138
138
  */
139
139
  audioCaptureConfig: VeLiveAudioCaptureConfiguration;
140
140
  /** {zh}
@@ -253,7 +253,7 @@ export declare class VeLiveMixVideoLayout {
253
253
  */
254
254
  zOrder: int;
255
255
  /** {zh}
256
- * @brief 视频流的渲染模式。详情请参见 {@link #VeLivePusherRenderMode VeLivePusherRenderMode}。
256
+ * @brief 视频流的渲染模式。详情请参见 VeLivePusherRenderMode{@link #VeLivePusherRenderMode}。
257
257
  */
258
258
  renderMode: VeLivePusherRenderMode;
259
259
  init(): this;
@@ -265,7 +265,7 @@ export declare class VeLiveMixAudioLayout {
265
265
  streamId: int;
266
266
  /** {zh}
267
267
  * @detail api
268
- * @brief 混流音频的音量,范围为 [0.0,4.0]。当你将 {@link #VeLiveAudioMixType VeLiveAudioMixType} 设置为 `VeLiveAudioMixPlayAndPush` 时,该属性同时控制混流音频在拉流端和本地的播放音量。
268
+ * @brief 混流音频的音量,范围为 [0.0,4.0]。当你将 VeLiveAudioMixType{@link #VeLiveAudioMixType} 设置为 `VeLiveAudioMixPlayAndPush` 时,该属性同时控制混流音频在拉流端和本地的播放音量。
269
269
  */
270
270
  volume: float;
271
271
  init(): this;
@@ -286,15 +286,15 @@ export declare enum VeLiveAudioProfile {
286
286
  }
287
287
  export declare class VeLiveVideoFrame {
288
288
  /** {zh}
289
- * @brief 视频数据包装格式。默认值为 VeLiveVideoBufferTypeUnknown,详情请参见 {@link #VeLiveVideoBufferType VeLiveVideoBufferType}。
289
+ * @brief 视频数据包装格式。默认值为 VeLiveVideoBufferTypeUnknown,详情请参见 VeLiveVideoBufferType{@link #VeLiveVideoBufferType}。
290
290
  */
291
291
  bufferType: VeLiveVideoBufferType;
292
292
  /** {zh}
293
- * @brief 视频帧像素格式。bufferType 为 VeLiveVideoBufferTypeNSData 时,需要指定数据格式。详情请参见 {@link #VeLivePixelFormat VeLivePixelFormat}。
293
+ * @brief 视频帧像素格式。bufferType 为 VeLiveVideoBufferTypeNSData 时,需要指定数据格式。详情请参见 VeLivePixelFormat{@link #VeLivePixelFormat}。
294
294
  */
295
295
  pixelFormat: VeLivePixelFormat;
296
296
  /** {zh}
297
- * @brief 视频帧顺时针旋转角度。详情请参见 {@link #VeLiveVideoRotation VeLiveVideoRotation}。
297
+ * @brief 视频帧顺时针旋转角度。详情请参见 VeLiveVideoRotation{@link #VeLiveVideoRotation}。
298
298
  */
299
299
  rotation: VeLiveVideoRotation;
300
300
  /** {zh}
@@ -325,11 +325,11 @@ export declare class VeLiveVideoFrame {
325
325
  * @brief `bufferType` 为 `VeLiveVideoBufferTypeNSData` 时的视频数据。
326
326
  */
327
327
  data: NSData;
328
- init(): this;
329
328
  /** {zh}
330
329
  * @brief 释放回调函数,用于在 SDK 内部处理完 VideoFrame 后通知外部释放相关资源。此回调主要用于 SDK 外部为 VideoFrame 申请内存,以便 SDK 内部使用。但无法预知内部何时使用完毕。
331
330
  */
332
331
  releaseCallback(): void;
332
+ init(): this;
333
333
  }
334
334
  export declare enum VeLiveVideoFluencyLevel {
335
335
  /** {zh}
@@ -365,11 +365,11 @@ export declare enum VeLiveVideoMirrorType {
365
365
  }
366
366
  export declare class VeLiveAudioCaptureConfiguration {
367
367
  /** {zh}
368
- * @brief 音频采样率,默认值为 `VeLiveAudioSampleRate44100`,详情请参见 {@link #VeLiveAudioSampleRate VeLiveAudioSampleRate}。
368
+ * @brief 音频采样率,默认值为 `VeLiveAudioSampleRate44100`,详情请参见 VeLiveAudioSampleRate{@link #VeLiveAudioSampleRate}。
369
369
  */
370
370
  sampleRate: VeLiveAudioSampleRate;
371
371
  /** {zh}
372
- * @brief 音频采集声道数,默认值为 `VeLiveAudioChannelStereo`,详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
372
+ * @brief 音频采集声道数,默认值为 `VeLiveAudioChannelStereo`,详情请参见 VeLiveAudioChannel{@link #VeLiveAudioChannel}。
373
373
  */
374
374
  channel: VeLiveAudioChannel;
375
375
  init(): this;
@@ -454,11 +454,11 @@ export declare enum VeLiveVideoRotation {
454
454
  }
455
455
  export declare class VeLiveStreamMixDescription {
456
456
  /** {zh}
457
- * @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 {@link #VeLiveMixVideoLayout VeLiveMixVideoLayout}。
457
+ * @brief 视频混流布局设置的数组,其中每个元素代表一路视频流的布局。详情请参见 VeLiveMixVideoLayout{@link #VeLiveMixVideoLayout}。
458
458
  */
459
459
  mixVideoStreams: NSArray<VeLiveMixVideoLayout>;
460
460
  /** {zh}
461
- * @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 {@link #VeLiveMixAudioLayout VeLiveMixAudioLayout}。
461
+ * @brief 音频混流设置的数组,其中每个元素代表一路音频流的。详情请参见 VeLiveMixAudioLayout{@link #VeLiveMixAudioLayout}。
462
462
  */
463
463
  mixAudioStreams: NSArray<VeLiveMixAudioLayout>;
464
464
  /** {zh}
@@ -520,15 +520,15 @@ export declare class VeLiveAudioEncoderConfiguration {
520
520
  */
521
521
  bitrate: int;
522
522
  /** {zh}
523
- * @brief 音频编码采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 {@link #VeLiveAudioSampleRate VeLiveAudioSampleRate}。
523
+ * @brief 音频编码采样率,默认值为 VeLiveAudioSampleRate44100,详情请参见 VeLiveAudioSampleRate{@link #VeLiveAudioSampleRate}。
524
524
  */
525
525
  sampleRate: VeLiveAudioSampleRate;
526
526
  /** {zh}
527
- * @brief 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
527
+ * @brief 音频声道数,默认值为 VeLiveAudioChannelStereo,详情请参见 VeLiveAudioChannel{@link #VeLiveAudioChannel}。
528
528
  */
529
529
  channel: VeLiveAudioChannel;
530
530
  /** {zh}
531
- * @brief AAC 编码类型,默认值为 VeLiveAudioAACProfileLC。详情请参见 {@link #VeLiveAudioProfile VeLiveAudioProfile}。
531
+ * @brief AAC 编码类型,默认值为 VeLiveAudioAACProfileLC。详情请参见 VeLiveAudioProfile{@link #VeLiveAudioProfile}。
532
532
  */
533
533
  profile: VeLiveAudioProfile;
534
534
  init(): this;
@@ -585,38 +585,38 @@ export declare enum VeLivePusherRenderMode {
585
585
  }
586
586
  export declare class VeLiveVideoEffectLicenseConfiguration {
587
587
  /** {zh}
588
- * @brief 获取视频特效许可证类型。许可证类型请参见 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType}。
588
+ * @brief 获取视频特效许可证类型。许可证类型请参见 VeLiveVideoEffectLicenseType{@link #VeLiveVideoEffectLicenseType}。
589
589
  */
590
590
  type: VeLiveVideoEffectLicenseType;
591
591
  /** {zh}
592
- * @brief 获取视频特效许可证的本地路径。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,该属性返回许可证文件的本地路径。
592
+ * @brief 获取视频特效许可证的本地路径。当 VeLiveVideoEffectLicenseType{@link #VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOffLine` 时,该属性返回许可证文件的本地路径。
593
593
  */
594
594
  path: NSString;
595
595
  /** {zh}
596
- * @brief 获取视频特效许可证的在线认证 key。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 key。
596
+ * @brief 获取视频特效许可证的在线认证 key。当 VeLiveVideoEffectLicenseType{@link #VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 key。
597
597
  */
598
598
  key: NSString;
599
599
  /** {zh}
600
- * @brief 获取视频特效许可证的在线认证 secret。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 secret。
600
+ * @brief 获取视频特效许可证的在线认证 secret。当 VeLiveVideoEffectLicenseType{@link #VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证的 secret。
601
601
  */
602
602
  secret: NSString;
603
603
  /** {zh}
604
- * @brief 获取视频特效许可证的在线认证地址。当 {@link #VeLiveVideoEffectLicenseType VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证地址。
604
+ * @brief 获取视频特效许可证的在线认证地址。当 VeLiveVideoEffectLicenseType{@link #VeLiveVideoEffectLicenseType} 为 `VeLiveVideoEffectLicenseTypeOnLine` 时,该属性返回在线认证地址。
605
605
  */
606
606
  url: NSString;
607
607
  /** {zh}
608
608
  * @detail api
609
609
  * @brief 初始化配置为本地验证模式。
610
- * @param path 视频特效许可证的本地缓存路径。可通过 {@link #path path} 获取
610
+ * @param path 视频特效许可证的本地缓存路径。可通过 path{@link #path} 获取
611
611
  * @return <br>
612
- * 返回 {@link #VeLiveVideoEffectLicenseConfiguration VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的本地路径进行许可证验证。
612
+ * 返回 VeLiveVideoEffectLicenseConfiguration{@link #VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的本地路径进行许可证验证。
613
613
  */
614
614
  initWithPath(path: NSString): this;
615
615
  /** {zh}
616
616
  * @detail api
617
617
  * @brief 初始化配置为在线验证模式。
618
618
  * @return <br>
619
- * 返回 {@link #VeLiveVideoEffectLicenseConfiguration VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
619
+ * 返回 VeLiveVideoEffectLicenseConfiguration{@link #VeLiveVideoEffectLicenseConfiguration} 类的实例,该实例使用指定的 key、secret 和 url 进行在线许可证验证。
620
620
  * @param key 视频特效许可证的在线认证 key,可通过 [key](155321#VeLiveVideoEffectLicenseConfiguration-key) 获取。
621
621
  * @param secret 视频特效许可证的在线认证 secret,可通过 [secret](155321#VeLiveVideoEffectLicenseConfiguration-secret) 获取。
622
622
  * @param url 视频特效许可证的在线认证地址,如果传入 nil,会使用默认 url,可通过 [url](155321#VeLiveVideoEffectLicenseConfiguration-url) 获取在线认证地址。
@@ -627,11 +627,11 @@ export declare enum VeLiveAudioFrameSource {
627
627
  /** {zh}
628
628
  * @brief 采集到的原始音频帧。这是从设备的麦克风或其他音频输入源获取的音频帧。
629
629
  */
630
- VeLiveAudioFrameSourceCapture = "1<<0",
630
+ VeLiveAudioFrameSourceCapture = 1,
631
631
  /** {zh}
632
632
  * @brief 编码前的音频帧。这是通过各种处理(例如噪音消除、回声消除等)后,准备进行编码的音频帧。
633
633
  */
634
- VeLiveAudioFrameSourcePreEncode = "1<<1"
634
+ VeLiveAudioFrameSourcePreEncode = 2
635
635
  }
636
636
  export declare enum VeLivePushStatus {
637
637
  /** {zh}
@@ -663,64 +663,6 @@ export declare enum VeLivePushStatus {
663
663
  */
664
664
  VeLivePushStatusDisconnected = 6
665
665
  }
666
- export declare class VeLivePusherLogConfig {
667
- deviceID: NSString;
668
- /** {zh}
669
- * @brief 日志文件保存路径。缺省情况下,使用默认路径 `/Library/Volclog`。
670
- */
671
- logPath: NSString;
672
- /** {zh}
673
- * @brief 日志文件整体最大尺寸,单位为 M,默认值为 100。
674
- */
675
- maxLogSizeM: NSUInteger;
676
- /** {zh}
677
- * @brief 单个日志文件最大尺寸,单位为 M,默认值为 2。
678
- */
679
- singleLogSizeM: NSUInteger;
680
- /** {zh}
681
- * @brief 日志文件有效期,过期后下次创建日志文件时会删除之前的文件。单位为 s,默认值为 604,800,即 7 天。
682
- */
683
- logExpireTimeS: NSUInteger;
684
- /** {zh}
685
- * @brief 日志是否打印到控制台输出,默认值为 YES。<br>
686
- * - YES:打印;
687
- * - NO:不打印。
688
- */
689
- enableConsole: BOOL;
690
- /** {zh}
691
- * @brief 日志是否打印到文件,默认值为 YES。<br>
692
- * - YES:打印;
693
- * - NO:不打印。
694
- */
695
- enableLogFile: BOOL;
696
- /** {zh}
697
- * @brief 允许写入的日志等级,默认值为 `TTSDKLogLevelDebug`。
698
- */
699
- logLevel: VeLivePusherLogLevel;
700
- /** {zh}
701
- * @brief 日志上报路径。
702
- */
703
- queryUrl: NSString;
704
- /** {zh}
705
- * @brief 是否开启线程轮询,默认值为 `1`。 <br>
706
- * - `0`:关闭;
707
- * - `1`:开启。
708
- */
709
- enableThreadLoop: int;
710
- /** {zh}
711
- * @brief 轮询间隔,单位为 ms,默认值为 120,000,即 2 分钟。
712
- */
713
- intervalMs: long;
714
- /** {zh}
715
- * @brief http请求超时时间,单位ms。设置小于等于0时,会使用默认值
716
- */
717
- httpTimeout: int;
718
- /** {zh}
719
- * @brief http 上传文件请求超时时间,单位ms。设置小于等于0时,会使用默认值
720
- */
721
- uploadFileHttpTimeout: int;
722
- init(): this;
723
- }
724
666
  export declare enum VeLiveFirstFrameType {
725
667
  /** {zh}
726
668
  * @brief 视频/音频采集首帧,采集首帧是从音频设备或视频设备(如麦克风、摄像头)获取的第一帧数据。
@@ -791,19 +733,19 @@ export declare class VeLivePusherStatistics {
791
733
  */
792
734
  transportVideoBitrate: int;
793
735
  /** {zh}
794
- * @brief 视频推流帧率,即您通过 {@link #VeLivePusher#setVideoEncoderConfiguration setVideoEncoderConfiguration:} 方法设置的帧率,单位为 fps。
736
+ * @brief 视频推流帧率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的帧率,单位为 fps。
795
737
  */
796
738
  fps: int;
797
739
  /** {zh}
798
- * @brief 视频推流码率,即您通过 {@link #VeLivePusher#setVideoEncoderConfiguration setVideoEncoderConfiguration:} 方法设置的码率,单位为 kbps。
740
+ * @brief 视频推流码率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的码率,单位为 kbps。
799
741
  */
800
742
  videoBitrate: int;
801
743
  /** {zh}
802
- * @brief 视频推流最小码率,即您通过 {@link #VeLivePusher#setVideoEncoderConfiguration setVideoEncoderConfiguration:} 方法设置的最小码率,单位为 kbps。
744
+ * @brief 视频推流最小码率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的最小码率,单位为 kbps。
803
745
  */
804
746
  minVideoBitrate: int;
805
747
  /** {zh}
806
- * @brief 视频推流最大码率,即您通过 {@link #VeLivePusher#setVideoEncoderConfiguration setVideoEncoderConfiguration:} 方法设置的最大码率,单位为 kbps。
748
+ * @brief 视频推流最大码率,即您通过 setVideoEncoderConfiguration:{@link #VeLivePusher#setVideoEncoderConfiguration} 方法设置的最大码率,单位为 kbps。
807
749
  */
808
750
  maxVideoBitrate: int;
809
751
  /** {zh}
@@ -868,15 +810,15 @@ export declare class VeLiveVideoCaptureConfiguration {
868
810
  }
869
811
  export declare class VeLiveAudioFrame {
870
812
  /** {zh}
871
- * @brief 音频数据类型,默认值为 `VeLiveAudioBufferTypeUnknown`,详情请参见 {@link #VeLiveAudioBufferType VeLiveAudioBufferType}。
813
+ * @brief 音频数据类型,默认值为 `VeLiveAudioBufferTypeUnknown`,详情请参见 VeLiveAudioBufferType{@link #VeLiveAudioBufferType}。
872
814
  */
873
815
  bufferType: VeLiveAudioBufferType;
874
816
  /** {zh}
875
- * @brief 音频采样率。详情请参见 {@link #VeLiveAudioSampleRate VeLiveAudioSampleRate}。
817
+ * @brief 音频采样率。详情请参见 VeLiveAudioSampleRate{@link #VeLiveAudioSampleRate}。
876
818
  */
877
819
  sampleRate: VeLiveAudioSampleRate;
878
820
  /** {zh}
879
- * @brief 音频声道数。详情请参见 {@link #VeLiveAudioChannel VeLiveAudioChannel}。
821
+ * @brief 音频声道数。详情请参见 VeLiveAudioChannel{@link #VeLiveAudioChannel}。
880
822
  */
881
823
  channels: VeLiveAudioChannel;
882
824
  /** {zh}
@@ -1,9 +1,12 @@
1
1
  export type id<T = any> = T;
2
2
  export type BOOL = boolean;
3
+ export type bool = boolean;
3
4
  export type int = number;
4
5
  export type long = number;
5
6
  export type float = number;
6
7
  export type int64_t = number;
8
+ export type double = number;
9
+ export type dispatch_queue_t = any;
7
10
  export type NSString = string;
8
11
  export type NSMutableString = string;
9
12
  export type NSInteger = number;
@@ -11,10 +14,12 @@ export type NSUInteger = number;
11
14
  export type NSNumber = number;
12
15
  export type NSValue = number;
13
16
  export type NSNull = null;
14
- export type NSArray<T> = Array<T>;
15
- export type NSMutableArray<T> = Array<T>;
16
- export type NSObject = Object;
17
- export type NSDictionary = Object;
17
+ export type NSArray<T = any> = Array<T>;
18
+ export type NSMutableArray<T = any> = Array<T>;
19
+ export type NSObject<T = any> = T;
20
+ export type NSDictionary<K extends keyof any = any, V = any> = {
21
+ [P in K]: V;
22
+ };
18
23
  export type NSMutableDictionary = Object;
19
24
  export type NSDate = Date;
20
25
  export type NSData = ArrayBuffer;
@@ -24,12 +29,18 @@ export type NSError = {
24
29
  domain: string;
25
30
  };
26
31
  export type NSTimeInterval = number;
27
- export type UIView = any;
28
32
  export type UIImage = unknown;
29
33
  export type CVPixelBufferRef = any;
30
34
  export type CMSampleBufferRef = any;
31
35
  export type CMTime = number;
32
36
  export type GLuint = number;
33
37
  export type CGFloat = number;
38
+ export type SInt64 = number;
39
+ export type intptr_t = any;
40
+ export type uint32_t = number;
41
+ export type uint8_t = number;
42
+ export type longlong = number;
34
43
  export type CGPoint = any;
44
+ export type CGRect = any;
45
+ export type CGSize = any;
35
46
  export type EAGLContext = any;