@byteplus/react-native-live-push 1.1.3-rc.4 → 1.1.4-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.
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +2 -13
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +13 -16
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +0 -16
- package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +2 -7
- package/lib/commonjs/index.js +1027 -466
- package/lib/module/index.js +1029 -463
- package/lib/typescript/codegen/android/api.d.ts +121 -1
- package/lib/typescript/codegen/ios/api.d.ts +28 -1
- package/lib/typescript/codegen/pack/api.d.ts +133 -1
- package/lib/typescript/core/api.d.ts +2 -17
- package/lib/typescript/core/keytype.d.ts +0 -16
- package/lib/typescript/index.d.ts +0 -1
- package/package.json +1 -1
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +0 -412
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +0 -423
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +0 -79
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +0 -168
- package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +0 -165
- package/ios/VeLiveMixerHelper.h +0 -44
- package/ios/VeLiveMixerHelper.m +0 -620
- package/ios/VeLiveMixerView.h +0 -69
- package/ios/VeLiveMixerView.m +0 -600
- package/ios/VeLiveMixerViewManager.m +0 -92
- package/lib/commonjs/typescript/android/index.d.ts +0 -47
- package/lib/commonjs/typescript/codegen/android/api.d.ts +0 -1527
- package/lib/commonjs/typescript/codegen/android/callback.d.ts +0 -91
- package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +0 -26
- package/lib/commonjs/typescript/codegen/android/index.d.ts +0 -5
- package/lib/commonjs/typescript/codegen/android/keytype.d.ts +0 -846
- package/lib/commonjs/typescript/codegen/android/types.d.ts +0 -33
- package/lib/commonjs/typescript/codegen/ios/api.d.ts +0 -222
- package/lib/commonjs/typescript/codegen/ios/callback.d.ts +0 -80
- package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +0 -54
- package/lib/commonjs/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/commonjs/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +0 -460
- package/lib/commonjs/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/commonjs/typescript/codegen/pack/api.d.ts +0 -1835
- package/lib/commonjs/typescript/codegen/pack/callback.d.ts +0 -400
- package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +0 -35
- package/lib/commonjs/typescript/codegen/pack/index.d.ts +0 -5
- package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +0 -1392
- package/lib/commonjs/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/commonjs/typescript/codegen/type-shim.d.ts +0 -6
- package/lib/commonjs/typescript/component.d.ts +0 -15
- package/lib/commonjs/typescript/core/api.d.ts +0 -17
- package/lib/commonjs/typescript/core/callback.d.ts +0 -2
- package/lib/commonjs/typescript/core/env.d.ts +0 -29
- package/lib/commonjs/typescript/core/errorcode.d.ts +0 -2
- package/lib/commonjs/typescript/core/index.d.ts +0 -6
- package/lib/commonjs/typescript/core/keytype.d.ts +0 -18
- package/lib/commonjs/typescript/core/mixer.d.ts +0 -26
- package/lib/commonjs/typescript/core/pusher.d.ts +0 -16
- package/lib/commonjs/typescript/index.d.ts +0 -3
- package/lib/commonjs/typescript/ios/extends.d.ts +0 -41
- package/lib/commonjs/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/android/helper.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/ios/extends.d.ts +0 -17
- package/lib/commonjs/typescript/platforms/ios/helper.d.ts +0 -8
- package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/commonjs/typescript/runtime.d.ts +0 -1
- package/lib/commonjs/typescript/view/MixView.d.ts +0 -52
- package/lib/commonjs/typescript/view/VeImageView.d.ts +0 -19
- package/lib/commonjs/typescript/view/VeTextView.d.ts +0 -7
- package/lib/commonjs/typescript/view/VeView.d.ts +0 -7
- package/lib/commonjs/typescript/view/VeWebView.d.ts +0 -7
- package/lib/commonjs/typescript/view/index.d.ts +0 -5
- package/lib/module/typescript/android/index.d.ts +0 -47
- package/lib/module/typescript/codegen/android/api.d.ts +0 -1527
- package/lib/module/typescript/codegen/android/callback.d.ts +0 -91
- package/lib/module/typescript/codegen/android/errorcode.d.ts +0 -26
- package/lib/module/typescript/codegen/android/index.d.ts +0 -5
- package/lib/module/typescript/codegen/android/keytype.d.ts +0 -846
- package/lib/module/typescript/codegen/android/types.d.ts +0 -33
- package/lib/module/typescript/codegen/ios/api.d.ts +0 -222
- package/lib/module/typescript/codegen/ios/callback.d.ts +0 -80
- package/lib/module/typescript/codegen/ios/errorcode.d.ts +0 -54
- package/lib/module/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/module/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/module/typescript/codegen/ios/keytype.d.ts +0 -460
- package/lib/module/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/module/typescript/codegen/pack/api.d.ts +0 -1835
- package/lib/module/typescript/codegen/pack/callback.d.ts +0 -400
- package/lib/module/typescript/codegen/pack/errorcode.d.ts +0 -35
- package/lib/module/typescript/codegen/pack/index.d.ts +0 -5
- package/lib/module/typescript/codegen/pack/keytype.d.ts +0 -1392
- package/lib/module/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/module/typescript/codegen/type-shim.d.ts +0 -6
- package/lib/module/typescript/component.d.ts +0 -15
- package/lib/module/typescript/core/api.d.ts +0 -17
- package/lib/module/typescript/core/callback.d.ts +0 -2
- package/lib/module/typescript/core/env.d.ts +0 -29
- package/lib/module/typescript/core/errorcode.d.ts +0 -2
- package/lib/module/typescript/core/index.d.ts +0 -6
- package/lib/module/typescript/core/keytype.d.ts +0 -18
- package/lib/module/typescript/core/mixer.d.ts +0 -26
- package/lib/module/typescript/core/pusher.d.ts +0 -16
- package/lib/module/typescript/index.d.ts +0 -3
- package/lib/module/typescript/ios/extends.d.ts +0 -41
- package/lib/module/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/module/typescript/platforms/android/helper.d.ts +0 -8
- package/lib/module/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/module/typescript/platforms/ios/extends.d.ts +0 -17
- package/lib/module/typescript/platforms/ios/helper.d.ts +0 -8
- package/lib/module/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/module/typescript/runtime.d.ts +0 -1
- package/lib/module/typescript/view/MixView.d.ts +0 -52
- package/lib/module/typescript/view/VeImageView.d.ts +0 -19
- package/lib/module/typescript/view/VeTextView.d.ts +0 -7
- package/lib/module/typescript/view/VeView.d.ts +0 -7
- package/lib/module/typescript/view/VeWebView.d.ts +0 -7
- package/lib/module/typescript/view/index.d.ts +0 -5
- package/lib/typescript/core/mixer.d.ts +0 -26
- package/lib/typescript/platforms/android/extends.d.ts +0 -8
- package/lib/typescript/platforms/android/mixer.d.ts +0 -8
- package/lib/typescript/platforms/ios/mixer.d.ts +0 -9
- package/lib/typescript/view/MixView.d.ts +0 -52
- package/lib/typescript/view/VeImageView.d.ts +0 -19
- package/lib/typescript/view/VeTextView.d.ts +0 -7
- package/lib/typescript/view/VeView.d.ts +0 -7
- package/lib/typescript/view/VeWebView.d.ts +0 -7
- package/lib/typescript/view/index.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VeLiveVideoBufferType, VeLivePixelFormat, VeLiveVideoRotation, VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherLogConfig, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveOrientation, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel, VeLiveVideoCaptureConfiguration, VeLiveAudioCaptureConfiguration } from './keytype';
|
|
1
|
+
import { VeLiveVideoBufferType, VeLivePixelFormat, VeLiveVideoRotation, VeLiveVideoEffectLicenseConfiguration, VeLivePusherLogLevel, VeLivePusherLogConfig, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveOrientation, VeLiveAudioMixType, VeLiveStreamMixDescription, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel, VeLiveVideoCaptureConfiguration, VeLiveAudioCaptureConfiguration } from './keytype';
|
|
2
2
|
import { int, long, Matrix, ByteBuffer, Runnable, float, String, EGLContext, View, Bitmap, Intent, Context, LiveSdkSetting } from './types';
|
|
3
3
|
import { VeLiveVideoEffectCallback, VeLiveVideoEffectHandleCallback, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveSnapshotListener, VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener } from './callback';
|
|
4
4
|
export declare class VeLiveVideoFrame {
|
|
@@ -1011,6 +1011,16 @@ export declare class VeLivePusher {
|
|
|
1011
1011
|
*/
|
|
1012
1012
|
createPlayer(): VeLiveMediaPlayer;
|
|
1013
1013
|
|
|
1014
|
+
/** {en}
|
|
1015
|
+
* @detail api
|
|
1016
|
+
* @brief Gets the audio and video mixer.
|
|
1017
|
+
* @return <br>
|
|
1018
|
+
* The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
|
|
1019
|
+
* @order 51
|
|
1020
|
+
*
|
|
1021
|
+
*/
|
|
1022
|
+
getMixerManager(): VeLiveMixerManager;
|
|
1023
|
+
|
|
1014
1024
|
/** {en}
|
|
1015
1025
|
* @detail api
|
|
1016
1026
|
* @brief Starts screen capture.
|
|
@@ -1099,6 +1109,116 @@ export declare class VeLivePusher {
|
|
|
1099
1109
|
*/
|
|
1100
1110
|
snapshot(listener: VeLiveSnapshotListener): void;
|
|
1101
1111
|
}
|
|
1112
|
+
export declare class VeLiveMixerManager {
|
|
1113
|
+
|
|
1114
|
+
/** {en}
|
|
1115
|
+
* @detail api
|
|
1116
|
+
* @brief Adds a video stream to the mixer.
|
|
1117
|
+
* @return <br>
|
|
1118
|
+
* The video stream ID.
|
|
1119
|
+
* @order 79
|
|
1120
|
+
*
|
|
1121
|
+
*/
|
|
1122
|
+
addVideoStream(): int;
|
|
1123
|
+
|
|
1124
|
+
/** {en}
|
|
1125
|
+
* @detail api
|
|
1126
|
+
* @brief Adds an audio stream to the mixer.
|
|
1127
|
+
* @return <br>
|
|
1128
|
+
* The audio stream ID.
|
|
1129
|
+
* @order 80
|
|
1130
|
+
*
|
|
1131
|
+
*/
|
|
1132
|
+
addAudioStream(): int;
|
|
1133
|
+
|
|
1134
|
+
/** {en}
|
|
1135
|
+
* @detail api
|
|
1136
|
+
* @brief Adds an audio stream to the mixer.
|
|
1137
|
+
* @return <br>
|
|
1138
|
+
* The audio stream ID.
|
|
1139
|
+
* @order 80
|
|
1140
|
+
*
|
|
1141
|
+
*/
|
|
1142
|
+
addAudioStream_type(type: VeLiveAudioMixType): int;
|
|
1143
|
+
|
|
1144
|
+
/** {en}
|
|
1145
|
+
* @detail api
|
|
1146
|
+
* @brief Gets the ID of the primary video stream.
|
|
1147
|
+
* @order 83
|
|
1148
|
+
*
|
|
1149
|
+
*/
|
|
1150
|
+
getOriginVideoStream(): int;
|
|
1151
|
+
|
|
1152
|
+
/** {en}
|
|
1153
|
+
* @detail api
|
|
1154
|
+
* @brief Gets the ID of the primary audio stream.
|
|
1155
|
+
* @order 84
|
|
1156
|
+
*
|
|
1157
|
+
*/
|
|
1158
|
+
getOriginAudioStream(): int;
|
|
1159
|
+
|
|
1160
|
+
/** {en}
|
|
1161
|
+
* @detail api
|
|
1162
|
+
* @brief Gets the ID of the primary screen stream.
|
|
1163
|
+
* @order 85
|
|
1164
|
+
*
|
|
1165
|
+
*/
|
|
1166
|
+
getOriginScreenStream(): int;
|
|
1167
|
+
|
|
1168
|
+
/** {en}
|
|
1169
|
+
* @detail api
|
|
1170
|
+
* @brief Gets the ID of the primary system audio stream.
|
|
1171
|
+
* @order 86
|
|
1172
|
+
*
|
|
1173
|
+
*/
|
|
1174
|
+
getOriginSystemAudioStream(): int;
|
|
1175
|
+
|
|
1176
|
+
/** {en}
|
|
1177
|
+
* @detail api
|
|
1178
|
+
* @brief Sends a custom video frame with a specified stream ID.
|
|
1179
|
+
* @param frame The custom video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
1180
|
+
* @param streamId The ID of the video stream to mix.
|
|
1181
|
+
* @order 87
|
|
1182
|
+
*
|
|
1183
|
+
*/
|
|
1184
|
+
sendCustomVideoFrame(frame: VeLiveVideoFrame, streamId: int): void;
|
|
1185
|
+
|
|
1186
|
+
/** {en}
|
|
1187
|
+
* @detail api
|
|
1188
|
+
* @brief Sends a custom audio frame with a specified stream ID.
|
|
1189
|
+
* @param frame The custom audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
1190
|
+
* @param streamId The ID of the audio stream to mix.
|
|
1191
|
+
* @order 88
|
|
1192
|
+
*
|
|
1193
|
+
*/
|
|
1194
|
+
sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: int): void;
|
|
1195
|
+
|
|
1196
|
+
/** {en}
|
|
1197
|
+
* @detail api
|
|
1198
|
+
* @brief Updates the configurations for audio and video mixing.
|
|
1199
|
+
* @param mixDescription The updated configurations for audio and video mixing. See VeLiveStreamMixDescription {@link #VeLiveStreamMixDescription} for details.
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
1202
|
+
updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
|
|
1203
|
+
|
|
1204
|
+
/** {en}
|
|
1205
|
+
* @detail api
|
|
1206
|
+
* @brief Removes a non-primary video stream from the mixer.
|
|
1207
|
+
* @param streamId The ID of the video stream to remove.
|
|
1208
|
+
* @order 80
|
|
1209
|
+
*
|
|
1210
|
+
*/
|
|
1211
|
+
removeVideoStream(streamId: int): void;
|
|
1212
|
+
|
|
1213
|
+
/** {en}
|
|
1214
|
+
* @detail api
|
|
1215
|
+
* @brief Removes a non-primary audio stream from the mixer.
|
|
1216
|
+
* @param streamId The ID of the audio stream to remove.
|
|
1217
|
+
* @order 82
|
|
1218
|
+
*
|
|
1219
|
+
*/
|
|
1220
|
+
removeAudioStream(streamId: int): void;
|
|
1221
|
+
}
|
|
1102
1222
|
export declare class VeLiveMediaPlayer {
|
|
1103
1223
|
|
|
1104
1224
|
/** {en}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NSString, BOOL, int, float, CGPoint, NSDictionary, id, long, NSArray, UIImage } from './types';
|
|
2
|
-
import { VeLiveFileRecorderConfiguration, VeLivePusherLogLevel, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation,
|
|
2
|
+
import { VeLiveFileRecorderConfiguration, VeLiveAudioMixType, VeLiveVideoFrame, VeLiveAudioFrame, VeLiveStreamMixDescription, VeLivePusherLogLevel, VeLivePusherConfiguration, VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, UIInterfaceOrientation, VeLiveVideoEncodeFrame, VeLiveVideoEffectLicenseConfiguration } from './keytype';
|
|
3
3
|
import { VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener, VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveScreenCaptureStatusObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveSnapshotListener } from './callback';
|
|
4
4
|
import { UIView } from './external';
|
|
5
5
|
export declare class VeLiveFileRecorderManager {
|
|
@@ -92,6 +92,31 @@ export declare class VeLiveAudioDevice {
|
|
|
92
92
|
isEnableEcho(): BOOL;
|
|
93
93
|
init(): this;
|
|
94
94
|
}
|
|
95
|
+
export declare class VeLiveMixerManager {
|
|
96
|
+
|
|
97
|
+
addVideoStream(): int;
|
|
98
|
+
|
|
99
|
+
removeVideoStream(streamId: int): void;
|
|
100
|
+
|
|
101
|
+
addAudioStream(type: VeLiveAudioMixType): int;
|
|
102
|
+
|
|
103
|
+
removeAudioStream(streamId: int): void;
|
|
104
|
+
|
|
105
|
+
setAudioStream(streamId: int, volume: float): void;
|
|
106
|
+
|
|
107
|
+
getOriginVideoStream(): int;
|
|
108
|
+
|
|
109
|
+
getOriginAudioStream(): int;
|
|
110
|
+
|
|
111
|
+
getAppAudioStream(): int;
|
|
112
|
+
|
|
113
|
+
sendCustomVideoFrame(frame: VeLiveVideoFrame, streamId: int): void;
|
|
114
|
+
|
|
115
|
+
sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: int): void;
|
|
116
|
+
|
|
117
|
+
updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
|
|
118
|
+
init(): this;
|
|
119
|
+
}
|
|
95
120
|
export declare class VeLivePusher {
|
|
96
121
|
|
|
97
122
|
static setLogLevel(level: VeLivePusherLogLevel): void;
|
|
@@ -167,6 +192,8 @@ export declare class VeLivePusher {
|
|
|
167
192
|
|
|
168
193
|
getAudioDevice(): VeLiveAudioDevice;
|
|
169
194
|
|
|
195
|
+
getMixerManager(): VeLiveMixerManager;
|
|
196
|
+
|
|
170
197
|
getVideoEffectManager(): VeLiveVideoEffectManager;
|
|
171
198
|
|
|
172
199
|
createPlayer(): VeLiveMediaPlayer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as $p_a from '../android/index';
|
|
2
2
|
import * as $p_i from '../ios/index';
|
|
3
3
|
import { VeLivePusherObserver, VeLivePusherStatisticsObserver, VeLiveFileRecordingListener, VeLiveVideoFrameFilter, VeLiveAudioFrameFilter, VeLiveVideoFrameListener, VeLiveAudioFrameListener, VeLiveSnapshotListener, VeLiveMediaPlayerListener, VeLiveMediaPlayerFrameListener } from './callback';
|
|
4
|
-
import { VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveOrientation, VeLivePusherLogLevel, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveVideoCaptureConfiguration, VeLiveVideoEffectLicenseConfiguration, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel } from './keytype';
|
|
4
|
+
import { VeLivePusherRenderMode, VeLiveVideoMirrorType, VeLiveVideoCaptureType, VeLiveAudioCaptureType, VeLiveOrientation, VeLivePusherLogLevel, VeLiveVideoEncoderConfiguration, VeLiveAudioEncoderConfiguration, VeLiveFileRecorderConfiguration, VeLiveVideoCaptureConfiguration, VeLiveVideoEffectLicenseConfiguration, VeLiveStreamMixDescription, VeLiveAudioBufferType, VeLiveAudioSampleRate, VeLiveAudioChannel } from './keytype';
|
|
5
5
|
import { View, Bitmap, Matrix, ByteBuffer } from './types';
|
|
6
6
|
|
|
7
7
|
export declare class VeLivePusher {
|
|
@@ -482,6 +482,16 @@ export declare class VeLivePusher {
|
|
|
482
482
|
*/
|
|
483
483
|
createPlayer(): VeLiveMediaPlayer;
|
|
484
484
|
|
|
485
|
+
/** {en}
|
|
486
|
+
* @detail api
|
|
487
|
+
* @brief Gets the audio and video mixer.
|
|
488
|
+
* @return <br>
|
|
489
|
+
* The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
|
|
490
|
+
* @order 51
|
|
491
|
+
*
|
|
492
|
+
*/
|
|
493
|
+
getMixerManager(): VeLiveMixerManager;
|
|
494
|
+
|
|
485
495
|
/** {en}
|
|
486
496
|
* @platform android
|
|
487
497
|
* @detail api
|
|
@@ -1665,6 +1675,128 @@ export declare class VeLiveVideoEffectManager {
|
|
|
1665
1675
|
ios_setAlgoModelPath(path: string): number;
|
|
1666
1676
|
}
|
|
1667
1677
|
|
|
1678
|
+
export declare class VeLiveMixerManager {
|
|
1679
|
+
protected _instance: any;
|
|
1680
|
+
protected __init(...args: any[]): void;
|
|
1681
|
+
protected __new_instance(...args: any[]): any;
|
|
1682
|
+
|
|
1683
|
+
/** {en}
|
|
1684
|
+
* @detail api
|
|
1685
|
+
* @brief Adds a video stream to the mixer.
|
|
1686
|
+
* @return <br>
|
|
1687
|
+
* The video stream ID.
|
|
1688
|
+
* @order 79
|
|
1689
|
+
*
|
|
1690
|
+
*/
|
|
1691
|
+
addVideoStream(): number;
|
|
1692
|
+
|
|
1693
|
+
/** {en}
|
|
1694
|
+
* @platform android
|
|
1695
|
+
* @detail api
|
|
1696
|
+
* @brief Adds an audio stream to the mixer.
|
|
1697
|
+
* @return <br>
|
|
1698
|
+
* The audio stream ID.
|
|
1699
|
+
* @order 80
|
|
1700
|
+
*
|
|
1701
|
+
*/
|
|
1702
|
+
android_addAudioStream_type(type: $p_a.VeLiveAudioMixType): number;
|
|
1703
|
+
|
|
1704
|
+
/** {en}
|
|
1705
|
+
* @detail api
|
|
1706
|
+
* @brief Gets the ID of the primary video stream.
|
|
1707
|
+
* @order 83
|
|
1708
|
+
*
|
|
1709
|
+
*/
|
|
1710
|
+
getOriginVideoStream(): number;
|
|
1711
|
+
|
|
1712
|
+
/** {en}
|
|
1713
|
+
* @detail api
|
|
1714
|
+
* @brief Gets the ID of the primary audio stream.
|
|
1715
|
+
* @order 84
|
|
1716
|
+
*
|
|
1717
|
+
*/
|
|
1718
|
+
getOriginAudioStream(): number;
|
|
1719
|
+
|
|
1720
|
+
/** {en}
|
|
1721
|
+
* @platform android
|
|
1722
|
+
* @detail api
|
|
1723
|
+
* @brief Gets the ID of the primary screen stream.
|
|
1724
|
+
* @order 85
|
|
1725
|
+
*
|
|
1726
|
+
*/
|
|
1727
|
+
android_getOriginScreenStream(): number;
|
|
1728
|
+
|
|
1729
|
+
/** {en}
|
|
1730
|
+
* @platform android
|
|
1731
|
+
* @detail api
|
|
1732
|
+
* @brief Gets the ID of the primary system audio stream.
|
|
1733
|
+
* @order 86
|
|
1734
|
+
*
|
|
1735
|
+
*/
|
|
1736
|
+
android_getOriginSystemAudioStream(): number;
|
|
1737
|
+
|
|
1738
|
+
/** {en}
|
|
1739
|
+
* @detail api
|
|
1740
|
+
* @brief Sends a custom video frame with a specified stream ID.
|
|
1741
|
+
* @param frame The custom video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
1742
|
+
* @param streamId The ID of the video stream to mix.
|
|
1743
|
+
* @order 87
|
|
1744
|
+
*
|
|
1745
|
+
*/
|
|
1746
|
+
sendCustomVideoFrame(frame: VeLiveVideoFrame, streamId: number): void;
|
|
1747
|
+
|
|
1748
|
+
/** {en}
|
|
1749
|
+
* @detail api
|
|
1750
|
+
* @brief Sends a custom audio frame with a specified stream ID.
|
|
1751
|
+
* @param frame The custom audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
1752
|
+
* @param streamId The ID of the audio stream to mix.
|
|
1753
|
+
* @order 88
|
|
1754
|
+
*
|
|
1755
|
+
*/
|
|
1756
|
+
sendCustomAudioFrame(frame: VeLiveAudioFrame, streamId: number): void;
|
|
1757
|
+
|
|
1758
|
+
/** {en}
|
|
1759
|
+
* @detail api
|
|
1760
|
+
* @brief Updates the configurations for audio and video mixing.
|
|
1761
|
+
* @param mixDescription The updated configurations for audio and video mixing. See VeLiveStreamMixDescription {@link #VeLiveStreamMixDescription} for details.
|
|
1762
|
+
*
|
|
1763
|
+
*/
|
|
1764
|
+
updateStreamMixDescription(mixDescription: VeLiveStreamMixDescription): void;
|
|
1765
|
+
|
|
1766
|
+
/** {en}
|
|
1767
|
+
* @detail api
|
|
1768
|
+
* @brief Removes a non-primary video stream from the mixer.
|
|
1769
|
+
* @param streamId The ID of the video stream to remove.
|
|
1770
|
+
* @order 80
|
|
1771
|
+
*
|
|
1772
|
+
*/
|
|
1773
|
+
removeVideoStream(streamId: number): void;
|
|
1774
|
+
|
|
1775
|
+
/** {en}
|
|
1776
|
+
* @detail api
|
|
1777
|
+
* @brief Removes a non-primary audio stream from the mixer.
|
|
1778
|
+
* @param streamId The ID of the audio stream to remove.
|
|
1779
|
+
* @order 82
|
|
1780
|
+
*
|
|
1781
|
+
*/
|
|
1782
|
+
removeAudioStream(streamId: number): void;
|
|
1783
|
+
|
|
1784
|
+
/** {en}
|
|
1785
|
+
* @platform ios
|
|
1786
|
+
* @detail api
|
|
1787
|
+
* @brief Sets the volume of a non-primary audio stream. If you set VeLiveAudioMixType{@link #VeLiveAudioMixType} to `VeLiveAudioMixPlayAndPush`, this method takes effect on both the host and the audience sides.
|
|
1788
|
+
* @param streamId The audio stream ID.
|
|
1789
|
+
* @param volume The audio volume. The value range is [0.0,4.0].
|
|
1790
|
+
* @order 70
|
|
1791
|
+
*/
|
|
1792
|
+
ios_setAudioStream(streamId: number, volume: number): void;
|
|
1793
|
+
|
|
1794
|
+
/** {en}
|
|
1795
|
+
* @platform ios
|
|
1796
|
+
*/
|
|
1797
|
+
ios_getAppAudioStream(): number;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1668
1800
|
export declare class VeLiveAudioFrame {
|
|
1669
1801
|
constructor();
|
|
1670
1802
|
constructor(sampleRate: VeLiveAudioSampleRate, channel: VeLiveAudioChannel, pts: number, buffer: ByteBuffer);
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame } from '../codegen/pack/api';
|
|
2
|
-
|
|
3
|
-
declare module '../codegen/pack/api' {
|
|
4
|
-
interface VeLivePusher {
|
|
5
|
-
|
|
6
|
-
/** {en}
|
|
7
|
-
* @detail api
|
|
8
|
-
* @brief Gets the audio and video mixer.
|
|
9
|
-
* @return <br>
|
|
10
|
-
* The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
|
|
11
|
-
* @order 51
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
getMixerManager(): VeLiveMixerManager;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame, _VeLivePusher as VeLivePusher, };
|
|
1
|
+
import { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLiveMixerManager, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame } from '../codegen/pack/api';
|
|
2
|
+
export { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLiveMixerManager, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame, _VeLivePusher as VeLivePusher, };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
1
|
import { VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioEncoderConfiguration, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLivePixelFormat, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEncoderConfiguration, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, VeLiveOrientation } from '../codegen/pack/keytype';
|
|
2
|
-
export interface MixConfig {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
alpha?: number;
|
|
8
|
-
zOrder?: number;
|
|
9
|
-
renderMode?: number;
|
|
10
|
-
captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
|
|
11
|
-
}
|
|
12
|
-
export interface MixViewConfig {
|
|
13
|
-
renderMode?: number;
|
|
14
|
-
captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
|
|
15
|
-
captureFramerate?: number;
|
|
16
|
-
autoSensitivity?: number;
|
|
17
|
-
}
|
|
18
2
|
export { VeLiveOrientation, VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioEncoderConfiguration, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLivePixelFormat, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEncoderConfiguration, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, };
|