@byteplus/react-native-live-push 1.1.3-rc.0 → 1.1.3-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +13 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushPackage.java +16 -13
  3. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushView.java +16 -0
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushViewManager.java +7 -2
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +392 -0
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +415 -0
  7. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +79 -0
  8. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/TextureMgr.java +168 -0
  9. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/YuvHelper.java +154 -0
  10. package/ios/VeLiveMixerHelper.h +44 -0
  11. package/ios/VeLiveMixerHelper.m +562 -0
  12. package/ios/VeLiveMixerView.h +69 -0
  13. package/ios/VeLiveMixerView.m +592 -0
  14. package/ios/VeLiveMixerViewManager.m +92 -0
  15. package/lib/commonjs/index.js +1779 -980
  16. package/lib/commonjs/typescript/android/index.d.ts +47 -0
  17. package/lib/commonjs/typescript/codegen/android/api.d.ts +1527 -0
  18. package/lib/commonjs/typescript/codegen/android/callback.d.ts +91 -0
  19. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +26 -0
  20. package/lib/commonjs/typescript/codegen/android/index.d.ts +5 -0
  21. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +846 -0
  22. package/lib/commonjs/typescript/codegen/android/types.d.ts +33 -0
  23. package/lib/commonjs/typescript/codegen/ios/api.d.ts +222 -0
  24. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +80 -0
  25. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +54 -0
  26. package/lib/commonjs/typescript/codegen/ios/external.d.ts +1 -0
  27. package/lib/commonjs/typescript/codegen/ios/index.d.ts +6 -0
  28. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +460 -0
  29. package/lib/commonjs/typescript/codegen/ios/types.d.ts +46 -0
  30. package/lib/commonjs/typescript/codegen/pack/api.d.ts +1835 -0
  31. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +400 -0
  32. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +35 -0
  33. package/lib/commonjs/typescript/codegen/pack/index.d.ts +5 -0
  34. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1392 -0
  35. package/lib/commonjs/typescript/codegen/pack/types.d.ts +68 -0
  36. package/lib/commonjs/typescript/codegen/type-shim.d.ts +6 -0
  37. package/lib/commonjs/typescript/component.d.ts +15 -0
  38. package/lib/commonjs/typescript/core/api.d.ts +17 -0
  39. package/lib/commonjs/typescript/core/callback.d.ts +2 -0
  40. package/lib/commonjs/typescript/core/env.d.ts +29 -0
  41. package/lib/commonjs/typescript/core/errorcode.d.ts +2 -0
  42. package/lib/commonjs/typescript/core/index.d.ts +6 -0
  43. package/lib/commonjs/typescript/core/keytype.d.ts +17 -0
  44. package/lib/commonjs/typescript/core/mixer.d.ts +26 -0
  45. package/lib/commonjs/typescript/core/pusher.d.ts +16 -0
  46. package/lib/commonjs/typescript/index.d.ts +3 -0
  47. package/lib/commonjs/typescript/ios/extends.d.ts +41 -0
  48. package/lib/commonjs/typescript/platforms/android/extends.d.ts +8 -0
  49. package/lib/commonjs/typescript/platforms/android/helper.d.ts +8 -0
  50. package/lib/commonjs/typescript/platforms/android/mixer.d.ts +8 -0
  51. package/lib/commonjs/typescript/platforms/ios/extends.d.ts +17 -0
  52. package/lib/commonjs/typescript/platforms/ios/helper.d.ts +8 -0
  53. package/lib/commonjs/typescript/platforms/ios/mixer.d.ts +9 -0
  54. package/lib/commonjs/typescript/runtime.d.ts +1 -0
  55. package/lib/commonjs/typescript/view/MixView.d.ts +52 -0
  56. package/lib/commonjs/typescript/view/VeImageView.d.ts +19 -0
  57. package/lib/commonjs/typescript/view/VeTextView.d.ts +7 -0
  58. package/lib/commonjs/typescript/view/VeView.d.ts +7 -0
  59. package/lib/commonjs/typescript/view/VeWebView.d.ts +7 -0
  60. package/lib/commonjs/typescript/view/index.d.ts +5 -0
  61. package/lib/module/index.js +1776 -982
  62. package/lib/module/typescript/android/index.d.ts +47 -0
  63. package/lib/module/typescript/codegen/android/api.d.ts +1527 -0
  64. package/lib/module/typescript/codegen/android/callback.d.ts +91 -0
  65. package/lib/module/typescript/codegen/android/errorcode.d.ts +26 -0
  66. package/lib/module/typescript/codegen/android/index.d.ts +5 -0
  67. package/lib/module/typescript/codegen/android/keytype.d.ts +846 -0
  68. package/lib/module/typescript/codegen/android/types.d.ts +33 -0
  69. package/lib/module/typescript/codegen/ios/api.d.ts +222 -0
  70. package/lib/module/typescript/codegen/ios/callback.d.ts +80 -0
  71. package/lib/module/typescript/codegen/ios/errorcode.d.ts +54 -0
  72. package/lib/module/typescript/codegen/ios/external.d.ts +1 -0
  73. package/lib/module/typescript/codegen/ios/index.d.ts +6 -0
  74. package/lib/module/typescript/codegen/ios/keytype.d.ts +460 -0
  75. package/lib/module/typescript/codegen/ios/types.d.ts +46 -0
  76. package/lib/module/typescript/codegen/pack/api.d.ts +1835 -0
  77. package/lib/module/typescript/codegen/pack/callback.d.ts +400 -0
  78. package/lib/module/typescript/codegen/pack/errorcode.d.ts +35 -0
  79. package/lib/module/typescript/codegen/pack/index.d.ts +5 -0
  80. package/lib/module/typescript/codegen/pack/keytype.d.ts +1392 -0
  81. package/lib/module/typescript/codegen/pack/types.d.ts +68 -0
  82. package/lib/module/typescript/codegen/type-shim.d.ts +6 -0
  83. package/lib/module/typescript/component.d.ts +15 -0
  84. package/lib/module/typescript/core/api.d.ts +17 -0
  85. package/lib/module/typescript/core/callback.d.ts +2 -0
  86. package/lib/module/typescript/core/env.d.ts +29 -0
  87. package/lib/module/typescript/core/errorcode.d.ts +2 -0
  88. package/lib/module/typescript/core/index.d.ts +6 -0
  89. package/lib/module/typescript/core/keytype.d.ts +17 -0
  90. package/lib/module/typescript/core/mixer.d.ts +26 -0
  91. package/lib/module/typescript/core/pusher.d.ts +16 -0
  92. package/lib/module/typescript/index.d.ts +3 -0
  93. package/lib/module/typescript/ios/extends.d.ts +41 -0
  94. package/lib/module/typescript/platforms/android/extends.d.ts +8 -0
  95. package/lib/module/typescript/platforms/android/helper.d.ts +8 -0
  96. package/lib/module/typescript/platforms/android/mixer.d.ts +8 -0
  97. package/lib/module/typescript/platforms/ios/extends.d.ts +17 -0
  98. package/lib/module/typescript/platforms/ios/helper.d.ts +8 -0
  99. package/lib/module/typescript/platforms/ios/mixer.d.ts +9 -0
  100. package/lib/module/typescript/runtime.d.ts +1 -0
  101. package/lib/module/typescript/view/MixView.d.ts +52 -0
  102. package/lib/module/typescript/view/VeImageView.d.ts +19 -0
  103. package/lib/module/typescript/view/VeTextView.d.ts +7 -0
  104. package/lib/module/typescript/view/VeView.d.ts +7 -0
  105. package/lib/module/typescript/view/VeWebView.d.ts +7 -0
  106. package/lib/module/typescript/view/index.d.ts +5 -0
  107. package/lib/typescript/codegen/android/api.d.ts +1 -121
  108. package/lib/typescript/codegen/ios/api.d.ts +1 -28
  109. package/lib/typescript/codegen/pack/api.d.ts +1 -133
  110. package/lib/typescript/core/api.d.ts +17 -2
  111. package/lib/typescript/core/keytype.d.ts +15 -0
  112. package/lib/typescript/core/mixer.d.ts +26 -0
  113. package/lib/typescript/index.d.ts +1 -0
  114. package/lib/typescript/platforms/android/extends.d.ts +8 -0
  115. package/lib/typescript/platforms/android/mixer.d.ts +8 -0
  116. package/lib/typescript/platforms/ios/mixer.d.ts +9 -0
  117. package/lib/typescript/view/MixView.d.ts +52 -0
  118. package/lib/typescript/view/VeImageView.d.ts +19 -0
  119. package/lib/typescript/view/VeTextView.d.ts +7 -0
  120. package/lib/typescript/view/VeView.d.ts +7 -0
  121. package/lib/typescript/view/VeWebView.d.ts +7 -0
  122. package/lib/typescript/view/index.d.ts +5 -0
  123. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { NativeEventEmitter, Image, Platform, requireNativeComponent, NativeModules, findNodeHandle, UIManager } from 'react-native';
2
- import React from 'react';
1
+ import { NativeEventEmitter, Image, Platform, requireNativeComponent, NativeModules, findNodeHandle, UIManager, View, Text } from 'react-native';
2
+ import React, { useMemo, useEffect, useRef } from 'react';
3
3
 
