@byteplus/react-native-live-push 1.3.0-rc.10 → 1.3.0-rc.11

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.
@@ -702,18 +702,18 @@ var Bind = function (target, context) {
702
702
  return target;
703
703
  };
704
704
 
705
- var LogLevel;
705
+ exports.LogLevel = void 0;
706
706
  (function (LogLevel) {
707
707
  LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
708
708
  LogLevel[LogLevel["INFO"] = 1] = "INFO";
709
709
  LogLevel[LogLevel["WARN"] = 2] = "WARN";
710
710
  LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
711
711
  LogLevel[LogLevel["NONE"] = 999] = "NONE";
712
- })(LogLevel || (LogLevel = {}));
712
+ })(exports.LogLevel || (exports.LogLevel = {}));
713
713
 
714
714
  var LoggerImpl = /** @class */ (function () {
715
715
  function LoggerImpl() {
716
- this._logLevel = LogLevel.WARN;
716
+ this._logLevel = exports.LogLevel.WARN;
717
717
  this._consumers = [];
718
718
  }
719
719
  LoggerImpl.getInstance = function () {
@@ -796,16 +796,16 @@ var LoggerImpl = /** @class */ (function () {
796
796
  }); });
797
797
  // 控制台输出
798
798
  switch (level) {
799
- case LogLevel.ERROR:
799
+ case exports.LogLevel.ERROR:
800
800
  console.error("".concat(timestamp, " ").concat(message));
801
801
  break;
802
- case LogLevel.WARN:
802
+ case exports.LogLevel.WARN:
803
803
  console.warn("".concat(timestamp, " ").concat(message));
804
804
  break;
805
- case LogLevel.INFO:
805
+ case exports.LogLevel.INFO:
806
806
  console.log("".concat(timestamp, " ").concat(message));
807
807
  break;
808
- case LogLevel.DEBUG:
808
+ case exports.LogLevel.DEBUG:
809
809
  console.debug("".concat(timestamp, " ").concat(message));
810
810
  break;
811
811
  }
@@ -815,28 +815,28 @@ var LoggerImpl = /** @class */ (function () {
815
815
  for (var _i = 0; _i < arguments.length; _i++) {
816
816
  args[_i] = arguments[_i];
817
817
  }
818
- this._log(LogLevel.DEBUG, args);
818
+ this._log(exports.LogLevel.DEBUG, args);
819
819
  };
820
820
  LoggerImpl.prototype.info = function () {
821
821
  var args = [];
822
822
  for (var _i = 0; _i < arguments.length; _i++) {
823
823
  args[_i] = arguments[_i];
824
824
  }
825
- this._log(LogLevel.INFO, args);
825
+ this._log(exports.LogLevel.INFO, args);
826
826
  };
827
827
  LoggerImpl.prototype.warn = function () {
828
828
  var args = [];
829
829
  for (var _i = 0; _i < arguments.length; _i++) {
830
830
  args[_i] = arguments[_i];
831
831
  }
832
- this._log(LogLevel.WARN, args);
832
+ this._log(exports.LogLevel.WARN, args);
833
833
  };
834
834
  LoggerImpl.prototype.error = function () {
835
835
  var args = [];
836
836
  for (var _i = 0; _i < arguments.length; _i++) {
837
837
  args[_i] = arguments[_i];
838
838
  }
839
- this._log(LogLevel.ERROR, args);
839
+ this._log(exports.LogLevel.ERROR, args);
840
840
  };
841
841
  LoggerImpl.MAX_LOG_LENGTH = 4096;
842
842
  return LoggerImpl;
@@ -1457,12 +1457,12 @@ var NativeLoggerManager = function () {
1457
1457
  return InstanceManager;
1458
1458
  })());
1459
1459
 
