@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
package/lib/module/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { NativeEventEmitter, Image, Platform, requireNativeComponent, NativeModules, findNodeHandle, UIManager
|
|
2
|
-
import React
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { NativeEventEmitter, Image, Platform, requireNativeComponent, NativeModules, findNodeHandle, UIManager } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* base64.ts
|
|
@@ -2209,17 +2208,6 @@ function __extends(d, b) {
|
|
|
2209
2208
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2210
2209
|
}
|
|
2211
2210
|
|
|
2212
|
-
var __assign = function() {
|
|
2213
|
-
__assign = Object.assign || function __assign(t) {
|
|
2214
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2215
|
-
s = arguments[i];
|
|
2216
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2217
|
-
}
|
|
2218
|
-
return t;
|
|
2219
|
-
};
|
|
2220
|
-
return __assign.apply(this, arguments);
|
|
2221
|
-
};
|
|
2222
|
-
|
|
2223
2211
|
function __rest(s, e) {
|
|
2224
2212
|
var t = {};
|
|
2225
2213
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -5976,6 +5964,7 @@ var VeLivePusher$2 = function () {
|
|
|
5976
5964
|
var _getAudioDevice_decorators;
|
|
5977
5965
|
var _setAudioFrameFilter_decorators;
|
|
5978
5966
|
var _createPlayer_decorators;
|
|
5967
|
+
var _getMixerManager_decorators;
|
|
5979
5968
|
var _startScreenRecording_decorators;
|
|
5980
5969
|
var _stopScreenRecording_decorators;
|
|
5981
5970
|
var _isScreenRecording_decorators;
|
|
@@ -6881,6 +6870,25 @@ var VeLivePusher$2 = function () {
|
|
|
6881
6870
|
VeLivePusher_1.prototype.createPlayer = function () {
|
|
6882
6871
|
throw new Error('not implement');
|
|
6883
6872
|
};
|
|
6873
|
+
/** {zh}
|
|
6874
|
+
* @detail api
|
|
6875
|
+
* @brief 获取混流管理对象。
|
|
6876
|
+
* @return <br>
|
|
6877
|
+
* 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
|
|
6878
|
+
* @order 51
|
|
6879
|
+
*
|
|
6880
|
+
*/
|
|
6881
|
+
/** {en}
|
|
6882
|
+
* @detail api
|
|
6883
|
+
* @brief Gets the audio and video mixer.
|
|
6884
|
+
* @return <br>
|
|
6885
|
+
* The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
|
|
6886
|
+
* @order 51
|
|
6887
|
+
*
|
|
6888
|
+
*/
|
|
6889
|
+
VeLivePusher_1.prototype.getMixerManager = function () {
|
|
6890
|
+
throw new Error('not implement');
|
|
6891
|
+
};
|
|
6884
6892
|
/** {zh}
|
|
6885
6893
|
* @detail api
|
|
6886
6894
|
* @brief 开始屏幕采集。
|
|
@@ -7096,6 +7104,7 @@ var VeLivePusher$2 = function () {
|
|
|
7096
7104
|
_getAudioDevice_decorators = [ReturnClass(function () { return VeLiveAudioDevice$2; }), NativeMethodSync()];
|
|
7097
7105
|
_setAudioFrameFilter_decorators = [NativeMethodSync()];
|
|
7098
7106
|
_createPlayer_decorators = [ReturnClass(function () { return VeLiveMediaPlayer$2; }), NativeMethodSync()];
|
|
7107
|
+
_getMixerManager_decorators = [ReturnClass(function () { return VeLiveMixerManager$2; }), NativeMethodSync()];
|
|
7099
7108
|
_startScreenRecording_decorators = [NativeMethodSync()];
|
|
7100
7109
|
_stopScreenRecording_decorators = [NativeMethodSync()];
|
|
7101
7110
|
_isScreenRecording_decorators = [NativeMethodSync()];
|
|
@@ -7147,6 +7156,7 @@ var VeLivePusher$2 = function () {
|
|
|
7147
7156
|
__esDecorate(_classThis, null, _getAudioDevice_decorators, { kind: "method", name: "getAudioDevice", static: false, private: false, access: { has: function (obj) { return "getAudioDevice" in obj; }, get: function (obj) { return obj.getAudioDevice; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7148
7157
|
__esDecorate(_classThis, null, _setAudioFrameFilter_decorators, { kind: "method", name: "setAudioFrameFilter", static: false, private: false, access: { has: function (obj) { return "setAudioFrameFilter" in obj; }, get: function (obj) { return obj.setAudioFrameFilter; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7149
7158
|
__esDecorate(_classThis, null, _createPlayer_decorators, { kind: "method", name: "createPlayer", static: false, private: false, access: { has: function (obj) { return "createPlayer" in obj; }, get: function (obj) { return obj.createPlayer; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7159
|
+
__esDecorate(_classThis, null, _getMixerManager_decorators, { kind: "method", name: "getMixerManager", static: false, private: false, access: { has: function (obj) { return "getMixerManager" in obj; }, get: function (obj) { return obj.getMixerManager; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7150
7160
|
__esDecorate(_classThis, null, _startScreenRecording_decorators, { kind: "method", name: "startScreenRecording", static: false, private: false, access: { has: function (obj) { return "startScreenRecording" in obj; }, get: function (obj) { return obj.startScreenRecording; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7151
7161
|
__esDecorate(_classThis, null, _stopScreenRecording_decorators, { kind: "method", name: "stopScreenRecording", static: false, private: false, access: { has: function (obj) { return "stopScreenRecording" in obj; }, get: function (obj) { return obj.stopScreenRecording; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7152
7162
|
__esDecorate(_classThis, null, _isScreenRecording_decorators, { kind: "method", name: "isScreenRecording", static: false, private: false, access: { has: function (obj) { return "isScreenRecording" in obj; }, get: function (obj) { return obj.isScreenRecording; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
@@ -7163,6 +7173,269 @@ var VeLivePusher$2 = function () {
|
|
|
7163
7173
|
})();
|
|
7164
7174
|
return _classThis;
|
|
7165
7175
|
}();
|
|
7176
|
+
var VeLiveMixerManager$2 = function () {
|
|
7177
|
+
var _classDecorators = [NativeClass('com.ss.avframework.live.VeLiveMixerManager')];
|
|
7178
|
+
var _classDescriptor;
|
|
7179
|
+
var _classExtraInitializers = [];
|
|
7180
|
+
var _classThis;
|
|
7181
|
+
var _instanceExtraInitializers = [];
|
|
7182
|
+
var _addVideoStream_decorators;
|
|
7183
|
+
var _addAudioStream_decorators;
|
|
7184
|
+
var _addAudioStream_type_decorators;
|
|
7185
|
+
var _getOriginVideoStream_decorators;
|
|
7186
|
+
var _getOriginAudioStream_decorators;
|
|
7187
|
+
var _getOriginScreenStream_decorators;
|
|
7188
|
+
var _getOriginSystemAudioStream_decorators;
|
|
7189
|
+
var _sendCustomVideoFrame_decorators;
|
|
7190
|
+
var _sendCustomAudioFrame_decorators;
|
|
7191
|
+
var _updateStreamMixDescription_decorators;
|
|
7192
|
+
var _removeVideoStream_decorators;
|
|
7193
|
+
var _removeAudioStream_decorators;
|
|
7194
|
+
_classThis = /** @class */ (function () {
|
|
7195
|
+
function VeLiveMixerManager_1() {
|
|
7196
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
7197
|
+
}
|
|
7198
|
+
/** {zh}
|
|
7199
|
+
* @detail api
|
|
7200
|
+
* @brief 添加一路需要混流的视频流到混流器中。
|
|
7201
|
+
* @return <br>
|
|
7202
|
+
* 视频流 ID。
|
|
7203
|
+
* @order 79
|
|
7204
|
+
*
|
|
7205
|
+
*/
|
|
7206
|
+
/** {en}
|
|
7207
|
+
* @detail api
|
|
7208
|
+
* @brief Adds a video stream to the mixer.
|
|
7209
|
+
* @return <br>
|
|
7210
|
+
* The video stream ID.
|
|
7211
|
+
* @order 79
|
|
7212
|
+
*
|
|
7213
|
+
*/
|
|
7214
|
+
VeLiveMixerManager_1.prototype.addVideoStream = function () {
|
|
7215
|
+
throw new Error('not implement');
|
|
7216
|
+
};
|
|
7217
|
+
/** {zh}
|
|
7218
|
+
* @detail api
|
|
7219
|
+
* @brief 添加一路音频流到混流器中。
|
|
7220
|
+
* @return <br>
|
|
7221
|
+
* 音频流 ID。
|
|
7222
|
+
* @order 80
|
|
7223
|
+
*
|
|
7224
|
+
*/
|
|
7225
|
+
/** {en}
|
|
7226
|
+
* @detail api
|
|
7227
|
+
* @brief Adds an audio stream to the mixer.
|
|
7228
|
+
* @return <br>
|
|
7229
|
+
* The audio stream ID.
|
|
7230
|
+
* @order 80
|
|
7231
|
+
*
|
|
7232
|
+
*/
|
|
7233
|
+
VeLiveMixerManager_1.prototype.addAudioStream = function () {
|
|
7234
|
+
throw new Error('not implement');
|
|
7235
|
+
};
|
|
7236
|
+
/** {zh}
|
|
7237
|
+
* @detail api
|
|
7238
|
+
* @brief 添加一路音频流到混流器中,并指定混流类型。
|
|
7239
|
+
* @return <br>
|
|
7240
|
+
* 音频流 ID。
|
|
7241
|
+
* @order 81
|
|
7242
|
+
* @param type 混流类型,详情请参见 [VeLiveAudioMixType](147521#VeLiveAudioMixType) 。
|
|
7243
|
+
*
|
|
7244
|
+
*/
|
|
7245
|
+
/** {en}
|
|
7246
|
+
* @detail api
|
|
7247
|
+
* @brief Adds an audio stream to the mixer.
|
|
7248
|
+
* @return <br>
|
|
7249
|
+
* The audio stream ID.
|
|
7250
|
+
* @order 80
|
|
7251
|
+
*
|
|
7252
|
+
*/
|
|
7253
|
+
VeLiveMixerManager_1.prototype.addAudioStream_type = function (type) {
|
|
7254
|
+
throw new Error('not implement');
|
|
7255
|
+
};
|
|
7256
|
+
/** {zh}
|
|
7257
|
+
* @detail api
|
|
7258
|
+
* @brief 获取主路视频流 ID。
|
|
7259
|
+
* @order 83
|
|
7260
|
+
*
|
|
7261
|
+
*/
|
|
7262
|
+
/** {en}
|
|
7263
|
+
* @detail api
|
|
7264
|
+
* @brief Gets the ID of the primary video stream.
|
|
7265
|
+
* @order 83
|
|
7266
|
+
*
|
|
7267
|
+
*/
|
|
7268
|
+
VeLiveMixerManager_1.prototype.getOriginVideoStream = function () {
|
|
7269
|
+
throw new Error('not implement');
|
|
7270
|
+
};
|
|
7271
|
+
/** {zh}
|
|
7272
|
+
* @detail api
|
|
7273
|
+
* @brief 获取主路音频流 ID。
|
|
7274
|
+
* @order 84
|
|
7275
|
+
*
|
|
7276
|
+
*/
|
|
7277
|
+
/** {en}
|
|
7278
|
+
* @detail api
|
|
7279
|
+
* @brief Gets the ID of the primary audio stream.
|
|
7280
|
+
* @order 84
|
|
7281
|
+
*
|
|
7282
|
+
*/
|
|
7283
|
+
VeLiveMixerManager_1.prototype.getOriginAudioStream = function () {
|
|
7284
|
+
throw new Error('not implement');
|
|
7285
|
+
};
|
|
7286
|
+
/** {zh}
|
|
7287
|
+
* @detail api
|
|
7288
|
+
* @brief 获取主路屏幕流 ID。
|
|
7289
|
+
* @order 85
|
|
7290
|
+
*
|
|
7291
|
+
*/
|
|
7292
|
+
/** {en}
|
|
7293
|
+
* @detail api
|
|
7294
|
+
* @brief Gets the ID of the primary screen stream.
|
|
7295
|
+
* @order 85
|
|
7296
|
+
*
|
|
7297
|
+
*/
|
|
7298
|
+
VeLiveMixerManager_1.prototype.getOriginScreenStream = function () {
|
|
7299
|
+
throw new Error('not implement');
|
|
7300
|
+
};
|
|
7301
|
+
/** {zh}
|
|
7302
|
+
* @detail api
|
|
7303
|
+
* @brief 获取主路系统音频流 ID。
|
|
7304
|
+
* @order 86
|
|
7305
|
+
*
|
|
7306
|
+
*/
|
|
7307
|
+
/** {en}
|
|
7308
|
+
* @detail api
|
|
7309
|
+
* @brief Gets the ID of the primary system audio stream.
|
|
7310
|
+
* @order 86
|
|
7311
|
+
*
|
|
7312
|
+
*/
|
|
7313
|
+
VeLiveMixerManager_1.prototype.getOriginSystemAudioStream = function () {
|
|
7314
|
+
throw new Error('not implement');
|
|
7315
|
+
};
|
|
7316
|
+
/** {zh}
|
|
7317
|
+
* @detail api
|
|
7318
|
+
* @brief 发送指定混流 ID 的自定义视频帧数据。
|
|
7319
|
+
* @order 87
|
|
7320
|
+
* @param frame 自定义的视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame) 。
|
|
7321
|
+
* @param streamId 需要混流的视频流 ID。
|
|
7322
|
+
*
|
|
7323
|
+
*/
|
|
7324
|
+
/** {en}
|
|
7325
|
+
* @detail api
|
|
7326
|
+
* @brief Sends a custom video frame with a specified stream ID.
|
|
7327
|
+
* @param frame The custom video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
7328
|
+
* @param streamId The ID of the video stream to mix.
|
|
7329
|
+
* @order 87
|
|
7330
|
+
*
|
|
7331
|
+
*/
|
|
7332
|
+
VeLiveMixerManager_1.prototype.sendCustomVideoFrame = function (frame, streamId) {
|
|
7333
|
+
throw new Error('not implement');
|
|
7334
|
+
};
|
|
7335
|
+
/** {zh}
|
|
7336
|
+
* @detail api
|
|
7337
|
+
* @brief 发送指定混流 ID 的自定义音频帧数据。
|
|
7338
|
+
* @order 88
|
|
7339
|
+
* @param frame 自定义的音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame) 。
|
|
7340
|
+
* @param streamId 混流的音频流 ID。
|
|
7341
|
+
*
|
|
7342
|
+
*/
|
|
7343
|
+
/** {en}
|
|
7344
|
+
* @detail api
|
|
7345
|
+
* @brief Sends a custom audio frame with a specified stream ID.
|
|
7346
|
+
* @param frame The custom audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
7347
|
+
* @param streamId The ID of the audio stream to mix.
|
|
7348
|
+
* @order 88
|
|
7349
|
+
*
|
|
7350
|
+
*/
|
|
7351
|
+
VeLiveMixerManager_1.prototype.sendCustomAudioFrame = function (frame, streamId) {
|
|
7352
|
+
throw new Error('not implement');
|
|
7353
|
+
};
|
|
7354
|
+
/** {zh}
|
|
7355
|
+
* @detail api
|
|
7356
|
+
* @brief 更新音视频混流的布局。
|
|
7357
|
+
* @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](147521#VeLiveStreamMixDescription)。
|
|
7358
|
+
*
|
|
7359
|
+
*/
|
|
7360
|
+
/** {en}
|
|
7361
|
+
* @detail api
|
|
7362
|
+
* @brief Updates the configurations for audio and video mixing.
|
|
7363
|
+
* @param mixDescription The updated configurations for audio and video mixing. See VeLiveStreamMixDescription {@link #VeLiveStreamMixDescription} for details.
|
|
7364
|
+
*
|
|
7365
|
+
*/
|
|
7366
|
+
VeLiveMixerManager_1.prototype.updateStreamMixDescription = function (mixDescription) {
|
|
7367
|
+
throw new Error('not implement');
|
|
7368
|
+
};
|
|
7369
|
+
/** {zh}
|
|
7370
|
+
* @detail api
|
|
7371
|
+
* @brief 从混流器中移除一路非主路的视频流。
|
|
7372
|
+
* @order 80
|
|
7373
|
+
* @param streamId 需要移除的非主路视频流 ID。
|
|
7374
|
+
*
|
|
7375
|
+
*/
|
|
7376
|
+
/** {en}
|
|
7377
|
+
* @detail api
|
|
7378
|
+
* @brief Removes a non-primary video stream from the mixer.
|
|
7379
|
+
* @param streamId The ID of the video stream to remove.
|
|
7380
|
+
* @order 80
|
|
7381
|
+
*
|
|
7382
|
+
*/
|
|
7383
|
+
VeLiveMixerManager_1.prototype.removeVideoStream = function (streamId) {
|
|
7384
|
+
throw new Error('not implement');
|
|
7385
|
+
};
|
|
7386
|
+
/** {zh}
|
|
7387
|
+
* @detail api
|
|
7388
|
+
* @brief 从混流器中移除一路非主路的音频流。
|
|
7389
|
+
* @order 82
|
|
7390
|
+
* @param streamId 需要移除的非主路音频流 ID。
|
|
7391
|
+
*
|
|
7392
|
+
*/
|
|
7393
|
+
/** {en}
|
|
7394
|
+
* @detail api
|
|
7395
|
+
* @brief Removes a non-primary audio stream from the mixer.
|
|
7396
|
+
* @param streamId The ID of the audio stream to remove.
|
|
7397
|
+
* @order 82
|
|
7398
|
+
*
|
|
7399
|
+
*/
|
|
7400
|
+
VeLiveMixerManager_1.prototype.removeAudioStream = function (streamId) {
|
|
7401
|
+
throw new Error('not implement');
|
|
7402
|
+
};
|
|
7403
|
+
return VeLiveMixerManager_1;
|
|
7404
|
+
}());
|
|
7405
|
+
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
7406
|
+
(function () {
|
|
7407
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
7408
|
+
_addVideoStream_decorators = [NativeMethodSync()];
|
|
7409
|
+
_addAudioStream_decorators = [NativeMethodSync()];
|
|
7410
|
+
_addAudioStream_type_decorators = [NativeMethodSync('addAudioStream')];
|
|
7411
|
+
_getOriginVideoStream_decorators = [NativeMethodSync()];
|
|
7412
|
+
_getOriginAudioStream_decorators = [NativeMethodSync()];
|
|
7413
|
+
_getOriginScreenStream_decorators = [NativeMethodSync()];
|
|
7414
|
+
_getOriginSystemAudioStream_decorators = [NativeMethodSync()];
|
|
7415
|
+
_sendCustomVideoFrame_decorators = [NativeMethodSync()];
|
|
7416
|
+
_sendCustomAudioFrame_decorators = [NativeMethodSync()];
|
|
7417
|
+
_updateStreamMixDescription_decorators = [NativeMethodSync()];
|
|
7418
|
+
_removeVideoStream_decorators = [NativeMethodSync()];
|
|
7419
|
+
_removeAudioStream_decorators = [NativeMethodSync()];
|
|
7420
|
+
__esDecorate(_classThis, null, _addVideoStream_decorators, { kind: "method", name: "addVideoStream", static: false, private: false, access: { has: function (obj) { return "addVideoStream" in obj; }, get: function (obj) { return obj.addVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7421
|
+
__esDecorate(_classThis, null, _addAudioStream_decorators, { kind: "method", name: "addAudioStream", static: false, private: false, access: { has: function (obj) { return "addAudioStream" in obj; }, get: function (obj) { return obj.addAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7422
|
+
__esDecorate(_classThis, null, _addAudioStream_type_decorators, { kind: "method", name: "addAudioStream_type", static: false, private: false, access: { has: function (obj) { return "addAudioStream_type" in obj; }, get: function (obj) { return obj.addAudioStream_type; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7423
|
+
__esDecorate(_classThis, null, _getOriginVideoStream_decorators, { kind: "method", name: "getOriginVideoStream", static: false, private: false, access: { has: function (obj) { return "getOriginVideoStream" in obj; }, get: function (obj) { return obj.getOriginVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7424
|
+
__esDecorate(_classThis, null, _getOriginAudioStream_decorators, { kind: "method", name: "getOriginAudioStream", static: false, private: false, access: { has: function (obj) { return "getOriginAudioStream" in obj; }, get: function (obj) { return obj.getOriginAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7425
|
+
__esDecorate(_classThis, null, _getOriginScreenStream_decorators, { kind: "method", name: "getOriginScreenStream", static: false, private: false, access: { has: function (obj) { return "getOriginScreenStream" in obj; }, get: function (obj) { return obj.getOriginScreenStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7426
|
+
__esDecorate(_classThis, null, _getOriginSystemAudioStream_decorators, { kind: "method", name: "getOriginSystemAudioStream", static: false, private: false, access: { has: function (obj) { return "getOriginSystemAudioStream" in obj; }, get: function (obj) { return obj.getOriginSystemAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7427
|
+
__esDecorate(_classThis, null, _sendCustomVideoFrame_decorators, { kind: "method", name: "sendCustomVideoFrame", static: false, private: false, access: { has: function (obj) { return "sendCustomVideoFrame" in obj; }, get: function (obj) { return obj.sendCustomVideoFrame; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7428
|
+
__esDecorate(_classThis, null, _sendCustomAudioFrame_decorators, { kind: "method", name: "sendCustomAudioFrame", static: false, private: false, access: { has: function (obj) { return "sendCustomAudioFrame" in obj; }, get: function (obj) { return obj.sendCustomAudioFrame; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7429
|
+
__esDecorate(_classThis, null, _updateStreamMixDescription_decorators, { kind: "method", name: "updateStreamMixDescription", static: false, private: false, access: { has: function (obj) { return "updateStreamMixDescription" in obj; }, get: function (obj) { return obj.updateStreamMixDescription; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7430
|
+
__esDecorate(_classThis, null, _removeVideoStream_decorators, { kind: "method", name: "removeVideoStream", static: false, private: false, access: { has: function (obj) { return "removeVideoStream" in obj; }, get: function (obj) { return obj.removeVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7431
|
+
__esDecorate(_classThis, null, _removeAudioStream_decorators, { kind: "method", name: "removeAudioStream", static: false, private: false, access: { has: function (obj) { return "removeAudioStream" in obj; }, get: function (obj) { return obj.removeAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
7432
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
7433
|
+
_classThis = _classDescriptor.value;
|
|
7434
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
7435
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
7436
|
+
})();
|
|
7437
|
+
return _classThis;
|
|
7438
|
+
}();
|
|
7166
7439
|
var VeLiveMediaPlayer$2 = function () {
|
|
7167
7440
|
var _classDecorators = [NativeClass('com.ss.avframework.live.VeLiveMediaPlayer')];
|
|
7168
7441
|
var _classDescriptor;
|
|
@@ -9197,92 +9470,255 @@ var VeLiveAudioDevice$1 = function () {
|
|
|
9197
9470
|
})();
|
|
9198
9471
|
return _classThis;
|
|
9199
9472
|
}();
|
|
9200
|
-
var
|
|
9201
|
-
var _classDecorators = [NativeClass('
|
|
9473
|
+
var VeLiveMixerManager$1 = function () {
|
|
9474
|
+
var _classDecorators = [NativeClass('VeLiveMixerManager')];
|
|
9202
9475
|
var _classDescriptor;
|
|
9203
9476
|
var _classExtraInitializers = [];
|
|
9204
9477
|
var _classThis;
|
|
9205
|
-
var _staticExtraInitializers = [];
|
|
9206
9478
|
var _instanceExtraInitializers = [];
|
|
9207
|
-
var
|
|
9208
|
-
var
|
|
9209
|
-
var
|
|
9479
|
+
var _addVideoStream_decorators;
|
|
9480
|
+
var _removeVideoStream_decorators;
|
|
9481
|
+
var _addAudioStream_decorators;
|
|
9482
|
+
var _removeAudioStream_decorators;
|
|
9483
|
+
var _setAudioStream_decorators;
|
|
9484
|
+
var _getOriginVideoStream_decorators;
|
|
9485
|
+
var _getOriginAudioStream_decorators;
|
|
9486
|
+
var _getAppAudioStream_decorators;
|
|
9487
|
+
var _sendCustomVideoFrame_decorators;
|
|
9488
|
+
var _sendCustomAudioFrame_decorators;
|
|
9489
|
+
var _updateStreamMixDescription_decorators;
|
|
9210
9490
|
var _init_decorators;
|
|
9211
|
-
var _initWithConfig_decorators;
|
|
9212
|
-
var _destroy_decorators;
|
|
9213
|
-
var _setObserver_decorators;
|
|
9214
|
-
var _setStatisticsObserver_decorators;
|
|
9215
|
-
var _addVideoFrameListener_decorators;
|
|
9216
|
-
var _removeVideoFrameListener_decorators;
|
|
9217
|
-
var _addAudioFrameListener_decorators;
|
|
9218
|
-
var _removeAudioFrameListener_decorators;
|
|
9219
|
-
var _setScreenCaptureObserver_decorators;
|
|
9220
|
-
var _setRenderView_decorators;
|
|
9221
|
-
var _setRenderFillMode_decorators;
|
|
9222
|
-
var _setVideoMirror_decorators;
|
|
9223
|
-
var _startPush_decorators;
|
|
9224
|
-
var _startPushWithUrls_decorators;
|
|
9225
|
-
var _stopPush_decorators;
|
|
9226
|
-
var _isPushing_decorators;
|
|
9227
|
-
var _startVideoCapture_decorators;
|
|
9228
|
-
var _stopVideoCapture_decorators;
|
|
9229
|
-
var _switchVideoCapture_decorators;
|
|
9230
|
-
var _startAudioCapture_decorators;
|
|
9231
|
-
var _stopAudioCapture_decorators;
|
|
9232
|
-
var _switchAudioCapture_decorators;
|
|
9233
|
-
var _getCurrentVideoCaptureType_decorators;
|
|
9234
|
-
var _getCurrentAudioCaptureType_decorators;
|
|
9235
|
-
var _updateCustomImage_decorators;
|
|
9236
|
-
var _setMute_decorators;
|
|
9237
|
-
var _isMute_decorators;
|
|
9238
|
-
var _setVideoEncoderConfiguration_decorators;
|
|
9239
|
-
var _setAudioEncoderConfiguration_decorators;
|
|
9240
|
-
var _startFileRecording_decorators;
|
|
9241
|
-
var _stopFileRecording_decorators;
|
|
9242
|
-
var _getCameraDevice_decorators;
|
|
9243
|
-
var _getAudioDevice_decorators;
|
|
9244
|
-
var _getVideoEffectManager_decorators;
|
|
9245
|
-
var _createPlayer_decorators;
|
|
9246
|
-
var _setVideoFrameFilter_decorators;
|
|
9247
|
-
var _setAudioFrameFilter_decorators;
|
|
9248
|
-
var _setOrientation_decorators;
|
|
9249
|
-
var _setWatermark_decorators;
|
|
9250
|
-
var _snapshot_decorators;
|
|
9251
|
-
var _sendSeiMessage_decorators;
|
|
9252
|
-
var _pushExternalVideoFrame_decorators;
|
|
9253
|
-
var _pushExternalVideoEncodeFrame_decorators;
|
|
9254
|
-
var _pushExternalAudioFrame_decorators;
|
|
9255
|
-
var _setProperty_decorators;
|
|
9256
|
-
var _requestIDRFrame_decorators;
|
|
9257
9491
|
_classThis = /** @class */ (function () {
|
|
9258
|
-
function
|
|
9492
|
+
function VeLiveMixerManager_1() {
|
|
9259
9493
|
__runInitializers(this, _instanceExtraInitializers);
|
|
9260
9494
|
}
|
|
9261
9495
|
/** {zh}
|
|
9262
9496
|
* @detail api
|
|
9263
|
-
* @brief
|
|
9264
|
-
* @
|
|
9265
|
-
*
|
|
9497
|
+
* @brief 添加一路需要混流的视频流到混流器中。
|
|
9498
|
+
* @return <br>
|
|
9499
|
+
* 视频流 ID。
|
|
9500
|
+
* @order 65
|
|
9266
9501
|
*/
|
|
9267
|
-
|
|
9502
|
+
VeLiveMixerManager_1.prototype.addVideoStream = function () {
|
|
9268
9503
|
throw new Error('not implement');
|
|
9269
9504
|
};
|
|
9270
9505
|
/** {zh}
|
|
9271
9506
|
* @detail api
|
|
9272
|
-
* @
|
|
9273
|
-
* @
|
|
9507
|
+
* @brief 从混流器中移除一路非主路的视频流。
|
|
9508
|
+
* @order 66
|
|
9509
|
+
* @param streamId 需要移除的非主路视频流 ID。
|
|
9274
9510
|
*/
|
|
9275
|
-
|
|
9511
|
+
VeLiveMixerManager_1.prototype.removeVideoStream = function (streamId) {
|
|
9276
9512
|
throw new Error('not implement');
|
|
9277
9513
|
};
|
|
9278
9514
|
/** {zh}
|
|
9279
9515
|
* @detail api
|
|
9280
|
-
* @brief
|
|
9516
|
+
* @brief 添加一路音频流到混流器中,并指定混流类型。
|
|
9517
|
+
* @param type 混流类型,详情请参见 VeLiveAudioMixType{@link #VeLiveAudioMixType}
|
|
9518
|
+
* @return <br>
|
|
9519
|
+
* 音频流 ID。
|
|
9520
|
+
* @order 68
|
|
9281
9521
|
*/
|
|
9282
|
-
|
|
9283
|
-
throw new Error('not implement');
|
|
9284
|
-
};
|
|
9285
|
-
|
|
9522
|
+
VeLiveMixerManager_1.prototype.addAudioStream = function (type) {
|
|
9523
|
+
throw new Error('not implement');
|
|
9524
|
+
};
|
|
9525
|
+
/** {zh}
|
|
9526
|
+
* @detail api
|
|
9527
|
+
* @brief 从混流器中移除一路非主路的音频流。
|
|
9528
|
+
* @order 69
|
|
9529
|
+
* @param streamId 需要移除的非主路音频流 ID。
|
|
9530
|
+
*/
|
|
9531
|
+
VeLiveMixerManager_1.prototype.removeAudioStream = function (streamId) {
|
|
9532
|
+
throw new Error('not implement');
|
|
9533
|
+
};
|
|
9534
|
+
/** {zh}
|
|
9535
|
+
* @detail api
|
|
9536
|
+
* @brief 设置指定混流音频的音量。当你将 VeLiveAudioMixType{@link #VeLiveAudioMixType} 设置为 `VeLiveAudioMixPlayAndPush` 时,该方法同时控制该路音频在拉流端和本地的播放音量。
|
|
9537
|
+
* @order 70
|
|
9538
|
+
* @param streamId 非主路音频流 ID。
|
|
9539
|
+
* @param volume 音量大小,范围为 [0.0,4.0]。
|
|
9540
|
+
*/
|
|
9541
|
+
VeLiveMixerManager_1.prototype.setAudioStream = function (streamId, volume) {
|
|
9542
|
+
throw new Error('not implement');
|
|
9543
|
+
};
|
|
9544
|
+
/** {zh}
|
|
9545
|
+
* @detail api
|
|
9546
|
+
* @brief 获取主路视频流 ID。
|
|
9547
|
+
* @order 71
|
|
9548
|
+
*/
|
|
9549
|
+
VeLiveMixerManager_1.prototype.getOriginVideoStream = function () {
|
|
9550
|
+
throw new Error('not implement');
|
|
9551
|
+
};
|
|
9552
|
+
/** {zh}
|
|
9553
|
+
* @detail api
|
|
9554
|
+
* @brief 获取主路音频流 ID。
|
|
9555
|
+
* @order 72
|
|
9556
|
+
*/
|
|
9557
|
+
VeLiveMixerManager_1.prototype.getOriginAudioStream = function () {
|
|
9558
|
+
throw new Error('not implement');
|
|
9559
|
+
};
|
|
9560
|
+
/** {zh}
|
|
9561
|
+
* @detail api
|
|
9562
|
+
* @brief 获取屏幕推流App音频流 ID。
|
|
9563
|
+
*/
|
|
9564
|
+
VeLiveMixerManager_1.prototype.getAppAudioStream = function () {
|
|
9565
|
+
throw new Error('not implement');
|
|
9566
|
+
};
|
|
9567
|
+
/** {zh}
|
|
9568
|
+
* @detail api
|
|
9569
|
+
* @order 73
|
|
9570
|
+
* @brief 发送指定混流 ID 的自定义视频帧数据。
|
|
9571
|
+
* @param frame 自定义的视频帧,详情请参见 [VeLiveVideoFrame](155321#VeLiveVideoFrame)。
|
|
9572
|
+
* @param streamId 需要混流的视频流 ID。
|
|
9573
|
+
*/
|
|
9574
|
+
VeLiveMixerManager_1.prototype.sendCustomVideoFrame = function (frame, streamId) {
|
|
9575
|
+
throw new Error('not implement');
|
|
9576
|
+
};
|
|
9577
|
+
/** {zh}
|
|
9578
|
+
* @detail api
|
|
9579
|
+
* @order 74
|
|
9580
|
+
* @brief 发送指定混流 ID 的自定义音频帧数据。
|
|
9581
|
+
* @param frame 自定义的音频帧,详情请参见 [VeLiveAudioFrame](155321#VeLiveAudioFrame)。
|
|
9582
|
+
* @param streamId 混流的音频流 ID。
|
|
9583
|
+
*/
|
|
9584
|
+
VeLiveMixerManager_1.prototype.sendCustomAudioFrame = function (frame, streamId) {
|
|
9585
|
+
throw new Error('not implement');
|
|
9586
|
+
};
|
|
9587
|
+
/** {zh}
|
|
9588
|
+
* @detail api
|
|
9589
|
+
* @brief 更新音视频混流的布局。
|
|
9590
|
+
* @order 75
|
|
9591
|
+
* @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](155321#VeLiveStreamMixDescription)。
|
|
9592
|
+
*/
|
|
9593
|
+
VeLiveMixerManager_1.prototype.updateStreamMixDescription = function (mixDescription) {
|
|
9594
|
+
throw new Error('not implement');
|
|
9595
|
+
};
|
|
9596
|
+
VeLiveMixerManager_1.prototype.init = function () {
|
|
9597
|
+
throw new Error('not implement');
|
|
9598
|
+
};
|
|
9599
|
+
return VeLiveMixerManager_1;
|
|
9600
|
+
}());
|
|
9601
|
+
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
9602
|
+
(function () {
|
|
9603
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9604
|
+
_addVideoStream_decorators = [NativeMethodSync('addVideoStream')];
|
|
9605
|
+
_removeVideoStream_decorators = [NativeMethodSync('removeVideoStream:')];
|
|
9606
|
+
_addAudioStream_decorators = [NativeMethodSync('addAudioStream:')];
|
|
9607
|
+
_removeAudioStream_decorators = [NativeMethodSync('removeAudioStream:')];
|
|
9608
|
+
_setAudioStream_decorators = [NativeMethodSync('setAudioStream:volume:')];
|
|
9609
|
+
_getOriginVideoStream_decorators = [NativeMethodSync('getOriginVideoStream')];
|
|
9610
|
+
_getOriginAudioStream_decorators = [NativeMethodSync('getOriginAudioStream')];
|
|
9611
|
+
_getAppAudioStream_decorators = [NativeMethodSync('getAppAudioStream')];
|
|
9612
|
+
_sendCustomVideoFrame_decorators = [NativeMethodSync('sendCustomVideoFrame:streamId:')];
|
|
9613
|
+
_sendCustomAudioFrame_decorators = [NativeMethodSync('sendCustomAudioFrame:streamId:')];
|
|
9614
|
+
_updateStreamMixDescription_decorators = [NativeMethodSync('updateStreamMixDescription:')];
|
|
9615
|
+
_init_decorators = [NativeMethodSync('init')];
|
|
9616
|
+
__esDecorate(_classThis, null, _addVideoStream_decorators, { kind: "method", name: "addVideoStream", static: false, private: false, access: { has: function (obj) { return "addVideoStream" in obj; }, get: function (obj) { return obj.addVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9617
|
+
__esDecorate(_classThis, null, _removeVideoStream_decorators, { kind: "method", name: "removeVideoStream", static: false, private: false, access: { has: function (obj) { return "removeVideoStream" in obj; }, get: function (obj) { return obj.removeVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9618
|
+
__esDecorate(_classThis, null, _addAudioStream_decorators, { kind: "method", name: "addAudioStream", static: false, private: false, access: { has: function (obj) { return "addAudioStream" in obj; }, get: function (obj) { return obj.addAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9619
|
+
__esDecorate(_classThis, null, _removeAudioStream_decorators, { kind: "method", name: "removeAudioStream", static: false, private: false, access: { has: function (obj) { return "removeAudioStream" in obj; }, get: function (obj) { return obj.removeAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9620
|
+
__esDecorate(_classThis, null, _setAudioStream_decorators, { kind: "method", name: "setAudioStream", static: false, private: false, access: { has: function (obj) { return "setAudioStream" in obj; }, get: function (obj) { return obj.setAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9621
|
+
__esDecorate(_classThis, null, _getOriginVideoStream_decorators, { kind: "method", name: "getOriginVideoStream", static: false, private: false, access: { has: function (obj) { return "getOriginVideoStream" in obj; }, get: function (obj) { return obj.getOriginVideoStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9622
|
+
__esDecorate(_classThis, null, _getOriginAudioStream_decorators, { kind: "method", name: "getOriginAudioStream", static: false, private: false, access: { has: function (obj) { return "getOriginAudioStream" in obj; }, get: function (obj) { return obj.getOriginAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9623
|
+
__esDecorate(_classThis, null, _getAppAudioStream_decorators, { kind: "method", name: "getAppAudioStream", static: false, private: false, access: { has: function (obj) { return "getAppAudioStream" in obj; }, get: function (obj) { return obj.getAppAudioStream; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9624
|
+
__esDecorate(_classThis, null, _sendCustomVideoFrame_decorators, { kind: "method", name: "sendCustomVideoFrame", static: false, private: false, access: { has: function (obj) { return "sendCustomVideoFrame" in obj; }, get: function (obj) { return obj.sendCustomVideoFrame; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9625
|
+
__esDecorate(_classThis, null, _sendCustomAudioFrame_decorators, { kind: "method", name: "sendCustomAudioFrame", static: false, private: false, access: { has: function (obj) { return "sendCustomAudioFrame" in obj; }, get: function (obj) { return obj.sendCustomAudioFrame; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9626
|
+
__esDecorate(_classThis, null, _updateStreamMixDescription_decorators, { kind: "method", name: "updateStreamMixDescription", static: false, private: false, access: { has: function (obj) { return "updateStreamMixDescription" in obj; }, get: function (obj) { return obj.updateStreamMixDescription; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9627
|
+
__esDecorate(_classThis, null, _init_decorators, { kind: "method", name: "init", static: false, private: false, access: { has: function (obj) { return "init" in obj; }, get: function (obj) { return obj.init; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9628
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
9629
|
+
_classThis = _classDescriptor.value;
|
|
9630
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
9631
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
9632
|
+
})();
|
|
9633
|
+
return _classThis;
|
|
9634
|
+
}();
|
|
9635
|
+
var VeLivePusher$1 = function () {
|
|
9636
|
+
var _classDecorators = [NativeClass('VeLivePusher')];
|
|
9637
|
+
var _classDescriptor;
|
|
9638
|
+
var _classExtraInitializers = [];
|
|
9639
|
+
var _classThis;
|
|
9640
|
+
var _staticExtraInitializers = [];
|
|
9641
|
+
var _instanceExtraInitializers = [];
|
|
9642
|
+
var _static_setLogLevel_decorators;
|
|
9643
|
+
var _startScreenCapture_decorators;
|
|
9644
|
+
var _stopScreenCapture_decorators;
|
|
9645
|
+
var _init_decorators;
|
|
9646
|
+
var _initWithConfig_decorators;
|
|
9647
|
+
var _destroy_decorators;
|
|
9648
|
+
var _setObserver_decorators;
|
|
9649
|
+
var _setStatisticsObserver_decorators;
|
|
9650
|
+
var _addVideoFrameListener_decorators;
|
|
9651
|
+
var _removeVideoFrameListener_decorators;
|
|
9652
|
+
var _addAudioFrameListener_decorators;
|
|
9653
|
+
var _removeAudioFrameListener_decorators;
|
|
9654
|
+
var _setScreenCaptureObserver_decorators;
|
|
9655
|
+
var _setRenderView_decorators;
|
|
9656
|
+
var _setRenderFillMode_decorators;
|
|
9657
|
+
var _setVideoMirror_decorators;
|
|
9658
|
+
var _startPush_decorators;
|
|
9659
|
+
var _startPushWithUrls_decorators;
|
|
9660
|
+
var _stopPush_decorators;
|
|
9661
|
+
var _isPushing_decorators;
|
|
9662
|
+
var _startVideoCapture_decorators;
|
|
9663
|
+
var _stopVideoCapture_decorators;
|
|
9664
|
+
var _switchVideoCapture_decorators;
|
|
9665
|
+
var _startAudioCapture_decorators;
|
|
9666
|
+
var _stopAudioCapture_decorators;
|
|
9667
|
+
var _switchAudioCapture_decorators;
|
|
9668
|
+
var _getCurrentVideoCaptureType_decorators;
|
|
9669
|
+
var _getCurrentAudioCaptureType_decorators;
|
|
9670
|
+
var _updateCustomImage_decorators;
|
|
9671
|
+
var _setMute_decorators;
|
|
9672
|
+
var _isMute_decorators;
|
|
9673
|
+
var _setVideoEncoderConfiguration_decorators;
|
|
9674
|
+
var _setAudioEncoderConfiguration_decorators;
|
|
9675
|
+
var _startFileRecording_decorators;
|
|
9676
|
+
var _stopFileRecording_decorators;
|
|
9677
|
+
var _getCameraDevice_decorators;
|
|
9678
|
+
var _getAudioDevice_decorators;
|
|
9679
|
+
var _getMixerManager_decorators;
|
|
9680
|
+
var _getVideoEffectManager_decorators;
|
|
9681
|
+
var _createPlayer_decorators;
|
|
9682
|
+
var _setVideoFrameFilter_decorators;
|
|
9683
|
+
var _setAudioFrameFilter_decorators;
|
|
9684
|
+
var _setOrientation_decorators;
|
|
9685
|
+
var _setWatermark_decorators;
|
|
9686
|
+
var _snapshot_decorators;
|
|
9687
|
+
var _sendSeiMessage_decorators;
|
|
9688
|
+
var _pushExternalVideoFrame_decorators;
|
|
9689
|
+
var _pushExternalVideoEncodeFrame_decorators;
|
|
9690
|
+
var _pushExternalAudioFrame_decorators;
|
|
9691
|
+
var _setProperty_decorators;
|
|
9692
|
+
var _requestIDRFrame_decorators;
|
|
9693
|
+
_classThis = /** @class */ (function () {
|
|
9694
|
+
function VeLivePusher_1() {
|
|
9695
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
9696
|
+
}
|
|
9697
|
+
/** {zh}
|
|
9698
|
+
* @detail api
|
|
9699
|
+
* @brief 设置输出到控制台的日志等级。
|
|
9700
|
+
* @order 48
|
|
9701
|
+
* @param level 输出的日志级别,默认值为 `VeLivePusherLogLevelNone`,表示关闭日志。级别详情请参见 [VeLivePusherLogLevel](155321#VeLivePusherLogLevel)。
|
|
9702
|
+
*/
|
|
9703
|
+
VeLivePusher_1.setLogLevel = function (level) {
|
|
9704
|
+
throw new Error('not implement');
|
|
9705
|
+
};
|
|
9706
|
+
/** {zh}
|
|
9707
|
+
* @detail api
|
|
9708
|
+
* @param applicationGroupIdentifier iOS app group 标识符。
|
|
9709
|
+
* @brief 开启屏幕采集。
|
|
9710
|
+
*/
|
|
9711
|
+
VeLivePusher_1.prototype.startScreenCapture = function (applicationGroupIdentifier) {
|
|
9712
|
+
throw new Error('not implement');
|
|
9713
|
+
};
|
|
9714
|
+
/** {zh}
|
|
9715
|
+
* @detail api
|
|
9716
|
+
* @brief 关闭屏幕采集。
|
|
9717
|
+
*/
|
|
9718
|
+
VeLivePusher_1.prototype.stopScreenCapture = function () {
|
|
9719
|
+
throw new Error('not implement');
|
|
9720
|
+
};
|
|
9721
|
+
VeLivePusher_1.prototype.init = function () {
|
|
9286
9722
|
throw new Error('not implement');
|
|
9287
9723
|
};
|
|
9288
9724
|
/** {zh}
|
|
@@ -9649,6 +10085,16 @@ var VeLivePusher$1 = function () {
|
|
|
9649
10085
|
VeLivePusher_1.prototype.getAudioDevice = function () {
|
|
9650
10086
|
throw new Error('not implement');
|
|
9651
10087
|
};
|
|
10088
|
+
/** {zh}
|
|
10089
|
+
* @detail api
|
|
10090
|
+
* @brief 获取混流管理对象。
|
|
10091
|
+
* @return <br>
|
|
10092
|
+
* 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
|
|
10093
|
+
* @order 31
|
|
10094
|
+
*/
|
|
10095
|
+
VeLivePusher_1.prototype.getMixerManager = function () {
|
|
10096
|
+
throw new Error('not implement');
|
|
10097
|
+
};
|
|
9652
10098
|
/** {zh}
|
|
9653
10099
|
* @detail api
|
|
9654
10100
|
* @brief 获取视频特效管理对象 `VeLiveVideoEffectManager`。通过视频特效管理,您可以使用以下功能。
|
|
@@ -9853,6 +10299,7 @@ var VeLivePusher$1 = function () {
|
|
|
9853
10299
|
_stopFileRecording_decorators = [NativeMethodSync('stopFileRecording')];
|
|
9854
10300
|
_getCameraDevice_decorators = [ReturnClass(function () { return VeLiveCameraDevice$1; }), NativeMethodSync('getCameraDevice')];
|
|
9855
10301
|
_getAudioDevice_decorators = [ReturnClass(function () { return VeLiveAudioDevice$1; }), NativeMethodSync('getAudioDevice')];
|
|
10302
|
+
_getMixerManager_decorators = [ReturnClass(function () { return VeLiveMixerManager$1; }), NativeMethodSync('getMixerManager')];
|
|
9856
10303
|
_getVideoEffectManager_decorators = [ReturnClass(function () { return VeLiveVideoEffectManager$1; }), NativeMethodSync('getVideoEffectManager')];
|
|
9857
10304
|
_createPlayer_decorators = [ReturnClass(function () { return VeLiveMediaPlayer$1; }), NativeMethodSync('createPlayer')];
|
|
9858
10305
|
_setVideoFrameFilter_decorators = [NativeMethodSync('setVideoFrameFilter:')];
|
|
@@ -9903,6 +10350,7 @@ var VeLivePusher$1 = function () {
|
|
|
9903
10350
|
__esDecorate(_classThis, null, _stopFileRecording_decorators, { kind: "method", name: "stopFileRecording", static: false, private: false, access: { has: function (obj) { return "stopFileRecording" in obj; }, get: function (obj) { return obj.stopFileRecording; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9904
10351
|
__esDecorate(_classThis, null, _getCameraDevice_decorators, { kind: "method", name: "getCameraDevice", static: false, private: false, access: { has: function (obj) { return "getCameraDevice" in obj; }, get: function (obj) { return obj.getCameraDevice; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9905
10352
|
__esDecorate(_classThis, null, _getAudioDevice_decorators, { kind: "method", name: "getAudioDevice", static: false, private: false, access: { has: function (obj) { return "getAudioDevice" in obj; }, get: function (obj) { return obj.getAudioDevice; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
10353
|
+
__esDecorate(_classThis, null, _getMixerManager_decorators, { kind: "method", name: "getMixerManager", static: false, private: false, access: { has: function (obj) { return "getMixerManager" in obj; }, get: function (obj) { return obj.getMixerManager; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9906
10354
|
__esDecorate(_classThis, null, _getVideoEffectManager_decorators, { kind: "method", name: "getVideoEffectManager", static: false, private: false, access: { has: function (obj) { return "getVideoEffectManager" in obj; }, get: function (obj) { return obj.getVideoEffectManager; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9907
10355
|
__esDecorate(_classThis, null, _createPlayer_decorators, { kind: "method", name: "createPlayer", static: false, private: false, access: { has: function (obj) { return "createPlayer" in obj; }, get: function (obj) { return obj.createPlayer; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
9908
10356
|
__esDecorate(_classThis, null, _setVideoFrameFilter_decorators, { kind: "method", name: "setVideoFrameFilter", static: false, private: false, access: { has: function (obj) { return "setVideoFrameFilter" in obj; }, get: function (obj) { return obj.setVideoFrameFilter; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
@@ -19024,6 +19472,37 @@ var VeLivePusher = function () {
|
|
|
19024
19472
|
throw new Error('Not Support Platform ' + $os);
|
|
19025
19473
|
}
|
|
19026
19474
|
};
|
|
19475
|
+
/** {zh}
|
|
19476
|
+
* @detail api
|
|
19477
|
+
* @brief 获取混流管理对象。
|
|
19478
|
+
* @return <br>
|
|
19479
|
+
* 混流管理对象 VeLiveMixerManager{@link #VeLiveMixerManager}。
|
|
19480
|
+
* @order 51
|
|
19481
|
+
*
|
|
19482
|
+
*/
|
|
19483
|
+
/** {en}
|
|
19484
|
+
* @detail api
|
|
19485
|
+
* @brief Gets the audio and video mixer.
|
|
19486
|
+
* @return <br>
|
|
19487
|
+
* The audio and video mixer. See VeLiveMixerManager {@link #VeLiveMixerManager} for details.
|
|
19488
|
+
* @order 51
|
|
19489
|
+
*
|
|
19490
|
+
*/
|
|
19491
|
+
VeLivePusher_1.prototype.getMixerManager = function () {
|
|
19492
|
+
var _this = this;
|
|
19493
|
+
var a = function () { return packObject(_this._instance.getMixerManager(), VeLiveMixerManager); };
|
|
19494
|
+
var i = function () { return packObject(_this._instance.getMixerManager(), VeLiveMixerManager); };
|
|
19495
|
+
var $os = env.getOS();
|
|
19496
|
+
if ($os === 'android') {
|
|
19497
|
+
return a();
|
|
19498
|
+
}
|
|
19499
|
+
else if ($os === 'ios') {
|
|
19500
|
+
return i();
|
|
19501
|
+
}
|
|
19502
|
+
else {
|
|
19503
|
+
throw new Error('Not Support Platform ' + $os);
|
|
19504
|
+
}
|
|
19505
|
+
};
|
|
19027
19506
|
/** {zh}
|
|
19028
19507
|
* @platform android
|
|
19029
19508
|
* @detail api
|
|
@@ -22301,85 +22780,474 @@ var VeLiveVideoEffectManager = function () {
|
|
|
22301
22780
|
}();
|
|
22302
22781
|
/** {zh}
|
|
22303
22782
|
* @detail api
|
|
22304
|
-
* @brief
|
|
22783
|
+
* @brief 音视频混流器管理对象。支持添加/移除音视频流、发送自定义音视频帧、更新混流布局等。
|
|
22305
22784
|
*/
|
|
22306
|
-
var
|
|
22785
|
+
var VeLiveMixerManager = function () {
|
|
22307
22786
|
var _classDecorators = [PackClass()];
|
|
22308
22787
|
var _classDescriptor;
|
|
22309
22788
|
var _classExtraInitializers = [];
|
|
22310
22789
|
var _classThis;
|
|
22311
22790
|
_classThis = /** @class */ (function () {
|
|
22312
|
-
function
|
|
22791
|
+
function VeLiveMixerManager_1() {
|
|
22313
22792
|
}
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22317
|
-
|
|
22318
|
-
|
|
22319
|
-
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
|
|
22330
|
-
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
|
|
22337
|
-
|
|
22338
|
-
|
|
22339
|
-
|
|
22340
|
-
|
|
22341
|
-
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
|
|
22367
|
-
|
|
22368
|
-
|
|
22369
|
-
|
|
22370
|
-
|
|
22371
|
-
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22793
|
+
VeLiveMixerManager_1.prototype.__init = function () {
|
|
22794
|
+
var args = [];
|
|
22795
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
22796
|
+
args[_i] = arguments[_i];
|
|
22797
|
+
}
|
|
22798
|
+
this._instance = this.__new_instance.apply(this, args);
|
|
22799
|
+
};
|
|
22800
|
+
VeLiveMixerManager_1.prototype.__new_instance = function () {
|
|
22801
|
+
var args = [];
|
|
22802
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
22803
|
+
args[_i] = arguments[_i];
|
|
22804
|
+
}
|
|
22805
|
+
var i = function () {
|
|
22806
|
+
var _a;
|
|
22807
|
+
return new ((_a = VeLiveMixerManager$1).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
22808
|
+
};
|
|
22809
|
+
var a = function () {
|
|
22810
|
+
var _a;
|
|
22811
|
+
return new ((_a = VeLiveMixerManager$2).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
22812
|
+
};
|
|
22813
|
+
var $os = env.getOS();
|
|
22814
|
+
if ($os === 'android') {
|
|
22815
|
+
return a();
|
|
22816
|
+
}
|
|
22817
|
+
else if ($os === 'ios') {
|
|
22818
|
+
return i();
|
|
22819
|
+
}
|
|
22820
|
+
else {
|
|
22821
|
+
throw new Error('Not Support Platform ' + $os);
|
|
22822
|
+
}
|
|
22823
|
+
};
|
|
22824
|
+
/** {zh}
|
|
22825
|
+
* @detail api
|
|
22826
|
+
* @brief 添加一路需要混流的视频流到混流器中。
|
|
22827
|
+
* @return <br>
|
|
22828
|
+
* 视频流 ID。
|
|
22829
|
+
* @order 79
|
|
22830
|
+
*
|
|
22831
|
+
*/
|
|
22832
|
+
/** {en}
|
|
22833
|
+
* @detail api
|
|
22834
|
+
* @brief Adds a video stream to the mixer.
|
|
22835
|
+
* @return <br>
|
|
22836
|
+
* The video stream ID.
|
|
22837
|
+
* @order 79
|
|
22838
|
+
*
|
|
22839
|
+
*/
|
|
22840
|
+
VeLiveMixerManager_1.prototype.addVideoStream = function () {
|
|
22841
|
+
var _this = this;
|
|
22842
|
+
var a = function () { return Number(_this._instance.addVideoStream()); };
|
|
22843
|
+
var i = function () { return Number(_this._instance.addVideoStream()); };
|
|
22844
|
+
var $os = env.getOS();
|
|
22845
|
+
if ($os === 'android') {
|
|
22846
|
+
return a();
|
|
22847
|
+
}
|
|
22848
|
+
else if ($os === 'ios') {
|
|
22849
|
+
return i();
|
|
22850
|
+
}
|
|
22851
|
+
else {
|
|
22852
|
+
throw new Error('Not Support Platform ' + $os);
|
|
22853
|
+
}
|
|
22854
|
+
};
|
|
22855
|
+
/** {zh}
|
|
22856
|
+
* @platform android
|
|
22857
|
+
* @detail api
|
|
22858
|
+
* @brief 添加一路音频流到混流器中,并指定混流类型。
|
|
22859
|
+
* @return <br>
|
|
22860
|
+
* 音频流 ID。
|
|
22861
|
+
* @order 81
|
|
22862
|
+
* @param type 混流类型,详情请参见 [VeLiveAudioMixType](147521#VeLiveAudioMixType) 。
|
|
22863
|
+
*
|
|
22864
|
+
*/
|
|
22865
|
+
/** {en}
|
|
22866
|
+
* @platform android
|
|
22867
|
+
* @detail api
|
|
22868
|
+
* @brief Adds an audio stream to the mixer.
|
|
22869
|
+
* @return <br>
|
|
22870
|
+
* The audio stream ID.
|
|
22871
|
+
* @order 80
|
|
22872
|
+
*
|
|
22873
|
+
*/
|
|
22874
|
+
VeLiveMixerManager_1.prototype.android_addAudioStream_type = function (type) {
|
|
22875
|
+
var _this = this;
|
|
22876
|
+
var $ = function () { return Number(_this._instance.addAudioStream_type(type)); };
|
|
22877
|
+
return $();
|
|
22878
|
+
};
|
|
22879
|
+
/** {zh}
|
|
22880
|
+
* @detail api
|
|
22881
|
+
* @brief 获取主路视频流 ID。
|
|
22882
|
+
* @order 83
|
|
22883
|
+
*
|
|
22884
|
+
*/
|
|
22885
|
+
/** {en}
|
|
22886
|
+
* @detail api
|
|
22887
|
+
* @brief Gets the ID of the primary video stream.
|
|
22888
|
+
* @order 83
|
|
22889
|
+
*
|
|
22890
|
+
*/
|
|
22891
|
+
VeLiveMixerManager_1.prototype.getOriginVideoStream = function () {
|
|
22892
|
+
var _this = this;
|
|
22893
|
+
var a = function () { return Number(_this._instance.getOriginVideoStream()); };
|
|
22894
|
+
var i = function () { return Number(_this._instance.getOriginVideoStream()); };
|
|
22895
|
+
var $os = env.getOS();
|
|
22896
|
+
if ($os === 'android') {
|
|
22897
|
+
return a();
|
|
22898
|
+
}
|
|
22899
|
+
else if ($os === 'ios') {
|
|
22900
|
+
return i();
|
|
22901
|
+
}
|
|
22902
|
+
else {
|
|
22903
|
+
throw new Error('Not Support Platform ' + $os);
|
|
22904
|
+
}
|
|
22905
|
+
};
|
|
22906
|
+
/** {zh}
|
|
22907
|
+
* @detail api
|
|
22908
|
+
* @brief 获取主路音频流 ID。
|
|
22909
|
+
* @order 84
|
|
22910
|
+
*
|
|
22911
|
+
*/
|
|
22912
|
+
/** {en}
|
|
22913
|
+
* @detail api
|
|
22914
|
+
* @brief Gets the ID of the primary audio stream.
|
|
22915
|
+
* @order 84
|
|
22916
|
+
*
|
|
22917
|
+
*/
|
|
22918
|
+
VeLiveMixerManager_1.prototype.getOriginAudioStream = function () {
|
|
22919
|
+
var _this = this;
|
|
22920
|
+
var a = function () { return Number(_this._instance.getOriginAudioStream()); };
|
|
22921
|
+
var i = function () { return Number(_this._instance.getOriginAudioStream()); };
|
|
22922
|
+
var $os = env.getOS();
|
|
22923
|
+
if ($os === 'android') {
|
|
22924
|
+
return a();
|
|
22925
|
+
}
|
|
22926
|
+
else if ($os === 'ios') {
|
|
22927
|
+
return i();
|
|
22928
|
+
}
|
|
22929
|
+
else {
|
|
22930
|
+
throw new Error('Not Support Platform ' + $os);
|
|
22931
|
+
}
|
|
22932
|
+
};
|
|
22933
|
+
/** {zh}
|
|
22934
|
+
* @platform android
|
|
22935
|
+
* @detail api
|
|
22936
|
+
* @brief 获取主路屏幕流 ID。
|
|
22937
|
+
* @order 85
|
|
22938
|
+
*
|
|
22939
|
+
*/
|
|
22940
|
+
/** {en}
|
|
22941
|
+
* @platform android
|
|
22942
|
+
* @detail api
|
|
22943
|
+
* @brief Gets the ID of the primary screen stream.
|
|
22944
|
+
* @order 85
|
|
22945
|
+
*
|
|
22946
|
+
*/
|
|
22947
|
+
VeLiveMixerManager_1.prototype.android_getOriginScreenStream = function () {
|
|
22948
|
+
var _this = this;
|
|
22949
|
+
var $ = function () { return Number(_this._instance.getOriginScreenStream()); };
|
|
22950
|
+
return $();
|
|
22951
|
+
};
|
|
22952
|
+
/** {zh}
|
|
22953
|
+
* @platform android
|
|
22954
|
+
* @detail api
|
|
22955
|
+
* @brief 获取主路系统音频流 ID。
|
|
22956
|
+
* @order 86
|
|
22957
|
+
*
|
|
22958
|
+
*/
|
|
22959
|
+
/** {en}
|
|
22960
|
+
* @platform android
|
|
22961
|
+
* @detail api
|
|
22962
|
+
* @brief Gets the ID of the primary system audio stream.
|
|
22963
|
+
* @order 86
|
|
22964
|
+
*
|
|
22965
|
+
*/
|
|
22966
|
+
VeLiveMixerManager_1.prototype.android_getOriginSystemAudioStream = function () {
|
|
22967
|
+
var _this = this;
|
|
22968
|
+
var $ = function () { return Number(_this._instance.getOriginSystemAudioStream()); };
|
|
22969
|
+
return $();
|
|
22970
|
+
};
|
|
22971
|
+
/** {zh}
|
|
22972
|
+
* @detail api
|
|
22973
|
+
* @brief 发送指定混流 ID 的自定义视频帧数据。
|
|
22974
|
+
* @order 87
|
|
22975
|
+
* @param frame 自定义的视频帧,详情请参见 [VeLiveVideoFrame](147517#VeLiveVideoFrame) 。
|
|
22976
|
+
* @param streamId 需要混流的视频流 ID。
|
|
22977
|
+
*
|
|
22978
|
+
*/
|
|
22979
|
+
/** {en}
|
|
22980
|
+
* @detail api
|
|
22981
|
+
* @brief Sends a custom video frame with a specified stream ID.
|
|
22982
|
+
* @param frame The custom video frame. See VeLiveVideoFrame {@link #VeLiveVideoFrame} for details.
|
|
22983
|
+
* @param streamId The ID of the video stream to mix.
|
|
22984
|
+
* @order 87
|
|
22985
|
+
*
|
|
22986
|
+
*/
|
|
22987
|
+
VeLiveMixerManager_1.prototype.sendCustomVideoFrame = function (frame, streamId) {
|
|
22988
|
+
var _this = this;
|
|
22989
|
+
var a = function () { return (_this._instance.sendCustomVideoFrame(unpackObject(frame), streamId),
|
|
22990
|
+
void 0); };
|
|
22991
|
+
var i = function () { return (_this._instance.sendCustomVideoFrame(unpackObject(frame), streamId),
|
|
22992
|
+
void 0); };
|
|
22993
|
+
var $os = env.getOS();
|
|
22994
|
+
if ($os === 'android') {
|
|
22995
|
+
return a();
|
|
22996
|
+
}
|
|
22997
|
+
else if ($os === 'ios') {
|
|
22998
|
+
return i();
|
|
22999
|
+
}
|
|
23000
|
+
else {
|
|
23001
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23002
|
+
}
|
|
23003
|
+
};
|
|
23004
|
+
/** {zh}
|
|
23005
|
+
* @detail api
|
|
23006
|
+
* @brief 发送指定混流 ID 的自定义音频帧数据。
|
|
23007
|
+
* @order 88
|
|
23008
|
+
* @param frame 自定义的音频帧,详情请参见 [VeLiveAudioFrame](147517#VeLiveAudioFrame) 。
|
|
23009
|
+
* @param streamId 混流的音频流 ID。
|
|
23010
|
+
*
|
|
23011
|
+
*/
|
|
23012
|
+
/** {en}
|
|
23013
|
+
* @detail api
|
|
23014
|
+
* @brief Sends a custom audio frame with a specified stream ID.
|
|
23015
|
+
* @param frame The custom audio frame. See VeLiveAudioFrame {@link #VeLiveAudioFrame} for details.
|
|
23016
|
+
* @param streamId The ID of the audio stream to mix.
|
|
23017
|
+
* @order 88
|
|
23018
|
+
*
|
|
23019
|
+
*/
|
|
23020
|
+
VeLiveMixerManager_1.prototype.sendCustomAudioFrame = function (frame, streamId) {
|
|
23021
|
+
var _this = this;
|
|
23022
|
+
var a = function () { return (_this._instance.sendCustomAudioFrame(unpackObject(frame), streamId),
|
|
23023
|
+
void 0); };
|
|
23024
|
+
var i = function () { return (_this._instance.sendCustomAudioFrame(unpackObject(frame), streamId),
|
|
23025
|
+
void 0); };
|
|
23026
|
+
var $os = env.getOS();
|
|
23027
|
+
if ($os === 'android') {
|
|
23028
|
+
return a();
|
|
23029
|
+
}
|
|
23030
|
+
else if ($os === 'ios') {
|
|
23031
|
+
return i();
|
|
23032
|
+
}
|
|
23033
|
+
else {
|
|
23034
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23035
|
+
}
|
|
23036
|
+
};
|
|
23037
|
+
/** {zh}
|
|
23038
|
+
* @detail api
|
|
23039
|
+
* @brief 更新音视频混流的布局。
|
|
23040
|
+
* @param mixDescription 新的音视频混流布局,详情请参见 [VeLiveStreamMixDescription](147521#VeLiveStreamMixDescription)。
|
|
23041
|
+
*
|
|
23042
|
+
*/
|
|
23043
|
+
/** {en}
|
|
23044
|
+
* @detail api
|
|
23045
|
+
* @brief Updates the configurations for audio and video mixing.
|
|
23046
|
+
* @param mixDescription The updated configurations for audio and video mixing. See VeLiveStreamMixDescription {@link #VeLiveStreamMixDescription} for details.
|
|
23047
|
+
*
|
|
23048
|
+
*/
|
|
23049
|
+
VeLiveMixerManager_1.prototype.updateStreamMixDescription = function (mixDescription) {
|
|
23050
|
+
var _this = this;
|
|
23051
|
+
var a = function () { return (_this._instance.updateStreamMixDescription(unpackObject(mixDescription)),
|
|
23052
|
+
void 0); };
|
|
23053
|
+
var i = function () { return (_this._instance.updateStreamMixDescription(unpackObject(mixDescription)),
|
|
23054
|
+
void 0); };
|
|
23055
|
+
var $os = env.getOS();
|
|
23056
|
+
if ($os === 'android') {
|
|
23057
|
+
return a();
|
|
23058
|
+
}
|
|
23059
|
+
else if ($os === 'ios') {
|
|
23060
|
+
return i();
|
|
23061
|
+
}
|
|
23062
|
+
else {
|
|
23063
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23064
|
+
}
|
|
23065
|
+
};
|
|
23066
|
+
/** {zh}
|
|
23067
|
+
* @detail api
|
|
23068
|
+
* @brief 从混流器中移除一路非主路的视频流。
|
|
23069
|
+
* @order 80
|
|
23070
|
+
* @param streamId 需要移除的非主路视频流 ID。
|
|
23071
|
+
*
|
|
23072
|
+
*/
|
|
23073
|
+
/** {en}
|
|
23074
|
+
* @detail api
|
|
23075
|
+
* @brief Removes a non-primary video stream from the mixer.
|
|
23076
|
+
* @param streamId The ID of the video stream to remove.
|
|
23077
|
+
* @order 80
|
|
23078
|
+
*
|
|
23079
|
+
*/
|
|
23080
|
+
VeLiveMixerManager_1.prototype.removeVideoStream = function (streamId) {
|
|
23081
|
+
var _this = this;
|
|
23082
|
+
var a = function () { return (_this._instance.removeVideoStream(streamId), void 0); };
|
|
23083
|
+
var i = function () { return (_this._instance.removeVideoStream(streamId), void 0); };
|
|
23084
|
+
var $os = env.getOS();
|
|
23085
|
+
if ($os === 'android') {
|
|
23086
|
+
return a();
|
|
23087
|
+
}
|
|
23088
|
+
else if ($os === 'ios') {
|
|
23089
|
+
return i();
|
|
23090
|
+
}
|
|
23091
|
+
else {
|
|
23092
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23093
|
+
}
|
|
23094
|
+
};
|
|
23095
|
+
/** {zh}
|
|
23096
|
+
* @detail api
|
|
23097
|
+
* @brief 从混流器中移除一路非主路的音频流。
|
|
23098
|
+
* @order 82
|
|
23099
|
+
* @param streamId 需要移除的非主路音频流 ID。
|
|
23100
|
+
*
|
|
23101
|
+
*/
|
|
23102
|
+
/** {en}
|
|
23103
|
+
* @detail api
|
|
23104
|
+
* @brief Removes a non-primary audio stream from the mixer.
|
|
23105
|
+
* @param streamId The ID of the audio stream to remove.
|
|
23106
|
+
* @order 82
|
|
23107
|
+
*
|
|
23108
|
+
*/
|
|
23109
|
+
VeLiveMixerManager_1.prototype.removeAudioStream = function (streamId) {
|
|
23110
|
+
var _this = this;
|
|
23111
|
+
var a = function () { return (_this._instance.removeAudioStream(streamId), void 0); };
|
|
23112
|
+
var i = function () { return (_this._instance.removeAudioStream(streamId), void 0); };
|
|
23113
|
+
var $os = env.getOS();
|
|
23114
|
+
if ($os === 'android') {
|
|
23115
|
+
return a();
|
|
23116
|
+
}
|
|
23117
|
+
else if ($os === 'ios') {
|
|
23118
|
+
return i();
|
|
23119
|
+
}
|
|
23120
|
+
else {
|
|
23121
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23122
|
+
}
|
|
23123
|
+
};
|
|
23124
|
+
/** {zh}
|
|
23125
|
+
* @platform ios
|
|
23126
|
+
* @detail api
|
|
23127
|
+
* @brief 设置指定混流音频的音量。当你将 VeLiveAudioMixType{@link #VeLiveAudioMixType} 设置为 `VeLiveAudioMixPlayAndPush` 时,该方法同时控制该路音频在拉流端和本地的播放音量。
|
|
23128
|
+
* @order 70
|
|
23129
|
+
* @param streamId 非主路音频流 ID。
|
|
23130
|
+
* @param volume 音量大小,范围为 [0.0,4.0]。
|
|
23131
|
+
*/
|
|
23132
|
+
/** {en}
|
|
23133
|
+
* @platform ios
|
|
23134
|
+
* @detail api
|
|
23135
|
+
* @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.
|
|
23136
|
+
* @param streamId The audio stream ID.
|
|
23137
|
+
* @param volume The audio volume. The value range is [0.0,4.0].
|
|
23138
|
+
* @order 70
|
|
23139
|
+
*/
|
|
23140
|
+
VeLiveMixerManager_1.prototype.ios_setAudioStream = function (streamId, volume) {
|
|
23141
|
+
var _this = this;
|
|
23142
|
+
var $ = function () { return (_this._instance.setAudioStream(streamId, volume), void 0); };
|
|
23143
|
+
return $();
|
|
23144
|
+
};
|
|
23145
|
+
/** {zh}
|
|
23146
|
+
* @platform ios
|
|
23147
|
+
* @detail api
|
|
23148
|
+
* @brief 获取屏幕推流App音频流 ID。
|
|
23149
|
+
*/
|
|
23150
|
+
/** {en}
|
|
23151
|
+
* @platform ios
|
|
23152
|
+
*/
|
|
23153
|
+
VeLiveMixerManager_1.prototype.ios_getAppAudioStream = function () {
|
|
23154
|
+
var _this = this;
|
|
23155
|
+
var $ = function () { return Number(_this._instance.getAppAudioStream()); };
|
|
23156
|
+
return $();
|
|
23157
|
+
};
|
|
23158
|
+
return VeLiveMixerManager_1;
|
|
23159
|
+
}());
|
|
23160
|
+
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
23161
|
+
(function () {
|
|
23162
|
+
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
23163
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
23164
|
+
_classThis = _classDescriptor.value;
|
|
23165
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
23166
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
23167
|
+
})();
|
|
23168
|
+
return _classThis;
|
|
23169
|
+
}();
|
|
23170
|
+
/** {zh}
|
|
23171
|
+
* @detail api
|
|
23172
|
+
* @brief 音频帧的数据信息。
|
|
23173
|
+
*/
|
|
23174
|
+
var VeLiveAudioFrame = function () {
|
|
23175
|
+
var _classDecorators = [PackClass()];
|
|
23176
|
+
var _classDescriptor;
|
|
23177
|
+
var _classExtraInitializers = [];
|
|
23178
|
+
var _classThis;
|
|
23179
|
+
_classThis = /** @class */ (function () {
|
|
23180
|
+
function VeLiveAudioFrame_1() {
|
|
23181
|
+
}
|
|
23182
|
+
Object.defineProperty(VeLiveAudioFrame_1.prototype, "bufferType", {
|
|
23183
|
+
get: function () {
|
|
23184
|
+
var $os = env.getOS();
|
|
23185
|
+
if ($os === 'android') {
|
|
23186
|
+
return t_VeLiveAudioBufferType.android_to_ts(this._instance.bufferType);
|
|
23187
|
+
}
|
|
23188
|
+
else if ($os === 'ios') {
|
|
23189
|
+
return t_VeLiveAudioBufferType.ios_to_ts(this._instance.bufferType);
|
|
23190
|
+
}
|
|
23191
|
+
else {
|
|
23192
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23193
|
+
}
|
|
23194
|
+
},
|
|
23195
|
+
set: function (value) {
|
|
23196
|
+
var $os = env.getOS();
|
|
23197
|
+
if ($os === 'android') {
|
|
23198
|
+
this._instance.bufferType = t_VeLiveAudioBufferType.ts_to_android(value);
|
|
23199
|
+
}
|
|
23200
|
+
else if ($os === 'ios') {
|
|
23201
|
+
this._instance.bufferType = t_VeLiveAudioBufferType.ts_to_ios(value);
|
|
23202
|
+
}
|
|
23203
|
+
else {
|
|
23204
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23205
|
+
}
|
|
23206
|
+
},
|
|
23207
|
+
enumerable: false,
|
|
23208
|
+
configurable: true
|
|
23209
|
+
});
|
|
23210
|
+
Object.defineProperty(VeLiveAudioFrame_1.prototype, "sampleRate", {
|
|
23211
|
+
get: function () {
|
|
23212
|
+
var $os = env.getOS();
|
|
23213
|
+
if ($os === 'android') {
|
|
23214
|
+
return this._instance.sampleRate;
|
|
23215
|
+
}
|
|
23216
|
+
else if ($os === 'ios') {
|
|
23217
|
+
return this._instance.sampleRate;
|
|
23218
|
+
}
|
|
23219
|
+
else {
|
|
23220
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23221
|
+
}
|
|
23222
|
+
},
|
|
23223
|
+
set: function (value) {
|
|
23224
|
+
var $os = env.getOS();
|
|
23225
|
+
if ($os === 'android') {
|
|
23226
|
+
this._instance.sampleRate = value;
|
|
23227
|
+
}
|
|
23228
|
+
else if ($os === 'ios') {
|
|
23229
|
+
this._instance.sampleRate = value;
|
|
23230
|
+
}
|
|
23231
|
+
else {
|
|
23232
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23233
|
+
}
|
|
23234
|
+
},
|
|
23235
|
+
enumerable: false,
|
|
23236
|
+
configurable: true
|
|
23237
|
+
});
|
|
23238
|
+
Object.defineProperty(VeLiveAudioFrame_1.prototype, "channels", {
|
|
23239
|
+
get: function () {
|
|
23240
|
+
var $os = env.getOS();
|
|
23241
|
+
if ($os === 'android') {
|
|
23242
|
+
return this._instance.channels;
|
|
23243
|
+
}
|
|
23244
|
+
else if ($os === 'ios') {
|
|
23245
|
+
return this._instance.channels;
|
|
23246
|
+
}
|
|
23247
|
+
else {
|
|
23248
|
+
throw new Error('Not Support Platform ' + $os);
|
|
23249
|
+
}
|
|
23250
|
+
},
|
|
22383
23251
|
set: function (value) {
|
|
22384
23252
|
var $os = env.getOS();
|
|
22385
23253
|
if ($os === 'android') {
|
|
@@ -22872,221 +23740,6 @@ var VeLiveAudioDevice = function () {
|
|
|
22872
23740
|
return _classThis;
|
|
22873
23741
|
}();
|
|
22874
23742
|
|
|
22875
|
-
var VeLiveMixerManager$2 = function () {
|
|
22876
|
-
var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.mixer.MixerManager')];
|
|
22877
|
-
var _classDescriptor;
|
|
22878
|
-
var _classExtraInitializers = [];
|
|
22879
|
-
var _classThis;
|
|
22880
|
-
var _instanceExtraInitializers = [];
|
|
22881
|
-
var _setPusher_decorators;
|
|
22882
|
-
var _addView_decorators;
|
|
22883
|
-
var _updateView_decorators;
|
|
22884
|
-
var _removeView_decorators;
|
|
22885
|
-
_classThis = /** @class */ (function () {
|
|
22886
|
-
function VeLiveMixerManager_1() {
|
|
22887
|
-
__runInitializers(this, _instanceExtraInitializers);
|
|
22888
|
-
}
|
|
22889
|
-
VeLiveMixerManager_1.prototype.setPusher = function (pusher) {
|
|
22890
|
-
throw new Error('');
|
|
22891
|
-
};
|
|
22892
|
-
VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
|
|
22893
|
-
throw new Error('');
|
|
22894
|
-
};
|
|
22895
|
-
VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
|
|
22896
|
-
throw new Error('');
|
|
22897
|
-
};
|
|
22898
|
-
VeLiveMixerManager_1.prototype.removeView = function (viewId) {
|
|
22899
|
-
throw new Error('');
|
|
22900
|
-
};
|
|
22901
|
-
return VeLiveMixerManager_1;
|
|
22902
|
-
}());
|
|
22903
|
-
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
22904
|
-
(function () {
|
|
22905
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
22906
|
-
_setPusher_decorators = [NativeMethodSync()];
|
|
22907
|
-
_addView_decorators = [NativeMethod()];
|
|
22908
|
-
_updateView_decorators = [NativeMethod()];
|
|
22909
|
-
_removeView_decorators = [NativeMethod()];
|
|
22910
|
-
__esDecorate(_classThis, null, _setPusher_decorators, { kind: "method", name: "setPusher", static: false, private: false, access: { has: function (obj) { return "setPusher" in obj; }, get: function (obj) { return obj.setPusher; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22911
|
-
__esDecorate(_classThis, null, _addView_decorators, { kind: "method", name: "addView", static: false, private: false, access: { has: function (obj) { return "addView" in obj; }, get: function (obj) { return obj.addView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22912
|
-
__esDecorate(_classThis, null, _updateView_decorators, { kind: "method", name: "updateView", static: false, private: false, access: { has: function (obj) { return "updateView" in obj; }, get: function (obj) { return obj.updateView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22913
|
-
__esDecorate(_classThis, null, _removeView_decorators, { kind: "method", name: "removeView", static: false, private: false, access: { has: function (obj) { return "removeView" in obj; }, get: function (obj) { return obj.removeView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22914
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
22915
|
-
_classThis = _classDescriptor.value;
|
|
22916
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
22917
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
22918
|
-
})();
|
|
22919
|
-
return _classThis;
|
|
22920
|
-
}();
|
|
22921
|
-
|
|
22922
|
-
var VeLiveMixerManager$1 = function () {
|
|
22923
|
-
var _classDecorators = [NativeClass('VeLiveMixerHelper')];
|
|
22924
|
-
var _classDescriptor;
|
|
22925
|
-
var _classExtraInitializers = [];
|
|
22926
|
-
var _classThis;
|
|
22927
|
-
var _instanceExtraInitializers = [];
|
|
22928
|
-
var _setPusher_decorators;
|
|
22929
|
-
var _addView_decorators;
|
|
22930
|
-
var _updateView_decorators;
|
|
22931
|
-
var _removeView_decorators;
|
|
22932
|
-
var _captureView_decorators;
|
|
22933
|
-
_classThis = /** @class */ (function () {
|
|
22934
|
-
function VeLiveMixerManager_1() {
|
|
22935
|
-
__runInitializers(this, _instanceExtraInitializers);
|
|
22936
|
-
}
|
|
22937
|
-
VeLiveMixerManager_1.prototype.setPusher = function (pusher) {
|
|
22938
|
-
throw new Error('');
|
|
22939
|
-
};
|
|
22940
|
-
VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
|
|
22941
|
-
throw new Error('');
|
|
22942
|
-
};
|
|
22943
|
-
VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
|
|
22944
|
-
throw new Error('');
|
|
22945
|
-
};
|
|
22946
|
-
VeLiveMixerManager_1.prototype.removeView = function (viewId) {
|
|
22947
|
-
throw new Error('');
|
|
22948
|
-
};
|
|
22949
|
-
VeLiveMixerManager_1.prototype.captureView = function (viewId) {
|
|
22950
|
-
throw new Error('');
|
|
22951
|
-
};
|
|
22952
|
-
return VeLiveMixerManager_1;
|
|
22953
|
-
}());
|
|
22954
|
-
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
22955
|
-
(function () {
|
|
22956
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
22957
|
-
_setPusher_decorators = [NativeMethodSync('setPusher:')];
|
|
22958
|
-
_addView_decorators = [NativeMethod('addView:config:')];
|
|
22959
|
-
_updateView_decorators = [NativeMethod('updateView:config:')];
|
|
22960
|
-
_removeView_decorators = [NativeMethod('removeView:')];
|
|
22961
|
-
_captureView_decorators = [NativeMethod('captureView:')];
|
|
22962
|
-
__esDecorate(_classThis, null, _setPusher_decorators, { kind: "method", name: "setPusher", static: false, private: false, access: { has: function (obj) { return "setPusher" in obj; }, get: function (obj) { return obj.setPusher; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22963
|
-
__esDecorate(_classThis, null, _addView_decorators, { kind: "method", name: "addView", static: false, private: false, access: { has: function (obj) { return "addView" in obj; }, get: function (obj) { return obj.addView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22964
|
-
__esDecorate(_classThis, null, _updateView_decorators, { kind: "method", name: "updateView", static: false, private: false, access: { has: function (obj) { return "updateView" in obj; }, get: function (obj) { return obj.updateView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22965
|
-
__esDecorate(_classThis, null, _removeView_decorators, { kind: "method", name: "removeView", static: false, private: false, access: { has: function (obj) { return "removeView" in obj; }, get: function (obj) { return obj.removeView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22966
|
-
__esDecorate(_classThis, null, _captureView_decorators, { kind: "method", name: "captureView", static: false, private: false, access: { has: function (obj) { return "captureView" in obj; }, get: function (obj) { return obj.captureView; } }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
22967
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
22968
|
-
_classThis = _classDescriptor.value;
|
|
22969
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
22970
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
22971
|
-
})();
|
|
22972
|
-
return _classThis;
|
|
22973
|
-
}();
|
|
22974
|
-
|
|
22975
|
-
var VeLiveMixerManager = function () {
|
|
22976
|
-
var _classDecorators = [PackClass()];
|
|
22977
|
-
var _classDescriptor;
|
|
22978
|
-
var _classExtraInitializers = [];
|
|
22979
|
-
var _classThis;
|
|
22980
|
-
_classThis = /** @class */ (function () {
|
|
22981
|
-
function VeLiveMixerManager_1(pusher) {
|
|
22982
|
-
this._views = new Map();
|
|
22983
|
-
this._pusher = pusher;
|
|
22984
|
-
}
|
|
22985
|
-
VeLiveMixerManager_1.prototype.__init = function () {
|
|
22986
|
-
this._instance = this.__new_instance();
|
|
22987
|
-
};
|
|
22988
|
-
VeLiveMixerManager_1.prototype.__new_instance = function () {
|
|
22989
|
-
var $os = env.getOS();
|
|
22990
|
-
if ($os === 'android') {
|
|
22991
|
-
var instance = new VeLiveMixerManager$2();
|
|
22992
|
-
instance.setPusher(unpackObject(this._pusher));
|
|
22993
|
-
return instance;
|
|
22994
|
-
}
|
|
22995
|
-
else if ($os === 'ios') {
|
|
22996
|
-
var instance = new VeLiveMixerManager$1();
|
|
22997
|
-
instance.setPusher(unpackObject(this._pusher));
|
|
22998
|
-
return instance;
|
|
22999
|
-
}
|
|
23000
|
-
else {
|
|
23001
|
-
throw new Error('Not Support Platform ' + $os);
|
|
23002
|
-
}
|
|
23003
|
-
};
|
|
23004
|
-
/**
|
|
23005
|
-
* Add view to mixer - support hybrid-runtime way
|
|
23006
|
-
* @param viewId viewId string
|
|
23007
|
-
* @param config mixer configuration
|
|
23008
|
-
*/
|
|
23009
|
-
VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
|
|
23010
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
23011
|
-
return __generator(this, function (_a) {
|
|
23012
|
-
switch (_a.label) {
|
|
23013
|
-
case 0:
|
|
23014
|
-
_a.trys.push([0, 2, , 3]);
|
|
23015
|
-
if (!this._instance) {
|
|
23016
|
-
return [2 /*return*/, false];
|
|
23017
|
-
}
|
|
23018
|
-
this._views.set(viewId, config);
|
|
23019
|
-
return [4 /*yield*/, this._instance.addView(viewId, config)];
|
|
23020
|
-
case 1:
|
|
23021
|
-
_a.sent();
|
|
23022
|
-
return [2 /*return*/, true];
|
|
23023
|
-
case 2:
|
|
23024
|
-
_a.sent();
|
|
23025
|
-
return [2 /*return*/, false];
|
|
23026
|
-
case 3: return [2 /*return*/];
|
|
23027
|
-
}
|
|
23028
|
-
});
|
|
23029
|
-
});
|
|
23030
|
-
};
|
|
23031
|
-
/**
|
|
23032
|
-
* Update view configuration
|
|
23033
|
-
*/
|
|
23034
|
-
VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
|
|
23035
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
23036
|
-
var existingConfig, newConfig;
|
|
23037
|
-
return __generator(this, function (_a) {
|
|
23038
|
-
switch (_a.label) {
|
|
23039
|
-
case 0:
|
|
23040
|
-
_a.trys.push([0, 2, , 3]);
|
|
23041
|
-
existingConfig = this._views.get(viewId);
|
|
23042
|
-
if (!existingConfig) {
|
|
23043
|
-
return [2 /*return*/, false];
|
|
23044
|
-
}
|
|
23045
|
-
newConfig = __assign(__assign({}, existingConfig), config);
|
|
23046
|
-
this._views.set(viewId, newConfig);
|
|
23047
|
-
return [4 /*yield*/, this._instance.updateView(viewId, newConfig)];
|
|
23048
|
-
case 1:
|
|
23049
|
-
_a.sent();
|
|
23050
|
-
return [2 /*return*/, true];
|
|
23051
|
-
case 2:
|
|
23052
|
-
_a.sent();
|
|
23053
|
-
return [2 /*return*/, false];
|
|
23054
|
-
case 3: return [2 /*return*/];
|
|
23055
|
-
}
|
|
23056
|
-
});
|
|
23057
|
-
});
|
|
23058
|
-
};
|
|
23059
|
-
/**
|
|
23060
|
-
* Remove view
|
|
23061
|
-
*/
|
|
23062
|
-
VeLiveMixerManager_1.prototype.removeView = function (viewId) {
|
|
23063
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
23064
|
-
return __generator(this, function (_a) {
|
|
23065
|
-
try {
|
|
23066
|
-
this._views.delete(viewId);
|
|
23067
|
-
this._instance.removeView(viewId);
|
|
23068
|
-
return [2 /*return*/, true];
|
|
23069
|
-
}
|
|
23070
|
-
catch (error) {
|
|
23071
|
-
return [2 /*return*/, false];
|
|
23072
|
-
}
|
|
23073
|
-
return [2 /*return*/];
|
|
23074
|
-
});
|
|
23075
|
-
});
|
|
23076
|
-
};
|
|
23077
|
-
return VeLiveMixerManager_1;
|
|
23078
|
-
}());
|
|
23079
|
-
__setFunctionName(_classThis, "VeLiveMixerManager");
|
|
23080
|
-
(function () {
|
|
23081
|
-
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
23082
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
23083
|
-
_classThis = _classDescriptor.value;
|
|
23084
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
23085
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
23086
|
-
})();
|
|
23087
|
-
return _classThis;
|
|
23088
|
-
}();
|
|
23089
|
-
|
|
23090
23743
|
function runImpl(context, androidImpl, iosImpl) {
|
|
23091
23744
|
if (env.getOS() === 'android') {
|
|
23092
23745
|
var androidEngine = unpackObject(context);
|
|
@@ -23100,18 +23753,8 @@ function runImpl(context, androidImpl, iosImpl) {
|
|
|
23100
23753
|
throw new Error("not support: ".concat(env.getOS()));
|
|
23101
23754
|
}
|
|
23102
23755
|
}
|
|
23103
|
-
extendsClassMethod(VeLivePusher, 'getMixerManager', function (origin) {
|
|
23104
|
-
return function getMixerManager() {
|
|
23105
|
-
if (Reflect.get(this, '__mixerManager')) {
|
|
23106
|
-
return Reflect.get(this, '__mixerManager');
|
|
23107
|
-
}
|
|
23108
|
-
var mixerManager = new VeLiveMixerManager(this);
|
|
23109
|
-
Reflect.set(this, '__mixerManager', mixerManager);
|
|
23110
|
-
return mixerManager;
|
|
23111
|
-
};
|
|
23112
|
-
});
|
|
23113
23756
|
extendsClassMethod(VeLivePusher, 'destroy', function (origin) {
|
|
23114
|
-
return function
|
|
23757
|
+
return function destory() {
|
|
23115
23758
|
var _this = this;
|
|
23116
23759
|
origin();
|
|
23117
23760
|
return runImpl(this, function (engine) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -23974,29 +24617,14 @@ function initIOSPusher(options) {
|
|
|
23974
24617
|
}
|
|
23975
24618
|
function initPusher(options) {
|
|
23976
24619
|
return __awaiter(this, void 0, void 0, function () {
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23982
|
-
|
|
23983
|
-
|
|
23984
|
-
|
|
23985
|
-
}
|
|
23986
|
-
return [3 /*break*/, 5];
|
|
23987
|
-
case 1: return [4 /*yield*/, initAndroidPusher(options)];
|
|
23988
|
-
case 2:
|
|
23989
|
-
pusher = (_b.sent());
|
|
23990
|
-
return [3 /*break*/, 6];
|
|
23991
|
-
case 3: return [4 /*yield*/, initIOSPusher(options)];
|
|
23992
|
-
case 4:
|
|
23993
|
-
pusher = (_b.sent());
|
|
23994
|
-
return [3 /*break*/, 6];
|
|
23995
|
-
case 5: throw new Error('Unsupported platform');
|
|
23996
|
-
case 6:
|
|
23997
|
-
mixerManager = new VeLiveMixerManager(pusher);
|
|
23998
|
-
Reflect.set(pusher, '__mixerManager', mixerManager);
|
|
23999
|
-
return [2 /*return*/, pusher];
|
|
24620
|
+
return __generator(this, function (_a) {
|
|
24621
|
+
switch (Platform.OS) {
|
|
24622
|
+
case 'android':
|
|
24623
|
+
return [2 /*return*/, initAndroidPusher(options)];
|
|
24624
|
+
case 'ios':
|
|
24625
|
+
return [2 /*return*/, initIOSPusher(options)];
|
|
24626
|
+
default:
|
|
24627
|
+
throw new Error('Unsupported platform');
|
|
24000
24628
|
}
|
|
24001
24629
|
});
|
|
24002
24630
|
});
|
|
@@ -24045,72 +24673,10 @@ function startScreenCapture(pusher, options) {
|
|
|
24045
24673
|
});
|
|
24046
24674
|
}
|
|
24047
24675
|
|
|
24048
|
-
var NativeMixView = requireNativeComponent('VeLiveMixView');
|
|
24049
|
-
var index = 0;
|
|
24050
|
-
var getId = function () {
|
|
24051
|
-
return Math.random().toString(36).substring(2, 10) + index++;
|
|
24052
|
-
};
|
|
24053
|
-
var MixView = React.forwardRef(function (props, ref) {
|
|
24054
|
-
var _a = props.captureMode, captureMode = _a === void 0 ? 'onchange' : _a, // Default to most performant mode
|
|
24055
|
-
captureFramerate = props.captureFramerate, _b = props.autoSensitivity, autoSensitivity = _b === void 0 ? 5 : _b, // Default sensitivity
|
|
24056
|
-
onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, restProps = __rest(props, ["captureMode", "captureFramerate", "autoSensitivity", "onViewMount", "onViewUnmount"]);
|
|
24057
|
-
var viewId = useMemo(function () {
|
|
24058
|
-
return restProps.viewId || getId();
|
|
24059
|
-
}, [restProps.viewId]);
|
|
24060
|
-
useEffect(function () {
|
|
24061
|
-
if (onViewMount) {
|
|
24062
|
-
onViewMount(viewId);
|
|
24063
|
-
}
|
|
24064
|
-
return function () {
|
|
24065
|
-
if (onViewUnmount) {
|
|
24066
|
-
onViewUnmount(viewId);
|
|
24067
|
-
}
|
|
24068
|
-
};
|
|
24069
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24070
|
-
}, [viewId]);
|
|
24071
|
-
return (jsx(NativeMixView, __assign({}, restProps, { viewId: viewId, captureMode: captureMode, captureFramerate: captureFramerate, autoSensitivity: autoSensitivity, ref: ref })));
|
|
24072
|
-
});
|
|
24073
|
-
|
|
24074
|
-
var VeView = React.forwardRef(function (props, ref) {
|
|
24075
|
-
var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId"]);
|
|
24076
|
-
return (jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref, children: children })) }));
|
|
24077
|
-
});
|
|
24078
|
-
|
|
24079
|
-
var VeTextView = React.forwardRef(function (props, ref) {
|
|
24080
|
-
var renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, textProps = __rest(props, ["renderMode", "onViewMount", "onViewUnmount", "viewId"]);
|
|
24081
|
-
return (jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(Text, __assign({}, textProps, { ref: ref, children: textProps.children })) }));
|
|
24082
|
-
});
|
|
24083
|
-
|
|
24084
|
-
var VeImageView = React.forwardRef(function (props, ref) {
|
|
24085
|
-
var children = props.children, renderMode = props.renderMode, _a = props.animated, animated = _a === void 0 ? false : _a, captureMode = props.captureMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, style = props.style, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "onViewMount", "onViewUnmount", "viewId", "style"]);
|
|
24086
|
-
var captureViewId = useRef(viewId || '');
|
|
24087
|
-
// Auto-detect capture mode based on animation
|
|
24088
|
-
var finalCaptureMode = captureMode || (animated ? 'realtime' : 'onchange');
|
|
24089
|
-
var handleImageLoad = function () {
|
|
24090
|
-
onViewMount === null || onViewMount === void 0 ? void 0 : onViewMount(captureViewId.current);
|
|
24091
|
-
};
|
|
24092
|
-
var onWrapperViewMount = function (calcViewId) {
|
|
24093
|
-
captureViewId.current = calcViewId;
|
|
24094
|
-
};
|
|
24095
|
-
var mergedStyle = useMemo(function () {
|
|
24096
|
-
var defaultStyle = {
|
|
24097
|
-
width: '100%',
|
|
24098
|
-
height: '100%',
|
|
24099
|
-
};
|
|
24100
|
-
return StyleSheet.flatten([defaultStyle, style]);
|
|
24101
|
-
}, [style]);
|
|
24102
|
-
return (jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsx(Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: mergedStyle, ref: ref }))) }));
|
|
24103
|
-
});
|
|
24104
|
-
|
|
24105
|
-
var VeWebView = React.forwardRef(function (props, ref) {
|
|
24106
|
-
var renderMode = props.renderMode, _a = props.captureMode, captureMode = _a === void 0 ? 'auto' : _a, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["renderMode", "captureMode", "onViewMount", "onViewUnmount", "viewId"]);
|
|
24107
|
-
return (jsx(MixView, { renderMode: renderMode, captureMode: captureMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref })) }));
|
|
24108
|
-
});
|
|
24109
|
-
|
|
24110
24676
|
setupJSBridge(new ReactNativeBridge(NativeModules.VeLivePushModule, 'VeLivePush:onEvent'));
|
|
24111
24677
|
setupEnv(new ReactNativeEnv());
|
|
24112
24678
|
setupLogger({
|
|
24113
24679
|
customer: function (msg) { return console.log('vepusher-log:', msg); },
|
|
24114
24680
|
});
|
|
24115
24681
|
|
|
24116
|
-
export {
|
|
24682
|
+
export { NativeViewComponent, VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioDevice, VeLiveAudioEncoderConfiguration, VeLiveAudioFrame, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveCameraDevice, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMediaPlayer, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveMixerManager, VeLiveNetworkQuality, VeLiveOrientation, VeLivePixelFormat, VeLivePusher, VeLivePusherConfiguration, VeLivePusherErrorCode, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEffectManager, VeLiveVideoEncoderConfiguration, VeLiveVideoFrame, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, android_VeLiveAudioFrameFilter, android_VeLiveAudioFrameListener, android_VeLiveFileRecordingListener, android_VeLiveMediaPlayerFrameListener, android_VeLiveMediaPlayerListener, android_VeLivePusherObserver, android_VeLivePusherStatisticsObserver, android_VeLiveSnapshotListener, android_VeLiveVideoFrameFilter, android_VeLiveVideoFrameListener, initEnv, initPusher, ios_VeLiveAudioFrameFilter, ios_VeLiveAudioFrameListener, ios_VeLiveFileRecordingListener, ios_VeLiveMediaPlayerFrameListener, ios_VeLiveMediaPlayerListener, ios_VeLivePusherObserver, ios_VeLivePusherStatisticsObserver, ios_VeLiveSnapshotListener, ios_VeLiveVideoFrameFilter, ios_VeLiveVideoFrameListener, relaunchPusher, startScreenCapture };
|