4
4
  /**
5
5
  * base64.ts
@@ -2208,6 +2208,17 @@ function __extends(d, b) {
2208
2208
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2209
2209
  }
2210
2210
 
2211
+ var __assign = function() {
2212
+ __assign = Object.assign || function __assign(t) {
2213
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2214
+ s = arguments[i];
2215
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2216
+ }
2217
+ return t;
2218
+ };
2219
+ return __assign.apply(this, arguments);
2220
+ };
2221
+
2211
2222
  function __rest(s, e) {
2212
2223
  var t = {};
2213
2224
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -5964,7 +5975,6 @@ var VeLivePusher$2 = function () {
5964
5975
  var _getAudioDevice_decorators;
5965
5976
  var _setAudioFrameFilter_decorators;
5966
5977
  var _createPlayer_decorators;
5967
- var _getMixerManager_decorators;
5968
5978
  var _startScreenRecording_decorators;
5969
5979
  var _stopScreenRecording_decorators;
5970
5980
  var _isScreenRecording_decorators;
@@ -6870,25 +6880,6 @@ var VeLivePusher$2 = function () {
6870
6880
  VeLivePusher_1.prototype.createPlayer = function () {
6871
6881
  throw new Error('not implement');
6872
6882
  };
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
- };
6892
6883
  /** {zh}
6893
6884
  * @detail api
6894
6885
  * @brief 开始屏幕采集。
@@ -7104,7 +7095,6 @@ var VeLivePusher$2 = function () {
7104
7095
  _getAudioDevice_decorators = [ReturnClass(function () { return VeLiveAudioDevice$2; }), NativeMethodSync()];
7105
7096
  _setAudioFrameFilter_decorators = [NativeMethodSync()];
7106
7097
  _createPlayer_decorators = [ReturnClass(function () { return VeLiveMediaPlayer$2; }), NativeMethodSync()];
7107
- _getMixerManager_decorators = [ReturnClass(function () { return VeLiveMixerManager$2; }), NativeMethodSync()];
7108
7098
  _startScreenRecording_decorators = [NativeMethodSync()];
7109
7099
  _stopScreenRecording_decorators = [NativeMethodSync()];
7110
7100
  _isScreenRecording_decorators = [NativeMethodSync()];
@@ -7156,7 +7146,6 @@ var VeLivePusher$2 = function () {
7156
7146
  __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);
7157
7147
  __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);
7158
7148
  __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);
7160
7149
  __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);
7161
7150
  __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);
7162
7151
  __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);
@@ -7173,269 +7162,6 @@ var VeLivePusher$2 = function () {
7173
7162
  })();
7174
7163
  return _classThis;
7175
7164
  }();
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
- }();
7439
7165
  var VeLiveMediaPlayer$2 = function () {
7440
7166
  var _classDecorators = [NativeClass('com.ss.avframework.live.VeLiveMediaPlayer')];
7441
7167
  var _classDescriptor;
@@ -9470,255 +9196,92 @@ var VeLiveAudioDevice$1 = function () {
9470
9196
  })();
9471
9197
  return _classThis;
9472
9198
  }();
9473
- var VeLiveMixerManager$1 = function () {
9474
- var _classDecorators = [NativeClass('VeLiveMixerManager')];
9199
+ var VeLivePusher$1 = function () {
9200
+ var _classDecorators = [NativeClass('VeLivePusher')];
9475
9201
  var _classDescriptor;
9476
9202
  var _classExtraInitializers = [];
9477
9203
  var _classThis;
9204
+ var _staticExtraInitializers = [];
9478
9205
  var _instanceExtraInitializers = [];
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;
9206
+ var _static_setLogLevel_decorators;
9207
+ var _startScreenCapture_decorators;
9208
+ var _stopScreenCapture_decorators;
9490
9209
  var _init_decorators;
9210
+ var _initWithConfig_decorators;
9211
+ var _destroy_decorators;
9212
+ var _setObserver_decorators;
9213
+ var _setStatisticsObserver_decorators;
9214
+ var _addVideoFrameListener_decorators;
9215
+ var _removeVideoFrameListener_decorators;
9216
+ var _addAudioFrameListener_decorators;
9217
+ var _removeAudioFrameListener_decorators;
9218
+ var _setScreenCaptureObserver_decorators;
9219
+ var _setRenderView_decorators;
9220
+ var _setRenderFillMode_decorators;
9221
+ var _setVideoMirror_decorators;
9222
+ var _startPush_decorators;
9223
+ var _startPushWithUrls_decorators;
9224
+ var _stopPush_decorators;
9225
+ var _isPushing_decorators;
9226
+ var _startVideoCapture_decorators;
9227
+ var _stopVideoCapture_decorators;
9228
+ var _switchVideoCapture_decorators;
9229
+ var _startAudioCapture_decorators;
9230
+ var _stopAudioCapture_decorators;
9231
+ var _switchAudioCapture_decorators;
9232
+ var _getCurrentVideoCaptureType_decorators;
9233
+ var _getCurrentAudioCaptureType_decorators;
9234
+ var _updateCustomImage_decorators;
9235
+ var _setMute_decorators;
9236
+ var _isMute_decorators;
9237
+ var _setVideoEncoderConfiguration_decorators;
9238
+ var _setAudioEncoderConfiguration_decorators;
9239
+ var _startFileRecording_decorators;
9240
+ var _stopFileRecording_decorators;
9241
+ var _getCameraDevice_decorators;
9242
+ var _getAudioDevice_decorators;
9243
+ var _getVideoEffectManager_decorators;
9244
+ var _createPlayer_decorators;
9245
+ var _setVideoFrameFilter_decorators;
9246
+ var _setAudioFrameFilter_decorators;
9247
+ var _setOrientation_decorators;
9248
+ var _setWatermark_decorators;
9249
+ var _snapshot_decorators;
9250
+ var _sendSeiMessage_decorators;
9251
+ var _pushExternalVideoFrame_decorators;
9252
+ var _pushExternalVideoEncodeFrame_decorators;
9253
+ var _pushExternalAudioFrame_decorators;
9254
+ var _setProperty_decorators;
9255
+ var _requestIDRFrame_decorators;
9491
9256
  _classThis = /** @class */ (function () {
9492
- function VeLiveMixerManager_1() {
9257
+ function VeLivePusher_1() {
9493
9258
  __runInitializers(this, _instanceExtraInitializers);
9494
9259
  }
9495
9260
  /** {zh}
9496
9261
  * @detail api
9497
- * @brief 添加一路需要混流的视频流到混流器中。
9498
- * @return <br>
9499
- * 视频流 ID
9500
- * @order 65
9262
+ * @brief 设置输出到控制台的日志等级。
9263
+ * @order 48
9264
+ * @param level 输出的日志级别,默认值为 `VeLivePusherLogLevelNone`,表示关闭日志。级别详情请参见 [VeLivePusherLogLevel](155321#VeLivePusherLogLevel)
9501
9265
  */
9502
- VeLiveMixerManager_1.prototype.addVideoStream = function () {
9266
+ VeLivePusher_1.setLogLevel = function (level) {
9503
9267
  throw new Error('not implement');
9504
9268
  };
9505
9269
  /** {zh}
9506
9270
  * @detail api
9507
- * @brief 从混流器中移除一路非主路的视频流。
9508
- * @order 66
9509
- * @param streamId 需要移除的非主路视频流 ID。
9271
+ * @param applicationGroupIdentifier iOS app group 标识符。
9272
+ * @brief 开启屏幕采集。
9510
9273
  */
9511
- VeLiveMixerManager_1.prototype.removeVideoStream = function (streamId) {
9274
+ VeLivePusher_1.prototype.startScreenCapture = function (applicationGroupIdentifier) {
9512
9275
  throw new Error('not implement');
9513
9276
  };
9514
9277
  /** {zh}
9515
9278
  * @detail api
9516
- * @brief 添加一路音频流到混流器中,并指定混流类型。
9517
- * @param type 混流类型,详情请参见 VeLiveAudioMixType{@link #VeLiveAudioMixType}
9518
- * @return <br>
9519
- * 音频流 ID。
9520
- * @order 68
9279
+ * @brief 关闭屏幕采集。
9521
9280
  */
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 () {
9281
+ VeLivePusher_1.prototype.stopScreenCapture = function () {
9282
+ throw new Error('not implement');
9283
+ };
9284
+ VeLivePusher_1.prototype.init = function () {
9722
9285
  throw new Error('not implement');
9723
9286
  };
9724
9287
  /** {zh}
@@ -10085,16 +9648,6 @@ var VeLivePusher$1 = function () {
10085
9648
  VeLivePusher_1.prototype.getAudioDevice = function () {
10086
9649
  throw new Error('not implement');
10087
9650
  };
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
- };
10098
9651
  /** {zh}
10099
9652
  * @detail api
10100
9653
  * @brief 获取视频特效管理对象 `VeLiveVideoEffectManager`。通过视频特效管理,您可以使用以下功能。
@@ -10299,7 +9852,6 @@ var VeLivePusher$1 = function () {
10299
9852
  _stopFileRecording_decorators = [NativeMethodSync('stopFileRecording')];
10300
9853
  _getCameraDevice_decorators = [ReturnClass(function () { return VeLiveCameraDevice$1; }), NativeMethodSync('getCameraDevice')];
10301
9854
  _getAudioDevice_decorators = [ReturnClass(function () { return VeLiveAudioDevice$1; }), NativeMethodSync('getAudioDevice')];
10302
- _getMixerManager_decorators = [ReturnClass(function () { return VeLiveMixerManager$1; }), NativeMethodSync('getMixerManager')];
10303
9855
  _getVideoEffectManager_decorators = [ReturnClass(function () { return VeLiveVideoEffectManager$1; }), NativeMethodSync('getVideoEffectManager')];
10304
9856
  _createPlayer_decorators = [ReturnClass(function () { return VeLiveMediaPlayer$1; }), NativeMethodSync('createPlayer')];
10305
9857
  _setVideoFrameFilter_decorators = [NativeMethodSync('setVideoFrameFilter:')];
@@ -10350,7 +9902,6 @@ var VeLivePusher$1 = function () {
10350
9902
  __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);
10351
9903
  __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);
10352
9904
  __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);
10354
9905
  __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);
10355
9906
  __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);
10356
9907
  __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);
@@ -19472,37 +19023,6 @@ var VeLivePusher = function () {
19472
19023
  throw new Error('Not Support Platform ' + $os);
19473
19024
  }
19474
19025
  };
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
- };
19506
19026
  /** {zh}
19507
19027
  * @platform android
19508
19028
  * @detail api
@@ -22780,404 +22300,15 @@ var VeLiveVideoEffectManager = function () {
22780
22300
  }();
22781
22301
  /** {zh}
22782
22302
  * @detail api
22783
- * @brief 音视频混流器管理对象。支持添加/移除音视频流、发送自定义音视频帧、更新混流布局等。
22303
+ * @brief 音频帧的数据信息。
22784
22304
  */
22785
- var VeLiveMixerManager = function () {
22305
+ var VeLiveAudioFrame = function () {
22786
22306
  var _classDecorators = [PackClass()];
22787
22307
  var _classDescriptor;
22788
22308
  var _classExtraInitializers = [];
22789
22309
  var _classThis;
22790
22310
  _classThis = /** @class */ (function () {
22791
- function VeLiveMixerManager_1() {
22792
- }
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() {
22311
+ function VeLiveAudioFrame_1() {
23181
22312
  }
23182
22313
  Object.defineProperty(VeLiveAudioFrame_1.prototype, "bufferType", {
23183
22314
  get: function () {
@@ -23740,29 +22871,254 @@ var VeLiveAudioDevice = function () {
23740
22871
  return _classThis;
23741
22872
  }();
23742
22873
 
23743
- function runImpl(context, androidImpl, iosImpl) {
23744
- if (env.getOS() === 'android') {
23745
- var androidEngine = unpackObject(context);
23746
- return androidImpl(androidEngine);
23747
- }
23748
- else if (env.getOS() === 'ios') {
23749
- var iosEngine = unpackObject(context);
23750
- return iosImpl(iosEngine);
23751
- }
23752
- else {
23753
- throw new Error("not support: ".concat(env.getOS()));
23754
- }
23755
- }
23756
- extendsClassMethod(VeLivePusher, 'destroy', function (origin) {
23757
- return function destory() {
23758
- var _this = this;
23759
- origin();
23760
- return runImpl(this, function (engine) { return __awaiter(_this, void 0, void 0, function () {
23761
- return __generator(this, function (_a) {
23762
- VeLivePushHelper$1.removePusher(engine);
23763
- return [2 /*return*/];
23764
- });
23765
- }); }, function (engine) { return __awaiter(_this, void 0, void 0, function () {
22874
+ var VeLiveMixerManager$2 = function () {
22875
+ var _classDecorators = [NativeClass('com.volcengine.velive.rn.push.mixer.MixerManager')];
22876
+ var _classDescriptor;
22877
+ var _classExtraInitializers = [];
22878
+ var _classThis;
22879
+ var _instanceExtraInitializers = [];
22880
+ var _setPusher_decorators;
22881
+ var _addView_decorators;
22882
+ var _updateView_decorators;
22883
+ var _removeView_decorators;
22884
+ _classThis = /** @class */ (function () {
22885
+ function VeLiveMixerManager_1() {
22886
+ __runInitializers(this, _instanceExtraInitializers);
22887
+ }
22888
+ VeLiveMixerManager_1.prototype.setPusher = function (pusher) {
22889
+ throw new Error('');
22890
+ };
22891
+ VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
22892
+ throw new Error('');
22893
+ };
22894
+ VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
22895
+ throw new Error('');
22896
+ };
22897
+ VeLiveMixerManager_1.prototype.removeView = function (viewId) {
22898
+ throw new Error('');
22899
+ };
22900
+ return VeLiveMixerManager_1;
22901
+ }());
22902
+ __setFunctionName(_classThis, "VeLiveMixerManager");
22903
+ (function () {
22904
+ var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
22905
+ _setPusher_decorators = [NativeMethodSync()];
22906
+ _addView_decorators = [NativeMethod()];
22907
+ _updateView_decorators = [NativeMethod()];
22908
+ _removeView_decorators = [NativeMethod()];
22909
+ __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);
22910
+ __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);
22911
+ __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);
22912
+ __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);
22913
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
22914
+ _classThis = _classDescriptor.value;
22915
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
22916
+ __runInitializers(_classThis, _classExtraInitializers);
22917
+ })();
22918
+ return _classThis;
22919
+ }();
22920
+
22921
+ var VeLiveMixerManager$1 = function () {
22922
+ var _classDecorators = [NativeClass('VeLiveMixerHelper')];
22923
+ var _classDescriptor;
22924
+ var _classExtraInitializers = [];
22925
+ var _classThis;
22926
+ var _instanceExtraInitializers = [];
22927
+ var _setPusher_decorators;
22928
+ var _addView_decorators;
22929
+ var _updateView_decorators;
22930
+ var _removeView_decorators;
22931
+ var _captureView_decorators;
22932
+ _classThis = /** @class */ (function () {
22933
+ function VeLiveMixerManager_1() {
22934
+ __runInitializers(this, _instanceExtraInitializers);
22935
+ }
22936
+ VeLiveMixerManager_1.prototype.setPusher = function (pusher) {
22937
+ throw new Error('');
22938
+ };
22939
+ VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
22940
+ throw new Error('');
22941
+ };
22942
+ VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
22943
+ throw new Error('');
22944
+ };
22945
+ VeLiveMixerManager_1.prototype.removeView = function (viewId) {
22946
+ throw new Error('');
22947
+ };
22948
+ VeLiveMixerManager_1.prototype.captureView = function (viewId) {
22949
+ throw new Error('');
22950
+ };
22951
+ return VeLiveMixerManager_1;
22952
+ }());
22953
+ __setFunctionName(_classThis, "VeLiveMixerManager");
22954
+ (function () {
22955
+ var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
22956
+ _setPusher_decorators = [NativeMethodSync('setPusher:')];
22957
+ _addView_decorators = [NativeMethod('addView:config:')];
22958
+ _updateView_decorators = [NativeMethod('updateView:config:')];
22959
+ _removeView_decorators = [NativeMethod('removeView:')];
22960
+ _captureView_decorators = [NativeMethod('captureView:')];
22961
+ __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);
22962
+ __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);
22963
+ __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);
22964
+ __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);
22965
+ __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);
22966
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
22967
+ _classThis = _classDescriptor.value;
22968
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
22969
+ __runInitializers(_classThis, _classExtraInitializers);
22970
+ })();
22971
+ return _classThis;
22972
+ }();
22973
+
22974
+ var VeLiveMixerManager = function () {
22975
+ var _classDecorators = [PackClass()];
22976
+ var _classDescriptor;
22977
+ var _classExtraInitializers = [];
22978
+ var _classThis;
22979
+ _classThis = /** @class */ (function () {
22980
+ function VeLiveMixerManager_1(pusher) {
22981
+ this._views = new Map();
22982
+ this._pusher = pusher;
22983
+ }
22984
+ VeLiveMixerManager_1.prototype.__init = function () {
22985
+ this._instance = this.__new_instance();
22986
+ };
22987
+ VeLiveMixerManager_1.prototype.__new_instance = function () {
22988
+ var $os = env.getOS();
22989
+ if ($os === 'android') {
22990
+ var instance = new VeLiveMixerManager$2();
22991
+ instance.setPusher(unpackObject(this._pusher));
22992
+ return instance;
22993
+ }
22994
+ else if ($os === 'ios') {
22995
+ var instance = new VeLiveMixerManager$1();
22996
+ instance.setPusher(unpackObject(this._pusher));
22997
+ return instance;
22998
+ }
22999
+ else {
23000
+ throw new Error('Not Support Platform ' + $os);
23001
+ }
23002
+ };
23003
+ /**
23004
+ * Add view to mixer - support hybrid-runtime way
23005
+ * @param viewId viewId string
23006
+ * @param config mixer configuration
23007
+ */
23008
+ VeLiveMixerManager_1.prototype.addView = function (viewId, config) {
23009
+ return __awaiter(this, void 0, void 0, function () {
23010
+ return __generator(this, function (_a) {
23011
+ switch (_a.label) {
23012
+ case 0:
23013
+ _a.trys.push([0, 2, , 3]);
23014
+ if (!this._instance) {
23015
+ return [2 /*return*/, false];
23016
+ }
23017
+ this._views.set(viewId, config);
23018
+ return [4 /*yield*/, this._instance.addView(viewId, config)];
23019
+ case 1:
23020
+ _a.sent();
23021
+ return [2 /*return*/, true];
23022
+ case 2:
23023
+ _a.sent();
23024
+ return [2 /*return*/, false];
23025
+ case 3: return [2 /*return*/];
23026
+ }
23027
+ });
23028
+ });
23029
+ };
23030
+ /**
23031
+ * Update view configuration
23032
+ */
23033
+ VeLiveMixerManager_1.prototype.updateView = function (viewId, config) {
23034
+ return __awaiter(this, void 0, void 0, function () {
23035
+ var existingConfig, newConfig;
23036
+ return __generator(this, function (_a) {
23037
+ switch (_a.label) {
23038
+ case 0:
23039
+ _a.trys.push([0, 2, , 3]);
23040
+ existingConfig = this._views.get(viewId);
23041
+ if (!existingConfig) {
23042
+ return [2 /*return*/, false];
23043
+ }
23044
+ newConfig = __assign(__assign({}, existingConfig), config);
23045
+ this._views.set(viewId, newConfig);
23046
+ return [4 /*yield*/, this._instance.updateView(viewId, newConfig)];
23047
+ case 1:
23048
+ _a.sent();
23049
+ return [2 /*return*/, true];
23050
+ case 2:
23051
+ _a.sent();
23052
+ return [2 /*return*/, false];
23053
+ case 3: return [2 /*return*/];
23054
+ }
23055
+ });
23056
+ });
23057
+ };
23058
+ /**
23059
+ * Remove view
23060
+ */
23061
+ VeLiveMixerManager_1.prototype.removeView = function (viewId) {
23062
+ return __awaiter(this, void 0, void 0, function () {
23063
+ return __generator(this, function (_a) {
23064
+ try {
23065
+ this._views.delete(viewId);
23066
+ this._instance.removeView(viewId);
23067
+ return [2 /*return*/, true];
23068
+ }
23069
+ catch (error) {
23070
+ return [2 /*return*/, false];
23071
+ }
23072
+ return [2 /*return*/];
23073
+ });
23074
+ });
23075
+ };
23076
+ return VeLiveMixerManager_1;
23077
+ }());
23078
+ __setFunctionName(_classThis, "VeLiveMixerManager");
23079
+ (function () {
23080
+ var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
23081
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
23082
+ _classThis = _classDescriptor.value;
23083
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
23084
+ __runInitializers(_classThis, _classExtraInitializers);
23085
+ })();
23086
+ return _classThis;
23087
+ }();
23088
+
23089
+ function runImpl(context, androidImpl, iosImpl) {
23090
+ if (env.getOS() === 'android') {
23091
+ var androidEngine = unpackObject(context);
23092
+ return androidImpl(androidEngine);
23093
+ }
23094
+ else if (env.getOS() === 'ios') {
23095
+ var iosEngine = unpackObject(context);
23096
+ return iosImpl(iosEngine);
23097
+ }
23098
+ else {
23099
+ throw new Error("not support: ".concat(env.getOS()));
23100
+ }
23101
+ }
23102
+ extendsClassMethod(VeLivePusher, 'getMixerManager', function (origin) {
23103
+ return function getMixerManager() {
23104
+ if (Reflect.get(this, '__mixerManager')) {
23105
+ return Reflect.get(this, '__mixerManager');
23106
+ }
23107
+ var mixerManager = new VeLiveMixerManager(this);
23108
+ Reflect.set(this, '__mixerManager', mixerManager);
23109
+ return mixerManager;
23110
+ };
23111
+ });
23112
+ extendsClassMethod(VeLivePusher, 'destroy', function (origin) {
23113
+ return function destroy() {
23114
+ var _this = this;
23115
+ origin();
23116
+ return runImpl(this, function (engine) { return __awaiter(_this, void 0, void 0, function () {
23117
+ return __generator(this, function (_a) {
23118
+ VeLivePushHelper$1.removePusher(engine);
23119
+ return [2 /*return*/];
23120
+ });
23121
+ }); }, function (engine) { return __awaiter(_this, void 0, void 0, function () {
23766
23122
  return __generator(this, function (_a) {
23767
23123
  VeLivePushHelper.removePusher(engine);
23768
23124
  return [2 /*return*/];
@@ -24617,14 +23973,29 @@ function initIOSPusher(options) {
24617
23973
  }
24618
23974
  function initPusher(options) {
24619
23975
  return __awaiter(this, void 0, void 0, function () {
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');
23976
+ var pusher, _a, mixerManager;
23977
+ return __generator(this, function (_b) {
23978
+ switch (_b.label) {
23979
+ case 0:
23980
+ _a = Platform.OS;
23981
+ switch (_a) {
23982
+ case 'android': return [3 /*break*/, 1];
23983
+ case 'ios': return [3 /*break*/, 3];
23984
+ }
23985
+ return [3 /*break*/, 5];
23986
+ case 1: return [4 /*yield*/, initAndroidPusher(options)];
23987
+ case 2:
23988
+ pusher = (_b.sent());
23989
+ return [3 /*break*/, 6];
23990
+ case 3: return [4 /*yield*/, initIOSPusher(options)];
23991
+ case 4:
23992
+ pusher = (_b.sent());
23993
+ return [3 /*break*/, 6];
23994
+ case 5: throw new Error('Unsupported platform');
23995
+ case 6:
23996
+ mixerManager = new VeLiveMixerManager(pusher);
23997
+ Reflect.set(pusher, '__mixerManager', mixerManager);
23998
+ return [2 /*return*/, pusher];
24628
23999
  }
24629
24000
  });
24630
24001
  });
@@ -24673,10 +24044,1433 @@ function startScreenCapture(pusher, options) {
24673
24044
  });
24674
24045
  }
24675
24046
 
24047
+ var jsxRuntime = {exports: {}};
24048
+
24049
+ var reactJsxRuntime_production_min = {};
24050
+
24051
+ /**
24052
+ * @license React
24053
+ * react-jsx-runtime.production.min.js
24054
+ *
24055
+ * Copyright (c) Facebook, Inc. and its affiliates.
24056
+ *
24057
+ * This source code is licensed under the MIT license found in the
24058
+ * LICENSE file in the root directory of this source tree.
24059
+ */
24060
+
24061
+ var hasRequiredReactJsxRuntime_production_min;
24062
+
24063
+ function requireReactJsxRuntime_production_min () {
24064
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
24065
+ hasRequiredReactJsxRuntime_production_min = 1;
24066
+ var f=React,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
24067
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
24068
+ return reactJsxRuntime_production_min;
24069
+ }
24070
+
24071
+ var reactJsxRuntime_development = {};
24072
+
24073
+ /**
24074
+ * @license React
24075
+ * react-jsx-runtime.development.js
24076
+ *
24077
+ * Copyright (c) Facebook, Inc. and its affiliates.
24078
+ *
24079
+ * This source code is licensed under the MIT license found in the
24080
+ * LICENSE file in the root directory of this source tree.
24081
+ */
24082
+
24083
+ var hasRequiredReactJsxRuntime_development;
24084
+
24085
+ function requireReactJsxRuntime_development () {
24086
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
24087
+ hasRequiredReactJsxRuntime_development = 1;
24088
+
24089
+ if (process.env.NODE_ENV !== "production") {
24090
+ (function() {
24091
+
24092
+ var React$1 = React;
24093
+
24094
+ // ATTENTION
24095
+ // When adding new symbols to this file,
24096
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
24097
+ // The Symbol used to tag the ReactElement-like types.
24098
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
24099
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
24100
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
24101
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
24102
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
24103
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
24104
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
24105
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
24106
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
24107
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
24108
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
24109
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
24110
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
24111
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
24112
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
24113
+ function getIteratorFn(maybeIterable) {
24114
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
24115
+ return null;
24116
+ }
24117
+
24118
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
24119
+
24120
+ if (typeof maybeIterator === 'function') {
24121
+ return maybeIterator;
24122
+ }
24123
+
24124
+ return null;
24125
+ }
24126
+
24127
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
24128
+
24129
+ function error(format) {
24130
+ {
24131
+ {
24132
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
24133
+ args[_key2 - 1] = arguments[_key2];
24134
+ }
24135
+
24136
+ printWarning('error', format, args);
24137
+ }
24138
+ }
24139
+ }
24140
+
24141
+ function printWarning(level, format, args) {
24142
+ // When changing this logic, you might want to also
24143
+ // update consoleWithStackDev.www.js as well.
24144
+ {
24145
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
24146
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
24147
+
24148
+ if (stack !== '') {
24149
+ format += '%s';
24150
+ args = args.concat([stack]);
24151
+ } // eslint-disable-next-line react-internal/safe-string-coercion
24152
+
24153
+
24154
+ var argsWithFormat = args.map(function (item) {
24155
+ return String(item);
24156
+ }); // Careful: RN currently depends on this prefix
24157
+
24158
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
24159
+ // breaks IE9: https://github.com/facebook/react/issues/13610
24160
+ // eslint-disable-next-line react-internal/no-production-logging
24161
+
24162
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
24163
+ }
24164
+ }
24165
+
24166
+ // -----------------------------------------------------------------------------
24167
+
24168
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
24169
+ var enableCacheElement = false;
24170
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
24171
+
24172
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
24173
+ // stuff. Intended to enable React core members to more easily debug scheduling
24174
+ // issues in DEV builds.
24175
+
24176
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
24177
+
24178
+ var REACT_MODULE_REFERENCE;
24179
+
24180
+ {
24181
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
24182
+ }
24183
+
24184
+ function isValidElementType(type) {
24185
+ if (typeof type === 'string' || typeof type === 'function') {
24186
+ return true;
24187
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
24188
+
24189
+
24190
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
24191
+ return true;
24192
+ }
24193
+
24194
+ if (typeof type === 'object' && type !== null) {
24195
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
24196
+ // types supported by any Flight configuration anywhere since
24197
+ // we don't know which Flight build this will end up being used
24198
+ // with.
24199
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
24200
+ return true;
24201
+ }
24202
+ }
24203
+
24204
+ return false;
24205
+ }
24206
+
24207
+ function getWrappedName(outerType, innerType, wrapperName) {
24208
+ var displayName = outerType.displayName;
24209
+
24210
+ if (displayName) {
24211
+ return displayName;
24212
+ }
24213
+
24214
+ var functionName = innerType.displayName || innerType.name || '';
24215
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
24216
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
24217
+
24218
+
24219
+ function getContextName(type) {
24220
+ return type.displayName || 'Context';
24221
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
24222
+
24223
+
24224
+ function getComponentNameFromType(type) {
24225
+ if (type == null) {
24226
+ // Host root, text node or just invalid type.
24227
+ return null;
24228
+ }
24229
+
24230
+ {
24231
+ if (typeof type.tag === 'number') {
24232
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
24233
+ }
24234
+ }
24235
+
24236
+ if (typeof type === 'function') {
24237
+ return type.displayName || type.name || null;
24238
+ }
24239
+
24240
+ if (typeof type === 'string') {
24241
+ return type;
24242
+ }
24243
+
24244
+ switch (type) {
24245
+ case REACT_FRAGMENT_TYPE:
24246
+ return 'Fragment';
24247
+
24248
+ case REACT_PORTAL_TYPE:
24249
+ return 'Portal';
24250
+
24251
+ case REACT_PROFILER_TYPE:
24252
+ return 'Profiler';
24253
+
24254
+ case REACT_STRICT_MODE_TYPE:
24255
+ return 'StrictMode';
24256
+
24257
+ case REACT_SUSPENSE_TYPE:
24258
+ return 'Suspense';
24259
+
24260
+ case REACT_SUSPENSE_LIST_TYPE:
24261
+ return 'SuspenseList';
24262
+
24263
+ }
24264
+
24265
+ if (typeof type === 'object') {
24266
+ switch (type.$$typeof) {
24267
+ case REACT_CONTEXT_TYPE:
24268
+ var context = type;
24269
+ return getContextName(context) + '.Consumer';
24270
+
24271
+ case REACT_PROVIDER_TYPE:
24272
+ var provider = type;
24273
+ return getContextName(provider._context) + '.Provider';
24274
+
24275
+ case REACT_FORWARD_REF_TYPE:
24276
+ return getWrappedName(type, type.render, 'ForwardRef');
24277
+
24278
+ case REACT_MEMO_TYPE:
24279
+ var outerName = type.displayName || null;
24280
+
24281
+ if (outerName !== null) {
24282
+ return outerName;
24283
+ }
24284
+
24285
+ return getComponentNameFromType(type.type) || 'Memo';
24286
+
24287
+ case REACT_LAZY_TYPE:
24288
+ {
24289
+ var lazyComponent = type;
24290
+ var payload = lazyComponent._payload;
24291
+ var init = lazyComponent._init;
24292
+
24293
+ try {
24294
+ return getComponentNameFromType(init(payload));
24295
+ } catch (x) {
24296
+ return null;
24297
+ }
24298
+ }
24299
+
24300
+ // eslint-disable-next-line no-fallthrough
24301
+ }
24302
+ }
24303
+
24304
+ return null;
24305
+ }
24306
+
24307
+ var assign = Object.assign;
24308
+
24309
+ // Helpers to patch console.logs to avoid logging during side-effect free
24310
+ // replaying on render function. This currently only patches the object
24311
+ // lazily which won't cover if the log function was extracted eagerly.
24312
+ // We could also eagerly patch the method.
24313
+ var disabledDepth = 0;
24314
+ var prevLog;
24315
+ var prevInfo;
24316
+ var prevWarn;
24317
+ var prevError;
24318
+ var prevGroup;
24319
+ var prevGroupCollapsed;
24320
+ var prevGroupEnd;
24321
+
24322
+ function disabledLog() {}
24323
+
24324
+ disabledLog.__reactDisabledLog = true;
24325
+ function disableLogs() {
24326
+ {
24327
+ if (disabledDepth === 0) {
24328
+ /* eslint-disable react-internal/no-production-logging */
24329
+ prevLog = console.log;
24330
+ prevInfo = console.info;
24331
+ prevWarn = console.warn;
24332
+ prevError = console.error;
24333
+ prevGroup = console.group;
24334
+ prevGroupCollapsed = console.groupCollapsed;
24335
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
24336
+
24337
+ var props = {
24338
+ configurable: true,
24339
+ enumerable: true,
24340
+ value: disabledLog,
24341
+ writable: true
24342
+ }; // $FlowFixMe Flow thinks console is immutable.
24343
+
24344
+ Object.defineProperties(console, {
24345
+ info: props,
24346
+ log: props,
24347
+ warn: props,
24348
+ error: props,
24349
+ group: props,
24350
+ groupCollapsed: props,
24351
+ groupEnd: props
24352
+ });
24353
+ /* eslint-enable react-internal/no-production-logging */
24354
+ }
24355
+
24356
+ disabledDepth++;
24357
+ }
24358
+ }
24359
+ function reenableLogs() {
24360
+ {
24361
+ disabledDepth--;
24362
+
24363
+ if (disabledDepth === 0) {
24364
+ /* eslint-disable react-internal/no-production-logging */
24365
+ var props = {
24366
+ configurable: true,
24367
+ enumerable: true,
24368
+ writable: true
24369
+ }; // $FlowFixMe Flow thinks console is immutable.
24370
+
24371
+ Object.defineProperties(console, {
24372
+ log: assign({}, props, {
24373
+ value: prevLog
24374
+ }),
24375
+ info: assign({}, props, {
24376
+ value: prevInfo
24377
+ }),
24378
+ warn: assign({}, props, {
24379
+ value: prevWarn
24380
+ }),
24381
+ error: assign({}, props, {
24382
+ value: prevError
24383
+ }),
24384
+ group: assign({}, props, {
24385
+ value: prevGroup
24386
+ }),
24387
+ groupCollapsed: assign({}, props, {
24388
+ value: prevGroupCollapsed
24389
+ }),
24390
+ groupEnd: assign({}, props, {
24391
+ value: prevGroupEnd
24392
+ })
24393
+ });
24394
+ /* eslint-enable react-internal/no-production-logging */
24395
+ }
24396
+
24397
+ if (disabledDepth < 0) {
24398
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
24399
+ }
24400
+ }
24401
+ }
24402
+
24403
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
24404
+ var prefix;
24405
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
24406
+ {
24407
+ if (prefix === undefined) {
24408
+ // Extract the VM specific prefix used by each line.
24409
+ try {
24410
+ throw Error();
24411
+ } catch (x) {
24412
+ var match = x.stack.trim().match(/\n( *(at )?)/);
24413
+ prefix = match && match[1] || '';
24414
+ }
24415
+ } // We use the prefix to ensure our stacks line up with native stack frames.
24416
+
24417
+
24418
+ return '\n' + prefix + name;
24419
+ }
24420
+ }
24421
+ var reentry = false;
24422
+ var componentFrameCache;
24423
+
24424
+ {
24425
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
24426
+ componentFrameCache = new PossiblyWeakMap();
24427
+ }
24428
+
24429
+ function describeNativeComponentFrame(fn, construct) {
24430
+ // If something asked for a stack inside a fake render, it should get ignored.
24431
+ if ( !fn || reentry) {
24432
+ return '';
24433
+ }
24434
+
24435
+ {
24436
+ var frame = componentFrameCache.get(fn);
24437
+
24438
+ if (frame !== undefined) {
24439
+ return frame;
24440
+ }
24441
+ }
24442
+
24443
+ var control;
24444
+ reentry = true;
24445
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
24446
+
24447
+ Error.prepareStackTrace = undefined;
24448
+ var previousDispatcher;
24449
+
24450
+ {
24451
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
24452
+ // for warnings.
24453
+
24454
+ ReactCurrentDispatcher.current = null;
24455
+ disableLogs();
24456
+ }
24457
+
24458
+ try {
24459
+ // This should throw.
24460
+ if (construct) {
24461
+ // Something should be setting the props in the constructor.
24462
+ var Fake = function () {
24463
+ throw Error();
24464
+ }; // $FlowFixMe
24465
+
24466
+
24467
+ Object.defineProperty(Fake.prototype, 'props', {
24468
+ set: function () {
24469
+ // We use a throwing setter instead of frozen or non-writable props
24470
+ // because that won't throw in a non-strict mode function.
24471
+ throw Error();
24472
+ }
24473
+ });
24474
+
24475
+ if (typeof Reflect === 'object' && Reflect.construct) {
24476
+ // We construct a different control for this case to include any extra
24477
+ // frames added by the construct call.
24478
+ try {
24479
+ Reflect.construct(Fake, []);
24480
+ } catch (x) {
24481
+ control = x;
24482
+ }
24483
+
24484
+ Reflect.construct(fn, [], Fake);
24485
+ } else {
24486
+ try {
24487
+ Fake.call();
24488
+ } catch (x) {
24489
+ control = x;
24490
+ }
24491
+
24492
+ fn.call(Fake.prototype);
24493
+ }
24494
+ } else {
24495
+ try {
24496
+ throw Error();
24497
+ } catch (x) {
24498
+ control = x;
24499
+ }
24500
+
24501
+ fn();
24502
+ }
24503
+ } catch (sample) {
24504
+ // This is inlined manually because closure doesn't do it for us.
24505
+ if (sample && control && typeof sample.stack === 'string') {
24506
+ // This extracts the first frame from the sample that isn't also in the control.
24507
+ // Skipping one frame that we assume is the frame that calls the two.
24508
+ var sampleLines = sample.stack.split('\n');
24509
+ var controlLines = control.stack.split('\n');
24510
+ var s = sampleLines.length - 1;
24511
+ var c = controlLines.length - 1;
24512
+
24513
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
24514
+ // We expect at least one stack frame to be shared.
24515
+ // Typically this will be the root most one. However, stack frames may be
24516
+ // cut off due to maximum stack limits. In this case, one maybe cut off
24517
+ // earlier than the other. We assume that the sample is longer or the same
24518
+ // and there for cut off earlier. So we should find the root most frame in
24519
+ // the sample somewhere in the control.
24520
+ c--;
24521
+ }
24522
+
24523
+ for (; s >= 1 && c >= 0; s--, c--) {
24524
+ // Next we find the first one that isn't the same which should be the
24525
+ // frame that called our sample function and the control.
24526
+ if (sampleLines[s] !== controlLines[c]) {
24527
+ // In V8, the first line is describing the message but other VMs don't.
24528
+ // If we're about to return the first line, and the control is also on the same
24529
+ // line, that's a pretty good indicator that our sample threw at same line as
24530
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
24531
+ // This can happen if you passed a class to function component, or non-function.
24532
+ if (s !== 1 || c !== 1) {
24533
+ do {
24534
+ s--;
24535
+ c--; // We may still have similar intermediate frames from the construct call.
24536
+ // The next one that isn't the same should be our match though.
24537
+
24538
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
24539
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
24540
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
24541
+ // but we have a user-provided "displayName"
24542
+ // splice it in to make the stack more readable.
24543
+
24544
+
24545
+ if (fn.displayName && _frame.includes('<anonymous>')) {
24546
+ _frame = _frame.replace('<anonymous>', fn.displayName);
24547
+ }
24548
+
24549
+ {
24550
+ if (typeof fn === 'function') {
24551
+ componentFrameCache.set(fn, _frame);
24552
+ }
24553
+ } // Return the line we found.
24554
+
24555
+
24556
+ return _frame;
24557
+ }
24558
+ } while (s >= 1 && c >= 0);
24559
+ }
24560
+
24561
+ break;
24562
+ }
24563
+ }
24564
+ }
24565
+ } finally {
24566
+ reentry = false;
24567
+
24568
+ {
24569
+ ReactCurrentDispatcher.current = previousDispatcher;
24570
+ reenableLogs();
24571
+ }
24572
+
24573
+ Error.prepareStackTrace = previousPrepareStackTrace;
24574
+ } // Fallback to just using the name if we couldn't make it throw.
24575
+
24576
+
24577
+ var name = fn ? fn.displayName || fn.name : '';
24578
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
24579
+
24580
+ {
24581
+ if (typeof fn === 'function') {
24582
+ componentFrameCache.set(fn, syntheticFrame);
24583
+ }
24584
+ }
24585
+
24586
+ return syntheticFrame;
24587
+ }
24588
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
24589
+ {
24590
+ return describeNativeComponentFrame(fn, false);
24591
+ }
24592
+ }
24593
+
24594
+ function shouldConstruct(Component) {
24595
+ var prototype = Component.prototype;
24596
+ return !!(prototype && prototype.isReactComponent);
24597
+ }
24598
+
24599
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
24600
+
24601
+ if (type == null) {
24602
+ return '';
24603
+ }
24604
+
24605
+ if (typeof type === 'function') {
24606
+ {
24607
+ return describeNativeComponentFrame(type, shouldConstruct(type));
24608
+ }
24609
+ }
24610
+
24611
+ if (typeof type === 'string') {
24612
+ return describeBuiltInComponentFrame(type);
24613
+ }
24614
+
24615
+ switch (type) {
24616
+ case REACT_SUSPENSE_TYPE:
24617
+ return describeBuiltInComponentFrame('Suspense');
24618
+
24619
+ case REACT_SUSPENSE_LIST_TYPE:
24620
+ return describeBuiltInComponentFrame('SuspenseList');
24621
+ }
24622
+
24623
+ if (typeof type === 'object') {
24624
+ switch (type.$$typeof) {
24625
+ case REACT_FORWARD_REF_TYPE:
24626
+ return describeFunctionComponentFrame(type.render);
24627
+
24628
+ case REACT_MEMO_TYPE:
24629
+ // Memo may contain any component type so we recursively resolve it.
24630
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
24631
+
24632
+ case REACT_LAZY_TYPE:
24633
+ {
24634
+ var lazyComponent = type;
24635
+ var payload = lazyComponent._payload;
24636
+ var init = lazyComponent._init;
24637
+
24638
+ try {
24639
+ // Lazy may contain any component type so we recursively resolve it.
24640
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
24641
+ } catch (x) {}
24642
+ }
24643
+ }
24644
+ }
24645
+
24646
+ return '';
24647
+ }
24648
+
24649
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
24650
+
24651
+ var loggedTypeFailures = {};
24652
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
24653
+
24654
+ function setCurrentlyValidatingElement(element) {
24655
+ {
24656
+ if (element) {
24657
+ var owner = element._owner;
24658
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
24659
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
24660
+ } else {
24661
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
24662
+ }
24663
+ }
24664
+ }
24665
+
24666
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
24667
+ {
24668
+ // $FlowFixMe This is okay but Flow doesn't know it.
24669
+ var has = Function.call.bind(hasOwnProperty);
24670
+
24671
+ for (var typeSpecName in typeSpecs) {
24672
+ if (has(typeSpecs, typeSpecName)) {
24673
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
24674
+ // fail the render phase where it didn't fail before. So we log it.
24675
+ // After these have been cleaned up, we'll let them throw.
24676
+
24677
+ try {
24678
+ // This is intentionally an invariant that gets caught. It's the same
24679
+ // behavior as without this statement except with a better message.
24680
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
24681
+ // eslint-disable-next-line react-internal/prod-error-codes
24682
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
24683
+ err.name = 'Invariant Violation';
24684
+ throw err;
24685
+ }
24686
+
24687
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
24688
+ } catch (ex) {
24689
+ error$1 = ex;
24690
+ }
24691
+
24692
+ if (error$1 && !(error$1 instanceof Error)) {
24693
+ setCurrentlyValidatingElement(element);
24694
+
24695
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
24696
+
24697
+ setCurrentlyValidatingElement(null);
24698
+ }
24699
+
24700
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
24701
+ // Only monitor this failure once because there tends to be a lot of the
24702
+ // same error.
24703
+ loggedTypeFailures[error$1.message] = true;
24704
+ setCurrentlyValidatingElement(element);
24705
+
24706
+ error('Failed %s type: %s', location, error$1.message);
24707
+
24708
+ setCurrentlyValidatingElement(null);
24709
+ }
24710
+ }
24711
+ }
24712
+ }
24713
+ }
24714
+
24715
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
24716
+
24717
+ function isArray(a) {
24718
+ return isArrayImpl(a);
24719
+ }
24720
+
24721
+ /*
24722
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
24723
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
24724
+ *
24725
+ * The functions in this module will throw an easier-to-understand,
24726
+ * easier-to-debug exception with a clear errors message message explaining the
24727
+ * problem. (Instead of a confusing exception thrown inside the implementation
24728
+ * of the `value` object).
24729
+ */
24730
+ // $FlowFixMe only called in DEV, so void return is not possible.
24731
+ function typeName(value) {
24732
+ {
24733
+ // toStringTag is needed for namespaced types like Temporal.Instant
24734
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
24735
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
24736
+ return type;
24737
+ }
24738
+ } // $FlowFixMe only called in DEV, so void return is not possible.
24739
+
24740
+
24741
+ function willCoercionThrow(value) {
24742
+ {
24743
+ try {
24744
+ testStringCoercion(value);
24745
+ return false;
24746
+ } catch (e) {
24747
+ return true;
24748
+ }
24749
+ }
24750
+ }
24751
+
24752
+ function testStringCoercion(value) {
24753
+ // If you ended up here by following an exception call stack, here's what's
24754
+ // happened: you supplied an object or symbol value to React (as a prop, key,
24755
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
24756
+ // coerce it to a string using `'' + value`, an exception was thrown.
24757
+ //
24758
+ // The most common types that will cause this exception are `Symbol` instances
24759
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
24760
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
24761
+ // exception. (Library authors do this to prevent users from using built-in
24762
+ // numeric operators like `+` or comparison operators like `>=` because custom
24763
+ // methods are needed to perform accurate arithmetic or comparison.)
24764
+ //
24765
+ // To fix the problem, coerce this object or symbol value to a string before
24766
+ // passing it to React. The most reliable way is usually `String(value)`.
24767
+ //
24768
+ // To find which value is throwing, check the browser or debugger console.
24769
+ // Before this exception was thrown, there should be `console.error` output
24770
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
24771
+ // problem and how that type was used: key, atrribute, input value prop, etc.
24772
+ // In most cases, this console output also shows the component and its
24773
+ // ancestor components where the exception happened.
24774
+ //
24775
+ // eslint-disable-next-line react-internal/safe-string-coercion
24776
+ return '' + value;
24777
+ }
24778
+ function checkKeyStringCoercion(value) {
24779
+ {
24780
+ if (willCoercionThrow(value)) {
24781
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
24782
+
24783
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
24784
+ }
24785
+ }
24786
+ }
24787
+
24788
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
24789
+ var RESERVED_PROPS = {
24790
+ key: true,
24791
+ ref: true,
24792
+ __self: true,
24793
+ __source: true
24794
+ };
24795
+ var specialPropKeyWarningShown;
24796
+ var specialPropRefWarningShown;
24797
+ var didWarnAboutStringRefs;
24798
+
24799
+ {
24800
+ didWarnAboutStringRefs = {};
24801
+ }
24802
+
24803
+ function hasValidRef(config) {
24804
+ {
24805
+ if (hasOwnProperty.call(config, 'ref')) {
24806
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
24807
+
24808
+ if (getter && getter.isReactWarning) {
24809
+ return false;
24810
+ }
24811
+ }
24812
+ }
24813
+
24814
+ return config.ref !== undefined;
24815
+ }
24816
+
24817
+ function hasValidKey(config) {
24818
+ {
24819
+ if (hasOwnProperty.call(config, 'key')) {
24820
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
24821
+
24822
+ if (getter && getter.isReactWarning) {
24823
+ return false;
24824
+ }
24825
+ }
24826
+ }
24827
+
24828
+ return config.key !== undefined;
24829
+ }
24830
+
24831
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
24832
+ {
24833
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
24834
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
24835
+
24836
+ if (!didWarnAboutStringRefs[componentName]) {
24837
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
24838
+
24839
+ didWarnAboutStringRefs[componentName] = true;
24840
+ }
24841
+ }
24842
+ }
24843
+ }
24844
+
24845
+ function defineKeyPropWarningGetter(props, displayName) {
24846
+ {
24847
+ var warnAboutAccessingKey = function () {
24848
+ if (!specialPropKeyWarningShown) {
24849
+ specialPropKeyWarningShown = true;
24850
+
24851
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
24852
+ }
24853
+ };
24854
+
24855
+ warnAboutAccessingKey.isReactWarning = true;
24856
+ Object.defineProperty(props, 'key', {
24857
+ get: warnAboutAccessingKey,
24858
+ configurable: true
24859
+ });
24860
+ }
24861
+ }
24862
+
24863
+ function defineRefPropWarningGetter(props, displayName) {
24864
+ {
24865
+ var warnAboutAccessingRef = function () {
24866
+ if (!specialPropRefWarningShown) {
24867
+ specialPropRefWarningShown = true;
24868
+
24869
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
24870
+ }
24871
+ };
24872
+
24873
+ warnAboutAccessingRef.isReactWarning = true;
24874
+ Object.defineProperty(props, 'ref', {
24875
+ get: warnAboutAccessingRef,
24876
+ configurable: true
24877
+ });
24878
+ }
24879
+ }
24880
+ /**
24881
+ * Factory method to create a new React element. This no longer adheres to
24882
+ * the class pattern, so do not use new to call it. Also, instanceof check
24883
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
24884
+ * if something is a React Element.
24885
+ *
24886
+ * @param {*} type
24887
+ * @param {*} props
24888
+ * @param {*} key
24889
+ * @param {string|object} ref
24890
+ * @param {*} owner
24891
+ * @param {*} self A *temporary* helper to detect places where `this` is
24892
+ * different from the `owner` when React.createElement is called, so that we
24893
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
24894
+ * functions, and as long as `this` and owner are the same, there will be no
24895
+ * change in behavior.
24896
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
24897
+ * indicating filename, line number, and/or other information.
24898
+ * @internal
24899
+ */
24900
+
24901
+
24902
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
24903
+ var element = {
24904
+ // This tag allows us to uniquely identify this as a React Element
24905
+ $$typeof: REACT_ELEMENT_TYPE,
24906
+ // Built-in properties that belong on the element
24907
+ type: type,
24908
+ key: key,
24909
+ ref: ref,
24910
+ props: props,
24911
+ // Record the component responsible for creating this element.
24912
+ _owner: owner
24913
+ };
24914
+
24915
+ {
24916
+ // The validation flag is currently mutative. We put it on
24917
+ // an external backing store so that we can freeze the whole object.
24918
+ // This can be replaced with a WeakMap once they are implemented in
24919
+ // commonly used development environments.
24920
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
24921
+ // the validation flag non-enumerable (where possible, which should
24922
+ // include every environment we run tests in), so the test framework
24923
+ // ignores it.
24924
+
24925
+ Object.defineProperty(element._store, 'validated', {
24926
+ configurable: false,
24927
+ enumerable: false,
24928
+ writable: true,
24929
+ value: false
24930
+ }); // self and source are DEV only properties.
24931
+
24932
+ Object.defineProperty(element, '_self', {
24933
+ configurable: false,
24934
+ enumerable: false,
24935
+ writable: false,
24936
+ value: self
24937
+ }); // Two elements created in two different places should be considered
24938
+ // equal for testing purposes and therefore we hide it from enumeration.
24939
+
24940
+ Object.defineProperty(element, '_source', {
24941
+ configurable: false,
24942
+ enumerable: false,
24943
+ writable: false,
24944
+ value: source
24945
+ });
24946
+
24947
+ if (Object.freeze) {
24948
+ Object.freeze(element.props);
24949
+ Object.freeze(element);
24950
+ }
24951
+ }
24952
+
24953
+ return element;
24954
+ };
24955
+ /**
24956
+ * https://github.com/reactjs/rfcs/pull/107
24957
+ * @param {*} type
24958
+ * @param {object} props
24959
+ * @param {string} key
24960
+ */
24961
+
24962
+ function jsxDEV(type, config, maybeKey, source, self) {
24963
+ {
24964
+ var propName; // Reserved names are extracted
24965
+
24966
+ var props = {};
24967
+ var key = null;
24968
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
24969
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
24970
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
24971
+ // but as an intermediary step, we will use jsxDEV for everything except
24972
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
24973
+ // key is explicitly declared to be undefined or not.
24974
+
24975
+ if (maybeKey !== undefined) {
24976
+ {
24977
+ checkKeyStringCoercion(maybeKey);
24978
+ }
24979
+
24980
+ key = '' + maybeKey;
24981
+ }
24982
+
24983
+ if (hasValidKey(config)) {
24984
+ {
24985
+ checkKeyStringCoercion(config.key);
24986
+ }
24987
+
24988
+ key = '' + config.key;
24989
+ }
24990
+
24991
+ if (hasValidRef(config)) {
24992
+ ref = config.ref;
24993
+ warnIfStringRefCannotBeAutoConverted(config, self);
24994
+ } // Remaining properties are added to a new props object
24995
+
24996
+
24997
+ for (propName in config) {
24998
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
24999
+ props[propName] = config[propName];
25000
+ }
25001
+ } // Resolve default props
25002
+
25003
+
25004
+ if (type && type.defaultProps) {
25005
+ var defaultProps = type.defaultProps;
25006
+
25007
+ for (propName in defaultProps) {
25008
+ if (props[propName] === undefined) {
25009
+ props[propName] = defaultProps[propName];
25010
+ }
25011
+ }
25012
+ }
25013
+
25014
+ if (key || ref) {
25015
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
25016
+
25017
+ if (key) {
25018
+ defineKeyPropWarningGetter(props, displayName);
25019
+ }
25020
+
25021
+ if (ref) {
25022
+ defineRefPropWarningGetter(props, displayName);
25023
+ }
25024
+ }
25025
+
25026
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
25027
+ }
25028
+ }
25029
+
25030
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
25031
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
25032
+
25033
+ function setCurrentlyValidatingElement$1(element) {
25034
+ {
25035
+ if (element) {
25036
+ var owner = element._owner;
25037
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
25038
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
25039
+ } else {
25040
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
25041
+ }
25042
+ }
25043
+ }
25044
+
25045
+ var propTypesMisspellWarningShown;
25046
+
25047
+ {
25048
+ propTypesMisspellWarningShown = false;
25049
+ }
25050
+ /**
25051
+ * Verifies the object is a ReactElement.
25052
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
25053
+ * @param {?object} object
25054
+ * @return {boolean} True if `object` is a ReactElement.
25055
+ * @final
25056
+ */
25057
+
25058
+
25059
+ function isValidElement(object) {
25060
+ {
25061
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
25062
+ }
25063
+ }
25064
+
25065
+ function getDeclarationErrorAddendum() {
25066
+ {
25067
+ if (ReactCurrentOwner$1.current) {
25068
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
25069
+
25070
+ if (name) {
25071
+ return '\n\nCheck the render method of `' + name + '`.';
25072
+ }
25073
+ }
25074
+
25075
+ return '';
25076
+ }
25077
+ }
25078
+
25079
+ function getSourceInfoErrorAddendum(source) {
25080
+ {
25081
+
25082
+ return '';
25083
+ }
25084
+ }
25085
+ /**
25086
+ * Warn if there's no key explicitly set on dynamic arrays of children or
25087
+ * object keys are not valid. This allows us to keep track of children between
25088
+ * updates.
25089
+ */
25090
+
25091
+
25092
+ var ownerHasKeyUseWarning = {};
25093
+
25094
+ function getCurrentComponentErrorInfo(parentType) {
25095
+ {
25096
+ var info = getDeclarationErrorAddendum();
25097
+
25098
+ if (!info) {
25099
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
25100
+
25101
+ if (parentName) {
25102
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
25103
+ }
25104
+ }
25105
+
25106
+ return info;
25107
+ }
25108
+ }
25109
+ /**
25110
+ * Warn if the element doesn't have an explicit key assigned to it.
25111
+ * This element is in an array. The array could grow and shrink or be
25112
+ * reordered. All children that haven't already been validated are required to
25113
+ * have a "key" property assigned to it. Error statuses are cached so a warning
25114
+ * will only be shown once.
25115
+ *
25116
+ * @internal
25117
+ * @param {ReactElement} element Element that requires a key.
25118
+ * @param {*} parentType element's parent's type.
25119
+ */
25120
+
25121
+
25122
+ function validateExplicitKey(element, parentType) {
25123
+ {
25124
+ if (!element._store || element._store.validated || element.key != null) {
25125
+ return;
25126
+ }
25127
+
25128
+ element._store.validated = true;
25129
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
25130
+
25131
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
25132
+ return;
25133
+ }
25134
+
25135
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
25136
+ // property, it may be the creator of the child that's responsible for
25137
+ // assigning it a key.
25138
+
25139
+ var childOwner = '';
25140
+
25141
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
25142
+ // Give the component that originally created this child.
25143
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
25144
+ }
25145
+
25146
+ setCurrentlyValidatingElement$1(element);
25147
+
25148
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
25149
+
25150
+ setCurrentlyValidatingElement$1(null);
25151
+ }
25152
+ }
25153
+ /**
25154
+ * Ensure that every element either is passed in a static location, in an
25155
+ * array with an explicit keys property defined, or in an object literal
25156
+ * with valid key property.
25157
+ *
25158
+ * @internal
25159
+ * @param {ReactNode} node Statically passed child of any type.
25160
+ * @param {*} parentType node's parent's type.
25161
+ */
25162
+
25163
+
25164
+ function validateChildKeys(node, parentType) {
25165
+ {
25166
+ if (typeof node !== 'object') {
25167
+ return;
25168
+ }
25169
+
25170
+ if (isArray(node)) {
25171
+ for (var i = 0; i < node.length; i++) {
25172
+ var child = node[i];
25173
+
25174
+ if (isValidElement(child)) {
25175
+ validateExplicitKey(child, parentType);
25176
+ }
25177
+ }
25178
+ } else if (isValidElement(node)) {
25179
+ // This element was passed in a valid location.
25180
+ if (node._store) {
25181
+ node._store.validated = true;
25182
+ }
25183
+ } else if (node) {
25184
+ var iteratorFn = getIteratorFn(node);
25185
+
25186
+ if (typeof iteratorFn === 'function') {
25187
+ // Entry iterators used to provide implicit keys,
25188
+ // but now we print a separate warning for them later.
25189
+ if (iteratorFn !== node.entries) {
25190
+ var iterator = iteratorFn.call(node);
25191
+ var step;
25192
+
25193
+ while (!(step = iterator.next()).done) {
25194
+ if (isValidElement(step.value)) {
25195
+ validateExplicitKey(step.value, parentType);
25196
+ }
25197
+ }
25198
+ }
25199
+ }
25200
+ }
25201
+ }
25202
+ }
25203
+ /**
25204
+ * Given an element, validate that its props follow the propTypes definition,
25205
+ * provided by the type.
25206
+ *
25207
+ * @param {ReactElement} element
25208
+ */
25209
+
25210
+
25211
+ function validatePropTypes(element) {
25212
+ {
25213
+ var type = element.type;
25214
+
25215
+ if (type === null || type === undefined || typeof type === 'string') {
25216
+ return;
25217
+ }
25218
+
25219
+ var propTypes;
25220
+
25221
+ if (typeof type === 'function') {
25222
+ propTypes = type.propTypes;
25223
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
25224
+ // Inner props are checked in the reconciler.
25225
+ type.$$typeof === REACT_MEMO_TYPE)) {
25226
+ propTypes = type.propTypes;
25227
+ } else {
25228
+ return;
25229
+ }
25230
+
25231
+ if (propTypes) {
25232
+ // Intentionally inside to avoid triggering lazy initializers:
25233
+ var name = getComponentNameFromType(type);
25234
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
25235
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
25236
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
25237
+
25238
+ var _name = getComponentNameFromType(type);
25239
+
25240
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
25241
+ }
25242
+
25243
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
25244
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
25245
+ }
25246
+ }
25247
+ }
25248
+ /**
25249
+ * Given a fragment, validate that it can only be provided with fragment props
25250
+ * @param {ReactElement} fragment
25251
+ */
25252
+
25253
+
25254
+ function validateFragmentProps(fragment) {
25255
+ {
25256
+ var keys = Object.keys(fragment.props);
25257
+
25258
+ for (var i = 0; i < keys.length; i++) {
25259
+ var key = keys[i];
25260
+
25261
+ if (key !== 'children' && key !== 'key') {
25262
+ setCurrentlyValidatingElement$1(fragment);
25263
+
25264
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
25265
+
25266
+ setCurrentlyValidatingElement$1(null);
25267
+ break;
25268
+ }
25269
+ }
25270
+
25271
+ if (fragment.ref !== null) {
25272
+ setCurrentlyValidatingElement$1(fragment);
25273
+
25274
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
25275
+
25276
+ setCurrentlyValidatingElement$1(null);
25277
+ }
25278
+ }
25279
+ }
25280
+
25281
+ var didWarnAboutKeySpread = {};
25282
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
25283
+ {
25284
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
25285
+ // succeed and there will likely be errors in render.
25286
+
25287
+ if (!validType) {
25288
+ var info = '';
25289
+
25290
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
25291
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
25292
+ }
25293
+
25294
+ var sourceInfo = getSourceInfoErrorAddendum();
25295
+
25296
+ if (sourceInfo) {
25297
+ info += sourceInfo;
25298
+ } else {
25299
+ info += getDeclarationErrorAddendum();
25300
+ }
25301
+
25302
+ var typeString;
25303
+
25304
+ if (type === null) {
25305
+ typeString = 'null';
25306
+ } else if (isArray(type)) {
25307
+ typeString = 'array';
25308
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
25309
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
25310
+ info = ' Did you accidentally export a JSX literal instead of a component?';
25311
+ } else {
25312
+ typeString = typeof type;
25313
+ }
25314
+
25315
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
25316
+ }
25317
+
25318
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
25319
+ // TODO: Drop this when these are no longer allowed as the type argument.
25320
+
25321
+ if (element == null) {
25322
+ return element;
25323
+ } // Skip key warning if the type isn't valid since our key validation logic
25324
+ // doesn't expect a non-string/function type and can throw confusing errors.
25325
+ // We don't want exception behavior to differ between dev and prod.
25326
+ // (Rendering will throw with a helpful message and as soon as the type is
25327
+ // fixed, the key warnings will appear.)
25328
+
25329
+
25330
+ if (validType) {
25331
+ var children = props.children;
25332
+
25333
+ if (children !== undefined) {
25334
+ if (isStaticChildren) {
25335
+ if (isArray(children)) {
25336
+ for (var i = 0; i < children.length; i++) {
25337
+ validateChildKeys(children[i], type);
25338
+ }
25339
+
25340
+ if (Object.freeze) {
25341
+ Object.freeze(children);
25342
+ }
25343
+ } else {
25344
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
25345
+ }
25346
+ } else {
25347
+ validateChildKeys(children, type);
25348
+ }
25349
+ }
25350
+ }
25351
+
25352
+ {
25353
+ if (hasOwnProperty.call(props, 'key')) {
25354
+ var componentName = getComponentNameFromType(type);
25355
+ var keys = Object.keys(props).filter(function (k) {
25356
+ return k !== 'key';
25357
+ });
25358
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
25359
+
25360
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
25361
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
25362
+
25363
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
25364
+
25365
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
25366
+ }
25367
+ }
25368
+ }
25369
+
25370
+ if (type === REACT_FRAGMENT_TYPE) {
25371
+ validateFragmentProps(element);
25372
+ } else {
25373
+ validatePropTypes(element);
25374
+ }
25375
+
25376
+ return element;
25377
+ }
25378
+ } // These two functions exist to still get child warnings in dev
25379
+ // even with the prod transform. This means that jsxDEV is purely
25380
+ // opt-in behavior for better messages but that we won't stop
25381
+ // giving you warnings if you use production apis.
25382
+
25383
+ function jsxWithValidationStatic(type, props, key) {
25384
+ {
25385
+ return jsxWithValidation(type, props, key, true);
25386
+ }
25387
+ }
25388
+ function jsxWithValidationDynamic(type, props, key) {
25389
+ {
25390
+ return jsxWithValidation(type, props, key, false);
25391
+ }
25392
+ }
25393
+
25394
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
25395
+ // for now we can ship identical prod functions
25396
+
25397
+ var jsxs = jsxWithValidationStatic ;
25398
+
25399
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
25400
+ reactJsxRuntime_development.jsx = jsx;
25401
+ reactJsxRuntime_development.jsxs = jsxs;
25402
+ })();
25403
+ }
25404
+ return reactJsxRuntime_development;
25405
+ }
25406
+
25407
+ if (process.env.NODE_ENV === 'production') {
25408
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
25409
+ } else {
25410
+ jsxRuntime.exports = requireReactJsxRuntime_development();
25411
+ }
25412
+
25413
+ var jsxRuntimeExports = jsxRuntime.exports;
25414
+
25415
+ var NativeMixView = requireNativeComponent('VeLiveMixView');
25416
+ var index = 0;
25417
+ var getId = function () {
25418
+ return Math.random().toString(36).substring(2, 10) + index++;
25419
+ };
25420
+ var MixView = React.forwardRef(function (props, ref) {
25421
+ var _a = props.captureMode, captureMode = _a === void 0 ? 'onchange' : _a, // Default to most performant mode
25422
+ captureFramerate = props.captureFramerate, _b = props.autoSensitivity, autoSensitivity = _b === void 0 ? 5 : _b, // Default sensitivity
25423
+ onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, restProps = __rest(props, ["captureMode", "captureFramerate", "autoSensitivity", "onViewMount", "onViewUnmount"]);
25424
+ var viewId = useMemo(function () {
25425
+ return restProps.viewId || getId();
25426
+ }, [restProps.viewId]);
25427
+ useEffect(function () {
25428
+ if (onViewMount) {
25429
+ onViewMount(viewId);
25430
+ }
25431
+ return function () {
25432
+ if (onViewUnmount) {
25433
+ onViewUnmount(viewId);
25434
+ }
25435
+ };
25436
+ // eslint-disable-next-line react-hooks/exhaustive-deps
25437
+ }, [viewId]);
25438
+ return (jsxRuntimeExports.jsx(NativeMixView, __assign({}, restProps, { viewId: viewId, captureMode: captureMode, captureFramerate: captureFramerate, autoSensitivity: autoSensitivity, ref: ref })));
25439
+ });
25440
+
25441
+ var VeView = React.forwardRef(function (props, ref) {
25442
+ var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId"]);
25443
+ return (jsxRuntimeExports.jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntimeExports.jsx(View, __assign({}, viewProps, { ref: ref, children: children })) }));
25444
+ });
25445
+
25446
+ var VeTextView = React.forwardRef(function (props, ref) {
25447
+ var renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, textProps = __rest(props, ["renderMode", "onViewMount", "onViewUnmount", "viewId"]);
25448
+ return (jsxRuntimeExports.jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntimeExports.jsx(Text, __assign({}, textProps, { ref: ref, children: textProps.children })) }));
25449
+ });
25450
+
25451
+ var VeImageView = React.forwardRef(function (props, ref) {
25452
+ 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, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "onViewMount", "onViewUnmount", "viewId"]);
25453
+ var captureViewId = useRef(viewId || '');
25454
+ // Auto-detect capture mode based on animation
25455
+ var finalCaptureMode = captureMode || (animated ? 'realtime' : 'onchange');
25456
+ var handleImageLoad = function () {
25457
+ onViewMount === null || onViewMount === void 0 ? void 0 : onViewMount(captureViewId.current);
25458
+ };
25459
+ var onWrapperViewMount = function (calcViewId) {
25460
+ captureViewId.current = calcViewId;
25461
+ };
25462
+ return (jsxRuntimeExports.jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsxRuntimeExports.jsx(Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: { width: '100%', height: '100%' }, ref: ref }))) }));
25463
+ });
25464
+
25465
+ var VeWebView = React.forwardRef(function (props, ref) {
25466
+ 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"]);
25467
+ return (jsxRuntimeExports.jsx(MixView, { renderMode: renderMode, captureMode: captureMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntimeExports.jsx(View, __assign({}, viewProps, { ref: ref })) }));
25468
+ });
25469
+
24676
25470
  setupJSBridge(new ReactNativeBridge(NativeModules.VeLivePushModule, 'VeLivePush:onEvent'));
24677
25471
  setupEnv(new ReactNativeEnv());
24678
25472
  setupLogger({
24679
25473
  customer: function (msg) { return console.log('vepusher-log:', msg); },
24680
25474
  });
24681
25475
 
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 };
25476
+ export { MixView, NativeMixView, NativeViewComponent, VeImageView, VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioDevice, VeLiveAudioEncoderConfiguration, VeLiveAudioFrame, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveCameraDevice, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMediaPlayer, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLiveOrientation, VeLivePixelFormat, VeLivePusher, VeLivePusherConfiguration, VeLivePusherErrorCode, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEffectManager, VeLiveVideoEncoderConfiguration, VeLiveVideoFrame, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, VeTextView, VeView, VeWebView, 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 };