1460
- /** @class */ ((function () {
1460
+ var LoggerManager = /** @class */ (function () {
1461
1461
  function LoggerManager() {
1462
1462
  }
1463
1463
  LoggerManager.setLogLevel = function (level) {
1464
1464
  this.logger.setLogLevel(level);
1465
- this.logger.debug('[logger-manager] setLogLevel', LogLevel[level]);
1465
+ this.logger.debug('[logger-manager] setLogLevel', exports.LogLevel[level]);
1466
1466
  if (getOS() === 'android') {
1467
1467
  NativeLoggerManager$1.setLogLevel(level);
1468
1468
  }
@@ -1475,9 +1475,17 @@ var NativeLoggerManager = function () {
1475
1475
  };
1476
1476
  LoggerManager.logger = LoggerImpl.getInstance();
1477
1477
  return LoggerManager;
1478
- })());
1478
+ }());
1479
1479
 
1480
1480
  var logger = LoggerImpl.getInstance();
1481
+ function setupLogger(opt) {
1482
+ if (opt.level !== undefined) {
1483
+ LoggerManager.setLogLevel(opt.level);
1484
+ }
1485
+ if (opt.customer !== undefined) {
1486
+ logger.registerConsumer(opt.customer);
1487
+ }
1488
+ }
1481
1489
 
1482
1490
  var ApiCallSpan = /** @class */ (function () {
1483
1491
  function ApiCallSpan(tracer, action) {
@@ -27089,14 +27097,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setComposeNodes', function (origin
27089
27097
  var composePaths = nodes.map(function (path) {
27090
27098
  return VeLiveEffectHelper.getBeautyPathByName(path);
27091
27099
  });
27092
- origin(composePaths);
27100
+ return origin(composePaths);
27093
27101
  }, function (engine) {
27094
27102
  var composePaths = nodes
27095
27103
  .filter(Boolean)
27096
27104
  .map(function (path) {
27097
27105
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27098
27106
  });
27099
- origin(composePaths);
27107
+ return origin(composePaths);
27100
27108
  });
27101
27109
  };
27102
27110
  });
@@ -27106,14 +27114,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'appendComposeNodes', function (ori
27106
27114
  var composePaths = nodes.map(function (path) {
27107
27115
  return VeLiveEffectHelper.getBeautyPathByName(path);
27108
27116
  });
27109
- origin(composePaths);
27117
+ return origin(composePaths);
27110
27118
  }, function (engine) {
27111
27119
  var composePaths = nodes
27112
27120
  .filter(Boolean)
27113
27121
  .map(function (path) {
27114
27122
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27115
27123
  });
27116
- origin(composePaths);
27124
+ return origin(composePaths);
27117
27125
  });
27118
27126
  };
27119
27127
  });
@@ -27123,14 +27131,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'removeComposeNodes', function (ori
27123
27131
  var composePaths = resourcePaths.map(function (path) {
27124
27132
  return VeLiveEffectHelper.getBeautyPathByName(path);
27125
27133
  });
27126
- origin(composePaths);
27134
+ return origin(composePaths);
27127
27135
  }, function (engine) {
27128
27136
  var composePaths = resourcePaths
27129
27137
  .filter(Boolean)
27130
27138
  .map(function (path) {
27131
27139
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27132
27140
  });
27133
- origin(composePaths);
27141
+ return origin(composePaths);
27134
27142
  });
27135
27143
  };
27136
27144
  });
@@ -27138,14 +27146,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'updateComposerNodeIntensity', func
27138
27146
  return function updateComposerNodeIntensity(path, key, intensity) {
27139
27147
  if (!path) {
27140
27148
  console.log('path is empty');
27141
- return;
27149
+ return 0;
27142
27150
  }
27143
27151
  return runImpl(this, function (engine) {
27144
27152
  var fullPath = VeLiveEffectHelper.getBeautyPathByName(path);
27145
- origin(fullPath, key, intensity);
27153
+ return origin(fullPath, key, intensity);
27146
27154
  }, function (engine) {
27147
27155
  var fullPath = VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27148
- origin(fullPath, key, intensity);
27156
+ return origin(fullPath, key, intensity);
27149
27157
  });
27150
27158
  };
27151
27159
  });
@@ -27153,17 +27161,17 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setFilter', function (origin) {
27153
27161
  return function setFilter(path) {
27154
27162
  return runImpl(this, function (engine) {
27155
27163
  if (path) {
27156
- origin(VeLiveEffectHelper.getFilterPathByName(path));
27164
+ return origin(VeLiveEffectHelper.getFilterPathByName(path));
27157
27165
  }
27158
27166
  else {
27159
- origin('');
27167
+ return origin('');
27160
27168
  }
27161
27169
  }, function (engine) {
27162
27170
  if (path) {
27163
- origin(VeLivePushHelper.getResourcePath("FilterResource.bundle/Filter/".concat(path)));
27171
+ return origin(VeLivePushHelper.getResourcePath("FilterResource.bundle/Filter/".concat(path)));
27164
27172
  }
27165
27173
  else {
27166
- origin('');
27174
+ return origin('');
27167
27175
  }
27168
27176
  });
27169
27177
  };
@@ -27172,17 +27180,17 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setSticker', function (origin) {
27172
27180
  return function setSticker(path) {
27173
27181
  return runImpl(this, function (engine) {
27174
27182
  if (path) {
27175
- origin(VeLiveEffectHelper.getStickerPathByName(path));
27183
+ return origin(VeLiveEffectHelper.getStickerPathByName(path));
27176
27184
  }
27177
27185
  else {
27178
- origin('');
27186
+ return origin('');
27179
27187
  }
27180
27188
  }, function (engine) {
27181
27189
  if (path) {
27182
- origin(VeLivePushHelper.getResourcePath("StickerResource.bundle/stickers/".concat(path)));
27190
+ return origin(VeLivePushHelper.getResourcePath("StickerResource.bundle/stickers/".concat(path)));
27183
27191
  }
27184
27192
  else {
27185
- origin('');
27193
+ return origin('');
27186
27194
  }
27187
27195
  });
27188
27196
  };
@@ -27214,8 +27222,8 @@ var MixView = React.forwardRef(function (props, ref) {
27214
27222
  });
27215
27223
 
27216
27224
  var VeView = React.forwardRef(function (props, ref) {
27217
- var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId"]);
27218
- return (jsxRuntime.jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntime.jsx(reactNative.View, __assign({}, viewProps, { ref: ref, children: children })) }));
27225
+ var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, captureMode = props.captureMode, captureFramerate = props.captureFramerate, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId", "captureMode", "captureFramerate"]);
27226
+ return (jsxRuntime.jsx(MixView, { renderMode: renderMode, viewId: viewId, captureMode: captureMode, captureFramerate: captureFramerate, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntime.jsx(reactNative.View, __assign({}, viewProps, { ref: ref, children: children })) }));
27219
27227
  });
27220
27228
 
27221
27229
  var VeTextView = React.forwardRef(function (props, ref) {
@@ -27224,7 +27232,7 @@ var VeTextView = React.forwardRef(function (props, ref) {
27224
27232
  });
27225
27233
 
27226
27234
  var VeImageView = React.forwardRef(function (props, ref) {
27227
- var children = props.children, renderMode = props.renderMode, _a = props.animated, animated = _a === void 0 ? false : _a, captureMode = props.captureMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, style = props.style, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "onViewMount", "onViewUnmount", "viewId", "style"]);
27235
+ var children = props.children, renderMode = props.renderMode, _a = props.animated, animated = _a === void 0 ? false : _a, captureMode = props.captureMode, captureFramerate = props.captureFramerate, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, style = props.style, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "captureFramerate", "onViewMount", "onViewUnmount", "viewId", "style"]);
27228
27236
  var captureViewId = React.useRef(viewId || '');
27229
27237
  // Auto-detect capture mode based on animation
27230
27238
  var finalCaptureMode = captureMode || (animated ? 'realtime' : 'onchange');
@@ -27241,12 +27249,12 @@ var VeImageView = React.forwardRef(function (props, ref) {
27241
27249
  };
27242
27250
  return reactNative.StyleSheet.flatten([defaultStyle, style]);
27243
27251
  }, [style]);
27244
- return (jsxRuntime.jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsxRuntime.jsx(reactNative.Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: mergedStyle, ref: ref }))) }));
27252
+ return (jsxRuntime.jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, captureFramerate: captureFramerate, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsxRuntime.jsx(reactNative.Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: mergedStyle, ref: ref }))) }));
27245
27253
  });
27246
27254
 
27247
27255
  var VeWebView = React.forwardRef(function (props, ref) {
27248
- var renderMode = props.renderMode, _a = props.captureMode, captureMode = _a === void 0 ? 'realtime' : _a, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["renderMode", "captureMode", "onViewMount", "onViewUnmount", "viewId"]);
27249
- return (jsxRuntime.jsx(MixView, { renderMode: renderMode, captureMode: captureMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntime.jsx(reactNative.View, __assign({}, viewProps, { ref: ref })) }));
27256
+ var renderMode = props.renderMode, _a = props.captureMode, captureMode = _a === void 0 ? 'realtime' : _a, captureFramerate = props.captureFramerate, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["renderMode", "captureMode", "captureFramerate", "onViewMount", "onViewUnmount", "viewId"]);
27257
+ return (jsxRuntime.jsx(MixView, { renderMode: renderMode, captureMode: captureMode, captureFramerate: captureFramerate, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsxRuntime.jsx(reactNative.View, __assign({}, viewProps, { ref: ref })) }));
27250
27258
  });
27251
27259
 
27252
27260
  setupJSBridge(new ReactNativeBridge(reactNative.NativeModules.VeLivePushModule, 'VeLivePush:onEvent'));
@@ -27255,6 +27263,8 @@ setupEnv(new ReactNativeEnv());
27255
27263
  exports.MixView = MixView;
27256
27264
  exports.NativeMixView = NativeMixView;
27257
27265
  exports.NativeViewComponent = NativeViewComponent;
27266
+ exports.ReactNativeBridge = ReactNativeBridge;
27267
+ exports.ReactNativeEnv = ReactNativeEnv;
27258
27268
  exports.VeImageView = VeImageView;
27259
27269
  exports.VeLiveAudioCaptureConfiguration = VeLiveAudioCaptureConfiguration;
27260
27270
  exports.VeLiveAudioDevice = VeLiveAudioDevice;
@@ -27301,3 +27311,4 @@ exports.ios_VeLiveSnapshotListener = ios_VeLiveSnapshotListener;
27301
27311
  exports.ios_VeLiveVideoFrameFilter = ios_VeLiveVideoFrameFilter;
27302
27312
  exports.ios_VeLiveVideoFrameListener = ios_VeLiveVideoFrameListener;
27303
27313
  exports.relaunchPusher = relaunchPusher;
27314
+ exports.setupLogger = setupLogger;
@@ -1,3 +1,5 @@
1
+ export { setupLogger, LogLevel } from '@vcloud-lux/hybrid-runtime';
2
+ export * from '@vcloud-lux/hybrid-runtime/react-native';
1
3
  export * from './component';
2
4
  export * from './core';
3
5
  export * from './view';
@@ -1455,7 +1455,7 @@ var NativeLoggerManager = function () {
1455
1455
  return InstanceManager;
1456
1456
  })());
1457
1457
 
1458
- /** @class */ ((function () {
1458
+ var LoggerManager = /** @class */ (function () {
1459
1459
  function LoggerManager() {
1460
1460
  }
1461
1461
  LoggerManager.setLogLevel = function (level) {
@@ -1473,9 +1473,17 @@ var NativeLoggerManager = function () {
1473
1473
  };
1474
1474
  LoggerManager.logger = LoggerImpl.getInstance();
1475
1475
  return LoggerManager;
1476
- })());
1476
+ }());
1477
1477
 
1478
1478
  var logger = LoggerImpl.getInstance();
1479
+ function setupLogger(opt) {
1480
+ if (opt.level !== undefined) {
1481
+ LoggerManager.setLogLevel(opt.level);
1482
+ }
1483
+ if (opt.customer !== undefined) {
1484
+ logger.registerConsumer(opt.customer);
1485
+ }
1486
+ }
1479
1487
 
1480
1488
  var ApiCallSpan = /** @class */ (function () {
1481
1489
  function ApiCallSpan(tracer, action) {
@@ -27087,14 +27095,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setComposeNodes', function (origin
27087
27095
  var composePaths = nodes.map(function (path) {
27088
27096
  return VeLiveEffectHelper.getBeautyPathByName(path);
27089
27097
  });
27090
- origin(composePaths);
27098
+ return origin(composePaths);
27091
27099
  }, function (engine) {
27092
27100
  var composePaths = nodes
27093
27101
  .filter(Boolean)
27094
27102
  .map(function (path) {
27095
27103
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27096
27104
  });
27097
- origin(composePaths);
27105
+ return origin(composePaths);
27098
27106
  });
27099
27107
  };
27100
27108
  });
@@ -27104,14 +27112,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'appendComposeNodes', function (ori
27104
27112
  var composePaths = nodes.map(function (path) {
27105
27113
  return VeLiveEffectHelper.getBeautyPathByName(path);
27106
27114
  });
27107
- origin(composePaths);
27115
+ return origin(composePaths);
27108
27116
  }, function (engine) {
27109
27117
  var composePaths = nodes
27110
27118
  .filter(Boolean)
27111
27119
  .map(function (path) {
27112
27120
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27113
27121
  });
27114
- origin(composePaths);
27122
+ return origin(composePaths);
27115
27123
  });
27116
27124
  };
27117
27125
  });
@@ -27121,14 +27129,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'removeComposeNodes', function (ori
27121
27129
  var composePaths = resourcePaths.map(function (path) {
27122
27130
  return VeLiveEffectHelper.getBeautyPathByName(path);
27123
27131
  });
27124
- origin(composePaths);
27132
+ return origin(composePaths);
27125
27133
  }, function (engine) {
27126
27134
  var composePaths = resourcePaths
27127
27135
  .filter(Boolean)
27128
27136
  .map(function (path) {
27129
27137
  return VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27130
27138
  });
27131
- origin(composePaths);
27139
+ return origin(composePaths);
27132
27140
  });
27133
27141
  };
27134
27142
  });
@@ -27136,14 +27144,14 @@ extendsClassMethod(VeLiveVideoEffectManager, 'updateComposerNodeIntensity', func
27136
27144
  return function updateComposerNodeIntensity(path, key, intensity) {
27137
27145
  if (!path) {
27138
27146
  console.log('path is empty');
27139
- return;
27147
+ return 0;
27140
27148
  }
27141
27149
  return runImpl(this, function (engine) {
27142
27150
  var fullPath = VeLiveEffectHelper.getBeautyPathByName(path);
27143
- origin(fullPath, key, intensity);
27151
+ return origin(fullPath, key, intensity);
27144
27152
  }, function (engine) {
27145
27153
  var fullPath = VeLivePushHelper.getResourcePath("ComposeMakeup.bundle/ComposeMakeup/".concat(path));
27146
- origin(fullPath, key, intensity);
27154
+ return origin(fullPath, key, intensity);
27147
27155
  });
27148
27156
  };
27149
27157
  });
@@ -27151,17 +27159,17 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setFilter', function (origin) {
27151
27159
  return function setFilter(path) {
27152
27160
  return runImpl(this, function (engine) {
27153
27161
  if (path) {
27154
- origin(VeLiveEffectHelper.getFilterPathByName(path));
27162
+ return origin(VeLiveEffectHelper.getFilterPathByName(path));
27155
27163
  }
27156
27164
  else {
27157
- origin('');
27165
+ return origin('');
27158
27166
  }
27159
27167
  }, function (engine) {
27160
27168
  if (path) {
27161
- origin(VeLivePushHelper.getResourcePath("FilterResource.bundle/Filter/".concat(path)));
27169
+ return origin(VeLivePushHelper.getResourcePath("FilterResource.bundle/Filter/".concat(path)));
27162
27170
  }
27163
27171
  else {
27164
- origin('');
27172
+ return origin('');
27165
27173
  }
27166
27174
  });
27167
27175
  };
@@ -27170,17 +27178,17 @@ extendsClassMethod(VeLiveVideoEffectManager, 'setSticker', function (origin) {
27170
27178
  return function setSticker(path) {
27171
27179
  return runImpl(this, function (engine) {
27172
27180
  if (path) {
27173
- origin(VeLiveEffectHelper.getStickerPathByName(path));
27181
+ return origin(VeLiveEffectHelper.getStickerPathByName(path));
27174
27182
  }
27175
27183
  else {
27176
- origin('');
27184
+ return origin('');
27177
27185
  }
27178
27186
  }, function (engine) {
27179
27187
  if (path) {
27180
- origin(VeLivePushHelper.getResourcePath("StickerResource.bundle/stickers/".concat(path)));
27188
+ return origin(VeLivePushHelper.getResourcePath("StickerResource.bundle/stickers/".concat(path)));
27181
27189
  }
27182
27190
  else {
27183
- origin('');
27191
+ return origin('');
27184
27192
  }
27185
27193
  });
27186
27194
  };
@@ -27212,8 +27220,8 @@ var MixView = React.forwardRef(function (props, ref) {
27212
27220
  });
27213
27221
 
27214
27222
  var VeView = React.forwardRef(function (props, ref) {
27215
- var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId"]);
27216
- return (jsx(MixView, { renderMode: renderMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref, children: children })) }));
27223
+ var children = props.children, renderMode = props.renderMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, captureMode = props.captureMode, captureFramerate = props.captureFramerate, viewProps = __rest(props, ["children", "renderMode", "onViewMount", "onViewUnmount", "viewId", "captureMode", "captureFramerate"]);
27224
+ return (jsx(MixView, { renderMode: renderMode, viewId: viewId, captureMode: captureMode, captureFramerate: captureFramerate, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref, children: children })) }));
27217
27225
  });
27218
27226
 
27219
27227
  var VeTextView = React.forwardRef(function (props, ref) {
@@ -27222,7 +27230,7 @@ var VeTextView = React.forwardRef(function (props, ref) {
27222
27230
  });
27223
27231
 
27224
27232
  var VeImageView = React.forwardRef(function (props, ref) {
27225
- var children = props.children, renderMode = props.renderMode, _a = props.animated, animated = _a === void 0 ? false : _a, captureMode = props.captureMode, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, style = props.style, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "onViewMount", "onViewUnmount", "viewId", "style"]);
27233
+ var children = props.children, renderMode = props.renderMode, _a = props.animated, animated = _a === void 0 ? false : _a, captureMode = props.captureMode, captureFramerate = props.captureFramerate, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, style = props.style, imageProps = __rest(props, ["children", "renderMode", "animated", "captureMode", "captureFramerate", "onViewMount", "onViewUnmount", "viewId", "style"]);
27226
27234
  var captureViewId = useRef(viewId || '');
27227
27235
  // Auto-detect capture mode based on animation
27228
27236
  var finalCaptureMode = captureMode || (animated ? 'realtime' : 'onchange');
@@ -27239,15 +27247,15 @@ var VeImageView = React.forwardRef(function (props, ref) {
27239
27247
  };
27240
27248
  return StyleSheet.flatten([defaultStyle, style]);
27241
27249
  }, [style]);
27242
- return (jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsx(Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: mergedStyle, ref: ref }))) }));
27250
+ return (jsx(MixView, { renderMode: renderMode, captureMode: finalCaptureMode, captureFramerate: captureFramerate, viewId: viewId, onViewMount: onWrapperViewMount, onViewUnmount: onViewUnmount, children: children ? (children) : (jsx(Image, __assign({}, imageProps, { onLoad: handleImageLoad, style: mergedStyle, ref: ref }))) }));
27243
27251
  });
27244
27252
 
27245
27253
  var VeWebView = React.forwardRef(function (props, ref) {
27246
- var renderMode = props.renderMode, _a = props.captureMode, captureMode = _a === void 0 ? 'realtime' : _a, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["renderMode", "captureMode", "onViewMount", "onViewUnmount", "viewId"]);
27247
- return (jsx(MixView, { renderMode: renderMode, captureMode: captureMode, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref })) }));
27254
+ var renderMode = props.renderMode, _a = props.captureMode, captureMode = _a === void 0 ? 'realtime' : _a, captureFramerate = props.captureFramerate, onViewMount = props.onViewMount, onViewUnmount = props.onViewUnmount, viewId = props.viewId, viewProps = __rest(props, ["renderMode", "captureMode", "captureFramerate", "onViewMount", "onViewUnmount", "viewId"]);
27255
+ return (jsx(MixView, { renderMode: renderMode, captureMode: captureMode, captureFramerate: captureFramerate, viewId: viewId, onViewMount: onViewMount, onViewUnmount: onViewUnmount, children: jsx(View, __assign({}, viewProps, { ref: ref })) }));
27248
27256
  });
27249
27257
 
27250
27258
  setupJSBridge(new ReactNativeBridge(NativeModules.VeLivePushModule, 'VeLivePush:onEvent'));
27251
27259
  setupEnv(new ReactNativeEnv());
27252
27260
 
27253
- 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, initVideoEffectResource, ios_VeLiveAudioFrameFilter, ios_VeLiveAudioFrameListener, ios_VeLiveFileRecordingListener, ios_VeLiveMediaPlayerFrameListener, ios_VeLiveMediaPlayerListener, ios_VeLivePusherObserver, ios_VeLivePusherStatisticsObserver, ios_VeLiveSnapshotListener, ios_VeLiveVideoFrameFilter, ios_VeLiveVideoFrameListener, relaunchPusher };
27261
+ export { LogLevel, MixView, NativeMixView, NativeViewComponent, ReactNativeBridge, ReactNativeEnv, 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, initVideoEffectResource, ios_VeLiveAudioFrameFilter, ios_VeLiveAudioFrameListener, ios_VeLiveFileRecordingListener, ios_VeLiveMediaPlayerFrameListener, ios_VeLiveMediaPlayerListener, ios_VeLivePusherObserver, ios_VeLivePusherStatisticsObserver, ios_VeLiveSnapshotListener, ios_VeLiveVideoFrameFilter, ios_VeLiveVideoFrameListener, relaunchPusher, setupLogger };
@@ -1,3 +1,5 @@
1
+ export { setupLogger, LogLevel } from '@vcloud-lux/hybrid-runtime';
2
+ export * from '@vcloud-lux/hybrid-runtime/react-native';
1
3
  export * from './component';
2
4
  export * from './core';
3
5
  export * from './view';
@@ -1,3 +1,5 @@
1
+ export { setupLogger, LogLevel } from '@vcloud-lux/hybrid-runtime';
2
+ export * from '@vcloud-lux/hybrid-runtime/react-native';
1
3
  export * from './component';
2
4
  export * from './core';
3
5
  export * from './view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/react-native-live-push",
3
- "version": "1.3.0-rc.10",
3
+ "version": "1.3.0-rc.11",
4
4
  "peerDependencies": {
5
5
  "react": "*",
6
6
  "react-native": "*"
@@ -34,11 +34,11 @@
34
34
  "nativeVersion": {
35
35
  "volc": {
36
36
  "android": "1.46.3.6",
37
- "ios": "1.46.3.9-premium"
37
+ "ios": "1.46.3.10-premium"
38
38
  },
39
39
  "byteplus": {
40
40
  "android": "1.46.300.2",
41
- "ios": "1.46.300.6-alpha1-premium"
41
+ "ios": "1.46.300.7"
42
42
  }
43
43
  }
44
44
  }