@byteplus/react-native-rtc 1.0.5 → 1.0.6

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.
@@ -7,18 +7,21 @@ import android.util.Log;
7
7
 
8
8
  import com.ss.bytertc.engine.RTCVideo;
9
9
  import com.ss.bytertc.engine.VideoEncoderConfig;
10
+ import com.ss.bytertc.engine.data.MirrorType;
10
11
 
11
12
  public class VertcHelper {
12
13
 
13
14
  static public VertcHelper sInstance = new VertcHelper();
14
15
 
15
16
  public static VertcHelper getInstance() {
16
- Log.d("VertcHelper", "channelSolutions" + sInstance);
17
17
  return sInstance;
18
18
  }
19
19
 
20
20
  public int invokeSetVideoEncoderConfig(RTCVideo engine, VideoEncoderConfig[] channelSolutions) {
21
- Log.d("VertcHelper", "channelSolutions");
22
21
  return engine.setVideoEncoderConfig(channelSolutions);
23
22
  }
23
+
24
+ public int invokeSetLocalVideoMirrorType(RTCVideo engine, int mirrorType) {
25
+ return engine.setLocalVideoMirrorType(MirrorType.fromId(mirrorType));
26
+ }
24
27
  }
@@ -6547,7 +6547,7 @@ var AudioPlaybackDevice;
6547
6547
  AudioPlaybackDevice[AudioPlaybackDevice["AUDIO_PLAYBACK_DEVICE_HEADSET_BLUETOOTH"] = 4] = "AUDIO_PLAYBACK_DEVICE_HEADSET_BLUETOOTH";
6548
6548
  AudioPlaybackDevice[AudioPlaybackDevice["AUDIO_PLAYBACK_DEVICE_HEADSET_USB"] = 5] = "AUDIO_PLAYBACK_DEVICE_HEADSET_USB";
6549
6549
  })(AudioPlaybackDevice || (AudioPlaybackDevice = {}));
6550
- (function () {
6550
+ var ForwardStreamInfo$1 = function () {
6551
6551
  var _classDecorators = [NativeClass('com.ss.bytertc.engine.data.ForwardStreamInfo')];
6552
6552
  var _classDescriptor;
6553
6553
  var _classExtraInitializers = [];
@@ -6579,7 +6579,7 @@ var AudioPlaybackDevice;
6579
6579
  __runInitializers(_classThis, _classExtraInitializers);
6580
6580
  })();
6581
6581
  return _classThis;
6582
- })();
6582
+ }();
6583
6583
  var VideoPreprocessorConfig$1 = function () {
6584
6584
  var _classDecorators = [NativeClass('com.ss.bytertc.engine.video.VideoPreprocessorConfig')];
6585
6585
  var _classDescriptor;
@@ -15012,7 +15012,7 @@ var ByteRTCUserOfflineReason;
15012
15012
  })();
15013
15013
  return _classThis;
15014
15014
  })();
15015
- (function () {
15015
+ var ByteRTCForwardStreamConfiguration = function () {
15016
15016
  var _classDecorators = [NativeClass('ByteRTCForwardStreamConfiguration')];
15017
15017
  var _classDescriptor;
15018
15018
  var _classExtraInitializers = [];
@@ -15051,7 +15051,7 @@ var ByteRTCUserOfflineReason;
15051
15051
  __runInitializers(_classThis, _classExtraInitializers);
15052
15052
  })();
15053
15053
  return _classThis;
15054
- })();
15054
+ }();
15055
15055
  var ByteRTCVideoEncoderConfig = function () {
15056
15056
  var _classDecorators = [NativeClass('ByteRTCVideoEncoderConfig')];
15057
15057
  var _classDescriptor;
@@ -59458,6 +59458,113 @@ var ios_IAudioFrameProcessor = /** @class */ (function (_super) {
59458
59458
  return ios_IAudioFrameProcessor;
59459
59459
  }(ByteRTCAudioFrameProcessor));
59460
59460
 
59461
+ var ForwardStreamInfo = function () {
59462
+ var _classDecorators = [PackClass()];
59463
+ var _classDescriptor;
59464
+ var _classExtraInitializers = [];
59465
+ var _classThis;
59466
+ _classThis = /** @class */ (function () {
59467
+ function ForwardStreamInfo_1() {
59468
+ }
59469
+ Object.defineProperty(ForwardStreamInfo_1.prototype, "roomId", {
59470
+ get: function () {
59471
+ var $os = env.getOS();
59472
+ if ($os === 'android') {
59473
+ return String(this._instance.roomId);
59474
+ }
59475
+ else if ($os === 'ios') {
59476
+ return String(this._instance.roomId);
59477
+ }
59478
+ else {
59479
+ throw new Error('Not Support Platform ' + $os);
59480
+ }
59481
+ },
59482
+ set: function (value) {
59483
+ var $os = env.getOS();
59484
+ if ($os === 'android') {
59485
+ this._instance.roomId = value;
59486
+ }
59487
+ else if ($os === 'ios') {
59488
+ this._instance.roomId = value;
59489
+ }
59490
+ else {
59491
+ throw new Error('Not Support Platform ' + $os);
59492
+ }
59493
+ },
59494
+ enumerable: false,
59495
+ configurable: true
59496
+ });
59497
+ Object.defineProperty(ForwardStreamInfo_1.prototype, "token", {
59498
+ get: function () {
59499
+ var $os = env.getOS();
59500
+ if ($os === 'android') {
59501
+ return String(this._instance.token);
59502
+ }
59503
+ else if ($os === 'ios') {
59504
+ return String(this._instance.token);
59505
+ }
59506
+ else {
59507
+ throw new Error('Not Support Platform ' + $os);
59508
+ }
59509
+ },
59510
+ set: function (value) {
59511
+ var $os = env.getOS();
59512
+ if ($os === 'android') {
59513
+ this._instance.token = value;
59514
+ }
59515
+ else if ($os === 'ios') {
59516
+ this._instance.token = value;
59517
+ }
59518
+ else {
59519
+ throw new Error('Not Support Platform ' + $os);
59520
+ }
59521
+ },
59522
+ enumerable: false,
59523
+ configurable: true
59524
+ });
59525
+ ForwardStreamInfo_1.prototype.__init = function () {
59526
+ var args = [];
59527
+ for (var _i = 0; _i < arguments.length; _i++) {
59528
+ args[_i] = arguments[_i];
59529
+ }
59530
+ this._instance = this.__new_instance.apply(this, args);
59531
+ };
59532
+ ForwardStreamInfo_1.prototype.__new_instance = function () {
59533
+ var args = [];
59534
+ for (var _i = 0; _i < arguments.length; _i++) {
59535
+ args[_i] = arguments[_i];
59536
+ }
59537
+ var i = function () {
59538
+ var _a;
59539
+ return new ((_a = ByteRTCForwardStreamConfiguration).bind.apply(_a, __spreadArray([void 0], args, false)))();
59540
+ };
59541
+ var a = function () {
59542
+ var _a;
59543
+ return new ((_a = ForwardStreamInfo$1).bind.apply(_a, __spreadArray([void 0], args, false)))();
59544
+ };
59545
+ var $os = env.getOS();
59546
+ if ($os === 'android') {
59547
+ return a();
59548
+ }
59549
+ else if ($os === 'ios') {
59550
+ return i();
59551
+ }
59552
+ else {
59553
+ throw new Error('Not Support Platform ' + $os);
59554
+ }
59555
+ };
59556
+ return ForwardStreamInfo_1;
59557
+ }());
59558
+ __setFunctionName(_classThis, "ForwardStreamInfo");
59559
+ (function () {
59560
+ var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
59561
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
59562
+ _classThis = _classDescriptor.value;
59563
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
59564
+ __runInitializers(_classThis, _classExtraInitializers);
59565
+ })();
59566
+ return _classThis;
59567
+ }();
59461
59568
  var ISpatialAudio = function () {
59462
59569
  var _classDecorators = [PackClass()];
59463
59570
  var _classDescriptor;
@@ -65710,6 +65817,44 @@ var RTCRoom = function () {
65710
65817
  throw new Error('Not Support Platform ' + $os);
65711
65818
  }
65712
65819
  };
65820
+ RTCRoom_1.prototype.startForwardStreamToRooms = function (forwardStreamInfos) {
65821
+ var _this = this;
65822
+ var a = function () {
65823
+ return Number(_this._instance.startForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65824
+ };
65825
+ var i = function () {
65826
+ return Number(_this._instance.startForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65827
+ };
65828
+ var $os = env.getOS();
65829
+ if ($os === 'android') {
65830
+ return a();
65831
+ }
65832
+ else if ($os === 'ios') {
65833
+ return i();
65834
+ }
65835
+ else {
65836
+ throw new Error('Not Support Platform ' + $os);
65837
+ }
65838
+ };
65839
+ RTCRoom_1.prototype.updateForwardStreamToRooms = function (forwardStreamInfos) {
65840
+ var _this = this;
65841
+ var a = function () {
65842
+ return Number(_this._instance.updateForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65843
+ };
65844
+ var i = function () {
65845
+ return Number(_this._instance.updateForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65846
+ };
65847
+ var $os = env.getOS();
65848
+ if ($os === 'android') {
65849
+ return a();
65850
+ }
65851
+ else if ($os === 'ios') {
65852
+ return i();
65853
+ }
65854
+ else {
65855
+ throw new Error('Not Support Platform ' + $os);
65856
+ }
65857
+ };
65713
65858
  /** {en}
65714
65859
  * @detail api
65715
65860
  * @region Multi-room
@@ -68066,6 +68211,7 @@ var VertcHelper = function () {
68066
68211
  var _instanceExtraInitializers = [];
68067
68212
  var _static_getInstance_decorators;
68068
68213
  var _invokeSetVideoEncoderConfig_decorators;
68214
+ var _invokeSetLocalVideoMirrorType_decorators;
68069
68215
  var VertcHelper = _classThis = /** @class */ (function (_super) {
68070
68216
  __extends(VertcHelper_1, _super);
68071
68217
  function VertcHelper_1() {
@@ -68079,6 +68225,9 @@ var VertcHelper = function () {
68079
68225
  VertcHelper_1.prototype.invokeSetVideoEncoderConfig = function (video, channelSolutions) {
68080
68226
  throw new Error('not implement');
68081
68227
  };
68228
+ VertcHelper_1.prototype.invokeSetLocalVideoMirrorType = function (video, mirrorType) {
68229
+ throw new Error('not implement');
68230
+ };
68082
68231
  return VertcHelper_1;
68083
68232
  }(_classSuper));
68084
68233
  __setFunctionName(_classThis, "VertcHelper");
@@ -68087,8 +68236,10 @@ var VertcHelper = function () {
68087
68236
  var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
68088
68237
  _static_getInstance_decorators = [ReturnClass(function () { return VertcHelper; }), NativeStaticMethodSync()];
68089
68238
  _invokeSetVideoEncoderConfig_decorators = [NativeMethod()];
68239
+ _invokeSetLocalVideoMirrorType_decorators = [NativeMethod()];
68090
68240
  __esDecorate(_classThis, null, _static_getInstance_decorators, { kind: "method", name: "getInstance", static: true, private: false, access: { has: function (obj) { return "getInstance" in obj; }, get: function (obj) { return obj.getInstance; } }, metadata: _metadata }, null, _staticExtraInitializers);
68091
68241
  __esDecorate(_classThis, null, _invokeSetVideoEncoderConfig_decorators, { kind: "method", name: "invokeSetVideoEncoderConfig", static: false, private: false, access: { has: function (obj) { return "invokeSetVideoEncoderConfig" in obj; }, get: function (obj) { return obj.invokeSetVideoEncoderConfig; } }, metadata: _metadata }, null, _instanceExtraInitializers);
68242
+ __esDecorate(_classThis, null, _invokeSetLocalVideoMirrorType_decorators, { kind: "method", name: "invokeSetLocalVideoMirrorType", static: false, private: false, access: { has: function (obj) { return "invokeSetLocalVideoMirrorType" in obj; }, get: function (obj) { return obj.invokeSetLocalVideoMirrorType; } }, metadata: _metadata }, null, _instanceExtraInitializers);
68092
68243
  __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
68093
68244
  VertcHelper = _classThis = _classDescriptor.value;
68094
68245
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
@@ -68337,14 +68488,36 @@ extendsClassMethod(RTCVideo, 'setVideoEncoderConfig', function (origin) {
68337
68488
  var _this = this;
68338
68489
  var a = function () {
68339
68490
  var vertc = VertcHelper.getInstance();
68340
- return Number(vertc.invokeSetVideoEncoderConfig(unpackObject(_this), channelSolutions.map(function (item) { return unpackObject(item); })));
68491
+ return vertc.invokeSetVideoEncoderConfig(unpackObject(_this), channelSolutions.map(function (item) { return unpackObject(item); }));
68341
68492
  };
68342
68493
  var i = function () {
68343
68494
  return Number(origin(channelSolutions));
68344
68495
  };
68345
68496
  var $os = env.getOS();
68346
68497
  if ($os === 'android') {
68347
- return a();
68498
+ return a().then(Number);
68499
+ }
68500
+ else if ($os === 'ios') {
68501
+ return i();
68502
+ }
68503
+ else {
68504
+ throw new Error('Not Support Platform ' + $os);
68505
+ }
68506
+ };
68507
+ });
68508
+ extendsClassMethod(RTCVideo, 'setLocalVideoMirrorType', function (origin) {
68509
+ return function impl(mirrorType) {
68510
+ var _this = this;
68511
+ var a = function () {
68512
+ var vertc = VertcHelper.getInstance();
68513
+ return vertc.invokeSetLocalVideoMirrorType(unpackObject(_this), t_MirrorType.ts_to_android(mirrorType));
68514
+ };
68515
+ var i = function () {
68516
+ return Number(origin(mirrorType));
68517
+ };
68518
+ var $os = env.getOS();
68519
+ if ($os === 'android') {
68520
+ return a().then(Number);
68348
68521
  }
68349
68522
  else if ($os === 'ios') {
68350
68523
  return i();
@@ -68637,6 +68810,44 @@ var proxyRoom = function (room) {
68637
68810
  });
68638
68811
  return originalSetRemoteVideoConfig.call(room, userId, remoteStreamInfo);
68639
68812
  };
68813
+ var originalStartForwardStreamToRooms = room.startForwardStreamToRooms;
68814
+ room.startForwardStreamToRooms = function (forwardStreamConfig) {
68815
+ var streamInfos = platformBriefs({
68816
+ android: function () {
68817
+ return forwardStreamConfig.map(function (conf) {
68818
+ return new ForwardStreamInfo(conf.roomId, conf.token);
68819
+ });
68820
+ },
68821
+ ios: function () {
68822
+ return forwardStreamConfig.map(function (conf) {
68823
+ var streamInfo = new ForwardStreamInfo();
68824
+ streamInfo.roomId = conf.roomId;
68825
+ streamInfo.token = conf.token;
68826
+ return streamInfo;
68827
+ });
68828
+ },
68829
+ });
68830
+ return originalStartForwardStreamToRooms.call(room, streamInfos);
68831
+ };
68832
+ var originalUpdateForwardStreamToRooms = room.updateForwardStreamToRooms;
68833
+ room.updateForwardStreamToRooms = function (forwardStreamConfig) {
68834
+ var streamInfos = platformBriefs({
68835
+ android: function () {
68836
+ return forwardStreamConfig.map(function (conf) {
68837
+ return new ForwardStreamInfo(conf.roomId, conf.token);
68838
+ });
68839
+ },
68840
+ ios: function () {
68841
+ return forwardStreamConfig.map(function (conf) {
68842
+ var streamInfo = new ForwardStreamInfo();
68843
+ streamInfo.roomId = conf.roomId;
68844
+ streamInfo.token = conf.token;
68845
+ return streamInfo;
68846
+ });
68847
+ },
68848
+ });
68849
+ return originalUpdateForwardStreamToRooms.call(room, streamInfos);
68850
+ };
68640
68851
  return room;
68641
68852
  };
68642
68853
  var proxyAudioEffectPlayer = function (audioEffectPlayer) {
@@ -68860,6 +69071,7 @@ exports.DownloadResult = DownloadResult;
68860
69071
  exports.EchoTestConfig = EchoTestConfig;
68861
69072
  exports.FaceDetectionResult = FaceDetectionResult;
68862
69073
  exports.ForwardStreamEventInfo = ForwardStreamEventInfo;
69074
+ exports.ForwardStreamInfo = ForwardStreamInfo;
68863
69075
  exports.ForwardStreamStateInfo = ForwardStreamStateInfo;
68864
69076
  exports.HotMusicInfo = HotMusicInfo;
68865
69077
  exports.HumanOrientation = HumanOrientation;
@@ -6545,7 +6545,7 @@ var AudioPlaybackDevice$1;
6545
6545
  AudioPlaybackDevice[AudioPlaybackDevice["AUDIO_PLAYBACK_DEVICE_HEADSET_BLUETOOTH"] = 4] = "AUDIO_PLAYBACK_DEVICE_HEADSET_BLUETOOTH";
6546
6546
  AudioPlaybackDevice[AudioPlaybackDevice["AUDIO_PLAYBACK_DEVICE_HEADSET_USB"] = 5] = "AUDIO_PLAYBACK_DEVICE_HEADSET_USB";
6547
6547
  })(AudioPlaybackDevice$1 || (AudioPlaybackDevice$1 = {}));
6548
- (function () {
6548
+ var ForwardStreamInfo$1 = function () {
6549
6549
  var _classDecorators = [NativeClass('com.ss.bytertc.engine.data.ForwardStreamInfo')];
6550
6550
  var _classDescriptor;
6551
6551
  var _classExtraInitializers = [];
@@ -6577,7 +6577,7 @@ var AudioPlaybackDevice$1;
6577
6577
  __runInitializers(_classThis, _classExtraInitializers);
6578
6578
  })();
6579
6579
  return _classThis;
6580
- })();
6580
+ }();
6581
6581
  var VideoPreprocessorConfig$1 = function () {
6582
6582
  var _classDecorators = [NativeClass('com.ss.bytertc.engine.video.VideoPreprocessorConfig')];
6583
6583
  var _classDescriptor;
@@ -15010,7 +15010,7 @@ var ByteRTCUserOfflineReason;
15010
15010
  })();
15011
15011
  return _classThis;
15012
15012
  })();
15013
- (function () {
15013
+ var ByteRTCForwardStreamConfiguration = function () {
15014
15014
  var _classDecorators = [NativeClass('ByteRTCForwardStreamConfiguration')];
15015
15015
  var _classDescriptor;
15016
15016
  var _classExtraInitializers = [];
@@ -15049,7 +15049,7 @@ var ByteRTCUserOfflineReason;
15049
15049
  __runInitializers(_classThis, _classExtraInitializers);
15050
15050
  })();
15051
15051
  return _classThis;
15052
- })();
15052
+ }();
15053
15053
  var ByteRTCVideoEncoderConfig = function () {
15054
15054
  var _classDecorators = [NativeClass('ByteRTCVideoEncoderConfig')];
15055
15055
  var _classDescriptor;
@@ -59456,6 +59456,113 @@ var ios_IAudioFrameProcessor = /** @class */ (function (_super) {
59456
59456
  return ios_IAudioFrameProcessor;
59457
59457
  }(ByteRTCAudioFrameProcessor));
59458
59458
 
59459
+ var ForwardStreamInfo = function () {
59460
+ var _classDecorators = [PackClass()];
59461
+ var _classDescriptor;
59462
+ var _classExtraInitializers = [];
59463
+ var _classThis;
59464
+ _classThis = /** @class */ (function () {
59465
+ function ForwardStreamInfo_1() {
59466
+ }
59467
+ Object.defineProperty(ForwardStreamInfo_1.prototype, "roomId", {
59468
+ get: function () {
59469
+ var $os = env.getOS();
59470
+ if ($os === 'android') {
59471
+ return String(this._instance.roomId);
59472
+ }
59473
+ else if ($os === 'ios') {
59474
+ return String(this._instance.roomId);
59475
+ }
59476
+ else {
59477
+ throw new Error('Not Support Platform ' + $os);
59478
+ }
59479
+ },
59480
+ set: function (value) {
59481
+ var $os = env.getOS();
59482
+ if ($os === 'android') {
59483
+ this._instance.roomId = value;
59484
+ }
59485
+ else if ($os === 'ios') {
59486
+ this._instance.roomId = value;
59487
+ }
59488
+ else {
59489
+ throw new Error('Not Support Platform ' + $os);
59490
+ }
59491
+ },
59492
+ enumerable: false,
59493
+ configurable: true
59494
+ });
59495
+ Object.defineProperty(ForwardStreamInfo_1.prototype, "token", {
59496
+ get: function () {
59497
+ var $os = env.getOS();
59498
+ if ($os === 'android') {
59499
+ return String(this._instance.token);
59500
+ }
59501
+ else if ($os === 'ios') {
59502
+ return String(this._instance.token);
59503
+ }
59504
+ else {
59505
+ throw new Error('Not Support Platform ' + $os);
59506
+ }
59507
+ },
59508
+ set: function (value) {
59509
+ var $os = env.getOS();
59510
+ if ($os === 'android') {
59511
+ this._instance.token = value;
59512
+ }
59513
+ else if ($os === 'ios') {
59514
+ this._instance.token = value;
59515
+ }
59516
+ else {
59517
+ throw new Error('Not Support Platform ' + $os);
59518
+ }
59519
+ },
59520
+ enumerable: false,
59521
+ configurable: true
59522
+ });
59523
+ ForwardStreamInfo_1.prototype.__init = function () {
59524
+ var args = [];
59525
+ for (var _i = 0; _i < arguments.length; _i++) {
59526
+ args[_i] = arguments[_i];
59527
+ }
59528
+ this._instance = this.__new_instance.apply(this, args);
59529
+ };
59530
+ ForwardStreamInfo_1.prototype.__new_instance = function () {
59531
+ var args = [];
59532
+ for (var _i = 0; _i < arguments.length; _i++) {
59533
+ args[_i] = arguments[_i];
59534
+ }
59535
+ var i = function () {
59536
+ var _a;
59537
+ return new ((_a = ByteRTCForwardStreamConfiguration).bind.apply(_a, __spreadArray([void 0], args, false)))();
59538
+ };
59539
+ var a = function () {
59540
+ var _a;
59541
+ return new ((_a = ForwardStreamInfo$1).bind.apply(_a, __spreadArray([void 0], args, false)))();
59542
+ };
59543
+ var $os = env.getOS();
59544
+ if ($os === 'android') {
59545
+ return a();
59546
+ }
59547
+ else if ($os === 'ios') {
59548
+ return i();
59549
+ }
59550
+ else {
59551
+ throw new Error('Not Support Platform ' + $os);
59552
+ }
59553
+ };
59554
+ return ForwardStreamInfo_1;
59555
+ }());
59556
+ __setFunctionName(_classThis, "ForwardStreamInfo");
59557
+ (function () {
59558
+ var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
59559
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
59560
+ _classThis = _classDescriptor.value;
59561
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
59562
+ __runInitializers(_classThis, _classExtraInitializers);
59563
+ })();
59564
+ return _classThis;
59565
+ }();
59459
59566
  var ISpatialAudio = function () {
59460
59567
  var _classDecorators = [PackClass()];
59461
59568
  var _classDescriptor;
@@ -65708,6 +65815,44 @@ var RTCRoom = function () {
65708
65815
  throw new Error('Not Support Platform ' + $os);
65709
65816
  }
65710
65817
  };
65818
+ RTCRoom_1.prototype.startForwardStreamToRooms = function (forwardStreamInfos) {
65819
+ var _this = this;
65820
+ var a = function () {
65821
+ return Number(_this._instance.startForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65822
+ };
65823
+ var i = function () {
65824
+ return Number(_this._instance.startForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65825
+ };
65826
+ var $os = env.getOS();
65827
+ if ($os === 'android') {
65828
+ return a();
65829
+ }
65830
+ else if ($os === 'ios') {
65831
+ return i();
65832
+ }
65833
+ else {
65834
+ throw new Error('Not Support Platform ' + $os);
65835
+ }
65836
+ };
65837
+ RTCRoom_1.prototype.updateForwardStreamToRooms = function (forwardStreamInfos) {
65838
+ var _this = this;
65839
+ var a = function () {
65840
+ return Number(_this._instance.updateForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65841
+ };
65842
+ var i = function () {
65843
+ return Number(_this._instance.updateForwardStreamToRooms(forwardStreamInfos.map(function ($item) { return unpackObject($item); })));
65844
+ };
65845
+ var $os = env.getOS();
65846
+ if ($os === 'android') {
65847
+ return a();
65848
+ }
65849
+ else if ($os === 'ios') {
65850
+ return i();
65851
+ }
65852
+ else {
65853
+ throw new Error('Not Support Platform ' + $os);
65854
+ }
65855
+ };
65711
65856
  /** {en}
65712
65857
  * @detail api
65713
65858
  * @region Multi-room
@@ -68064,6 +68209,7 @@ var VertcHelper = function () {
68064
68209
  var _instanceExtraInitializers = [];
68065
68210
  var _static_getInstance_decorators;
68066
68211
  var _invokeSetVideoEncoderConfig_decorators;
68212
+ var _invokeSetLocalVideoMirrorType_decorators;
68067
68213
  var VertcHelper = _classThis = /** @class */ (function (_super) {
68068
68214
  __extends(VertcHelper_1, _super);
68069
68215
  function VertcHelper_1() {
@@ -68077,6 +68223,9 @@ var VertcHelper = function () {
68077
68223
  VertcHelper_1.prototype.invokeSetVideoEncoderConfig = function (video, channelSolutions) {
68078
68224
  throw new Error('not implement');
68079
68225
  };
68226
+ VertcHelper_1.prototype.invokeSetLocalVideoMirrorType = function (video, mirrorType) {
68227
+ throw new Error('not implement');
68228
+ };
68080
68229
  return VertcHelper_1;
68081
68230
  }(_classSuper));
68082
68231
  __setFunctionName(_classThis, "VertcHelper");
@@ -68085,8 +68234,10 @@ var VertcHelper = function () {
68085
68234
  var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
68086
68235
  _static_getInstance_decorators = [ReturnClass(function () { return VertcHelper; }), NativeStaticMethodSync()];
68087
68236
  _invokeSetVideoEncoderConfig_decorators = [NativeMethod()];
68237
+ _invokeSetLocalVideoMirrorType_decorators = [NativeMethod()];
68088
68238
  __esDecorate(_classThis, null, _static_getInstance_decorators, { kind: "method", name: "getInstance", static: true, private: false, access: { has: function (obj) { return "getInstance" in obj; }, get: function (obj) { return obj.getInstance; } }, metadata: _metadata }, null, _staticExtraInitializers);
68089
68239
  __esDecorate(_classThis, null, _invokeSetVideoEncoderConfig_decorators, { kind: "method", name: "invokeSetVideoEncoderConfig", static: false, private: false, access: { has: function (obj) { return "invokeSetVideoEncoderConfig" in obj; }, get: function (obj) { return obj.invokeSetVideoEncoderConfig; } }, metadata: _metadata }, null, _instanceExtraInitializers);
68240
+ __esDecorate(_classThis, null, _invokeSetLocalVideoMirrorType_decorators, { kind: "method", name: "invokeSetLocalVideoMirrorType", static: false, private: false, access: { has: function (obj) { return "invokeSetLocalVideoMirrorType" in obj; }, get: function (obj) { return obj.invokeSetLocalVideoMirrorType; } }, metadata: _metadata }, null, _instanceExtraInitializers);
68090
68241
  __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
68091
68242
  VertcHelper = _classThis = _classDescriptor.value;
68092
68243
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
@@ -68335,14 +68486,36 @@ extendsClassMethod(RTCVideo, 'setVideoEncoderConfig', function (origin) {
68335
68486
  var _this = this;
68336
68487
  var a = function () {
68337
68488
  var vertc = VertcHelper.getInstance();
68338
- return Number(vertc.invokeSetVideoEncoderConfig(unpackObject(_this), channelSolutions.map(function (item) { return unpackObject(item); })));
68489
+ return vertc.invokeSetVideoEncoderConfig(unpackObject(_this), channelSolutions.map(function (item) { return unpackObject(item); }));
68339
68490
  };
68340
68491
  var i = function () {
68341
68492
  return Number(origin(channelSolutions));
68342
68493
  };
68343
68494
  var $os = env.getOS();
68344
68495
  if ($os === 'android') {
68345
- return a();
68496
+ return a().then(Number);
68497
+ }
68498
+ else if ($os === 'ios') {
68499
+ return i();
68500
+ }
68501
+ else {
68502
+ throw new Error('Not Support Platform ' + $os);
68503
+ }
68504
+ };
68505
+ });
68506
+ extendsClassMethod(RTCVideo, 'setLocalVideoMirrorType', function (origin) {
68507
+ return function impl(mirrorType) {
68508
+ var _this = this;
68509
+ var a = function () {
68510
+ var vertc = VertcHelper.getInstance();
68511
+ return vertc.invokeSetLocalVideoMirrorType(unpackObject(_this), t_MirrorType.ts_to_android(mirrorType));
68512
+ };
68513
+ var i = function () {
68514
+ return Number(origin(mirrorType));
68515
+ };
68516
+ var $os = env.getOS();
68517
+ if ($os === 'android') {
68518
+ return a().then(Number);
68346
68519
  }
68347
68520
  else if ($os === 'ios') {
68348
68521
  return i();
@@ -68635,6 +68808,44 @@ var proxyRoom = function (room) {
68635
68808
  });
68636
68809
  return originalSetRemoteVideoConfig.call(room, userId, remoteStreamInfo);
68637
68810
  };
68811
+ var originalStartForwardStreamToRooms = room.startForwardStreamToRooms;
68812
+ room.startForwardStreamToRooms = function (forwardStreamConfig) {
68813
+ var streamInfos = platformBriefs({
68814
+ android: function () {
68815
+ return forwardStreamConfig.map(function (conf) {
68816
+ return new ForwardStreamInfo(conf.roomId, conf.token);
68817
+ });
68818
+ },
68819
+ ios: function () {
68820
+ return forwardStreamConfig.map(function (conf) {
68821
+ var streamInfo = new ForwardStreamInfo();
68822
+ streamInfo.roomId = conf.roomId;
68823
+ streamInfo.token = conf.token;
68824
+ return streamInfo;
68825
+ });
68826
+ },
68827
+ });
68828
+ return originalStartForwardStreamToRooms.call(room, streamInfos);
68829
+ };
68830
+ var originalUpdateForwardStreamToRooms = room.updateForwardStreamToRooms;
68831
+ room.updateForwardStreamToRooms = function (forwardStreamConfig) {
68832
+ var streamInfos = platformBriefs({
68833
+ android: function () {
68834
+ return forwardStreamConfig.map(function (conf) {
68835
+ return new ForwardStreamInfo(conf.roomId, conf.token);
68836
+ });
68837
+ },
68838
+ ios: function () {
68839
+ return forwardStreamConfig.map(function (conf) {
68840
+ var streamInfo = new ForwardStreamInfo();
68841
+ streamInfo.roomId = conf.roomId;
68842
+ streamInfo.token = conf.token;
68843
+ return streamInfo;
68844
+ });
68845
+ },
68846
+ });
68847
+ return originalUpdateForwardStreamToRooms.call(room, streamInfos);
68848
+ };
68638
68849
  return room;
68639
68850
  };
68640
68851
  var proxyAudioEffectPlayer = function (audioEffectPlayer) {
@@ -68843,4 +69054,4 @@ var EncryptTypes;
68843
69054
  EncryptTypes[EncryptTypes["AES256ECB"] = 4] = "AES256ECB";
68844
69055
  })(EncryptTypes || (EncryptTypes = {}));
68845
69056
 
68846
- export { AACProfile, ASRAuthorizationType, AVSyncState, AlphaLayout, AnsMode, ApplicationContext, AttenuationType, AudioAlignmentMode, AudioChannel, AudioDeviceType, AudioEffectPlayerConfig, AudioFormat, AudioFrame, AudioFrameCallbackMethod, AudioFrameSource, AudioMixingConfig, AudioMixingDualMonoMode, AudioMixingError, AudioMixingState, AudioMixingType, AudioPlayType, AudioPlaybackDevice, AudioProfileType, AudioPropertiesConfig, AudioPropertiesInfo, AudioPropertiesMode, AudioQuality, AudioRecordingConfig, AudioRecordingErrorCode, AudioRecordingState, AudioRenderType, AudioReportMode, AudioRoute, AudioSampleRate, AudioScenarioType, AudioSelectionPriority, AudioSourceType, AudioTrackType, BandFrequency, ByteRTCBluetoothMode as BluetoothMode, ByteRTCImage, ByteRTCStreamMixingEvent, ByteRTCStreamMixingType, ByteRTCView, CameraId, ChannelProfile, CloudProxyInfo, ColorSpace, ConnectionState, DataMessageSourceType, DownloadFileType, DownloadLyricType, DownloadResult, EarMonitorMode, EchoTestConfig, EchoTestResult, EffectBeautyMode, EncryptTypes, ErrorCode, FaceDetectionResult, FallbackOrRecoverReason, FirstFramePlayState, FirstFrameSendState, ForwardStreamError, ForwardStreamEvent, ForwardStreamEventInfo, ForwardStreamState, ForwardStreamStateInfo, HardwareEchoDetectionResult, HotMusicInfo, HumanOrientation, IAudioEffectPlayer, IAudioFrame, IAudioMixingManager, IKTVManager, IKTVPlayer, IMediaPlayer, IRangeAudio, ISingScoringManager, ISpatialAudio, IVideoDeviceManager, IVideoEffect, KTVErrorCode, KTVPlayerErrorCode, LiveTranscoding, LocalAudioPropertiesInfo, LocalAudioStats, LocalAudioStreamError, LocalAudioStreamState, LocalLogLevel, LocalProxyError, LocalProxyState, LocalProxyType, LocalStreamStats, LocalVideoRenderPosition, LocalVideoSinkConfig, LocalVideoStats, LocalVideoStreamError, LocalVideoStreamState, LoginErrorCode, LogoutReason, LyricStatus, MediaDeviceError, MediaDeviceState, MediaDeviceType, MediaDeviceWarning, MediaPlayerConfig, MediaPlayerCustomSource, MediaPlayerCustomSourceMode, MediaPlayerCustomSourceSeekWhence, MediaPlayerCustomSourceStreamType, MediaStreamType, MediaTypeEnhancementConfig, MessageConfig, MirrorType, MixedStreamAlternateImageFillMode, MixedStreamAudioCodecType, MixedStreamAudioConfig, MixedStreamAudioProfile, MixedStreamClientMixConfig, MixedStreamClientMixVideoFormat, MixedStreamConfig, MixedStreamLayoutConfig, MixedStreamLayoutRegionConfig, MixedStreamLayoutRegionImageWaterMarkConfig, MixedStreamLayoutRegionType, MixedStreamMediaType, MixedStreamPushMode, MixedStreamRenderMode, MixedStreamSEIContentMode, MixedStreamServerControlConfig, MixedStreamType, MixedStreamVideoCodecType, MixedStreamVideoConfig, MixedStreamVideoType, MulDimSingScoringMode, MusicFilterType, MusicHotType, MusicInfo, MuteState, NativeSurfaceView, NativeUIView, NativeVariables, NativeViewComponent, NetworkDetectionLinkType, NetworkDetectionStopReason, NetworkQuality, NetworkQualityStats, NetworkTimeInfo, Orientation, PauseResumeControlMediaType, PerformanceAlarmMode, PerformanceAlarmReason, PlayState, PlayerError, PlayerState, Position, PositionInfo, ProblemFeedbackInfo, ProblemFeedbackOption, ProblemFeedbackRoomInfo, PublicStreamErrorCode, PublicStreaming, PublishFallbackOption, PushSingleStreamParam, RPSampleBufferType, RTCASRConfig, RTCASRErrorCode, RTCEncodedVideoFrame, RTCLogConfig, RTCManager, RTCNetworkType, RTCRoom, RTCRoomConfig, RTCRoomStats, RTCScreenVideoEncoderPreference, RTCStream, RTCStreamMixingErrorCode, RTCStreamSinglePushEvent, RTCUser, RTCUserOfflineReason, RTCVideo, RTCVideoEncoderPreference, ReceiveRange, RecordingConfig, RecordingErrorCode, RecordingFileType, RecordingInfo, RecordingProgress, RecordingState, RecordingType, Rectangle, RemoteAudioPropertiesInfo, RemoteAudioState, RemoteAudioStateChangeReason, RemoteAudioStats, RemoteMirrorType, RemoteStreamKey, RemoteStreamStats, RemoteStreamSwitchEvent, RemoteUserPriority, RemoteVideoConfig, RemoteVideoRenderConfig, RemoteVideoRenderPosition, RemoteVideoSinkConfig, RemoteVideoState, RemoteVideoStateChangeReason, RemoteVideoStats, RenderMode, ReturnStatus, RoomMessageSendResult, SEICountPerFrame, SEIStreamUpdateEventType, ScreenIntent, ScreenMediaType, ScreenVideoEncoderConfig, SetRoomExtraInfoResult, SingScoringConfig, SingScoringRealtimeInfo, SourceWantedData, StandardPitchInfo, StreamIndex, StreamRemoveReason, StreamSycnInfoConfig, SubscribeConfig, SubscribeMediaType, SubscribeState, SubscribeVideoConfig, SubtitleConfig, SubtitleErrorCode, SubtitleMessage, SubtitleMode, SubtitleState, SyncInfoStreamType, SysStats, TorchState, TranscoderContentControlType, TranscoderLayoutRegionType, UIView, UserInfo, UserMessageSendResult, UserOnlineStatus, UserVisibilityChangeError, VideoApplyRotation, VideoCanvas, VideoCaptureConfig, VideoCodecType, VideoContentType, VideoDecoderConfig, VideoDenoiseMode, VideoDenoiseModeChangedReason, VideoDeviceType, VideoEncoderConfig, VideoFrame, VideoFrameInfo, VideoFrameType, VideoOrientation, VideoPictureType, VideoPixelFormat, VideoPreprocessorConfig, VideoRenderMirrorType, VideoRotation, VideoRotationMode, VideoSourceType, VideoSuperResolutionMode, VideoSuperResolutionModeChangedReason, VirtualBackgroundSource, VirtualBackgroundSourceType, VoiceChangerType, VoiceEqualizationConfig, VoiceReverbConfig, VoiceReverbType, WarningCode, ZoomConfigType, ZoomDirectionType, android_IAudioEffectPlayerEventHandler, android_IAudioFileFrameObserver, android_IAudioFrameObserver, android_IAudioFrameProcessor, android_IExternalVideoEncoderEventHandler, android_IFaceDetectionObserver, android_ILocalEncodedVideoFrameObserver, android_IMediaPlayerAudioFrameObserver, android_IMediaPlayerCustomSourceProvider, android_IMediaPlayerEventHandler, android_IMixedStreamObserver, android_IPushSingleStreamToCDNObserver, android_IRemoteEncodedVideoFrameObserver, android_RTCRoomEventHandler, android_RTCVideoEventHandler, ios_IAudioEffectPlayerEventHandler, ios_IAudioFileFrameObserver, ios_IAudioFrameObserver, ios_IAudioFrameProcessor, ios_IExternalVideoEncoderEventHandler, ios_IFaceDetectionObserver, ios_ILocalEncodedVideoFrameObserver, ios_IMediaPlayerAudioFrameObserver, ios_IMediaPlayerCustomSourceProvider, ios_IMediaPlayerEventHandler, ios_IMixedStreamObserver, ios_IPushSingleStreamToCDNObserver, ios_IRemoteEncodedVideoFrameObserver, ios_RTCRoomEventHandler, ios_RTCVideoEventHandler, t_AACProfile, t_ASRAuthorizationType, t_AVSyncState, t_AlphaLayout, t_AnsMode, t_AttenuationType, t_AudioAlignmentMode, t_AudioChannel, t_AudioDeviceType, t_AudioFrameCallbackMethod, t_AudioFrameSource, t_AudioMixingDualMonoMode, t_AudioMixingError, t_AudioMixingState, t_AudioMixingType, t_AudioPlayType, t_AudioPlaybackDevice, t_AudioProfileType, t_AudioPropertiesMode, t_AudioQuality, t_AudioRecordingErrorCode, t_AudioRecordingState, t_AudioRenderType, t_AudioReportMode, t_AudioRoute, t_AudioSampleRate, t_AudioScenarioType, t_AudioSelectionPriority, t_AudioSourceType, t_AudioTrackType, t_BandFrequency, t_ByteRTCStreamMixingEvent, t_ByteRTCStreamMixingType, t_CameraId, t_ChannelProfile, t_ColorSpace, t_ConnectionState, t_DataMessageSourceType, t_DownloadFileType, t_DownloadLyricType, t_EarMonitorMode, t_EchoTestResult, t_EffectBeautyMode, t_ErrorCode, t_FallbackOrRecoverReason, t_FirstFramePlayState, t_FirstFrameSendState, t_ForwardStreamError, t_ForwardStreamEvent, t_ForwardStreamState, t_HardwareEchoDetectionResult, t_KTVErrorCode, t_KTVPlayerErrorCode, t_LocalAudioStreamError, t_LocalAudioStreamState, t_LocalLogLevel, t_LocalProxyError, t_LocalProxyState, t_LocalProxyType, t_LocalVideoRenderPosition, t_LocalVideoStreamError, t_LocalVideoStreamState, t_LoginErrorCode, t_LogoutReason, t_LyricStatus, t_MediaDeviceError, t_MediaDeviceState, t_MediaDeviceType, t_MediaDeviceWarning, t_MediaPlayerCustomSourceMode, t_MediaPlayerCustomSourceSeekWhence, t_MediaPlayerCustomSourceStreamType, t_MediaStreamType, t_MessageConfig, t_MirrorType, t_MixedStreamAlternateImageFillMode, t_MixedStreamAudioCodecType, t_MixedStreamAudioProfile, t_MixedStreamClientMixVideoFormat, t_MixedStreamLayoutRegionType, t_MixedStreamMediaType, t_MixedStreamPushMode, t_MixedStreamRenderMode, t_MixedStreamSEIContentMode, t_MixedStreamType, t_MixedStreamVideoCodecType, t_MixedStreamVideoType, t_MulDimSingScoringMode, t_MusicFilterType, t_MusicHotType, t_MuteState, t_NetworkDetectionLinkType, t_NetworkDetectionStopReason, t_NetworkQuality, t_PauseResumeControlMediaType, t_PerformanceAlarmMode, t_PerformanceAlarmReason, t_PlayState, t_PlayerError, t_PlayerState, t_ProblemFeedbackOption, t_PublicStreamErrorCode, t_PublishFallbackOption, t_RTCASRErrorCode, t_RTCNetworkType, t_RTCScreenVideoEncoderPreference, t_RTCStreamMixingErrorCode, t_RTCStreamSinglePushEvent, t_RTCUserOfflineReason, t_RTCVideoEncoderPreference, t_RecordingErrorCode, t_RecordingFileType, t_RecordingState, t_RecordingType, t_RemoteAudioState, t_RemoteAudioStateChangeReason, t_RemoteMirrorType, t_RemoteUserPriority, t_RemoteVideoRenderPosition, t_RemoteVideoState, t_RemoteVideoStateChangeReason, t_RenderMode, t_ReturnStatus, t_RoomMessageSendResult, t_SEICountPerFrame, t_SEIStreamUpdateEventType, t_ScreenMediaType, t_SetRoomExtraInfoResult, t_StreamIndex, t_StreamRemoveReason, t_SubscribeMediaType, t_SubscribeState, t_SubtitleErrorCode, t_SubtitleMode, t_SubtitleState, t_SyncInfoStreamType, t_TorchState, t_TranscoderContentControlType, t_TranscoderLayoutRegionType, t_UserMessageSendResult, t_UserOnlineStatus, t_UserVisibilityChangeError, t_VideoApplyRotation, t_VideoCodecType, t_VideoContentType, t_VideoDecoderConfig, t_VideoDenoiseMode, t_VideoDenoiseModeChangedReason, t_VideoDeviceType, t_VideoFrameType, t_VideoOrientation, t_VideoPictureType, t_VideoPixelFormat, t_VideoRenderMirrorType, t_VideoRotation, t_VideoRotationMode, t_VideoSourceType, t_VideoSuperResolutionMode, t_VideoSuperResolutionModeChangedReason, t_VirtualBackgroundSourceType, t_VoiceChangerType, t_VoiceReverbType, t_WarningCode, t_ZoomConfigType, t_ZoomDirectionType };
69057
+ export { AACProfile, ASRAuthorizationType, AVSyncState, AlphaLayout, AnsMode, ApplicationContext, AttenuationType, AudioAlignmentMode, AudioChannel, AudioDeviceType, AudioEffectPlayerConfig, AudioFormat, AudioFrame, AudioFrameCallbackMethod, AudioFrameSource, AudioMixingConfig, AudioMixingDualMonoMode, AudioMixingError, AudioMixingState, AudioMixingType, AudioPlayType, AudioPlaybackDevice, AudioProfileType, AudioPropertiesConfig, AudioPropertiesInfo, AudioPropertiesMode, AudioQuality, AudioRecordingConfig, AudioRecordingErrorCode, AudioRecordingState, AudioRenderType, AudioReportMode, AudioRoute, AudioSampleRate, AudioScenarioType, AudioSelectionPriority, AudioSourceType, AudioTrackType, BandFrequency, ByteRTCBluetoothMode as BluetoothMode, ByteRTCImage, ByteRTCStreamMixingEvent, ByteRTCStreamMixingType, ByteRTCView, CameraId, ChannelProfile, CloudProxyInfo, ColorSpace, ConnectionState, DataMessageSourceType, DownloadFileType, DownloadLyricType, DownloadResult, EarMonitorMode, EchoTestConfig, EchoTestResult, EffectBeautyMode, EncryptTypes, ErrorCode, FaceDetectionResult, FallbackOrRecoverReason, FirstFramePlayState, FirstFrameSendState, ForwardStreamError, ForwardStreamEvent, ForwardStreamEventInfo, ForwardStreamInfo, ForwardStreamState, ForwardStreamStateInfo, HardwareEchoDetectionResult, HotMusicInfo, HumanOrientation, IAudioEffectPlayer, IAudioFrame, IAudioMixingManager, IKTVManager, IKTVPlayer, IMediaPlayer, IRangeAudio, ISingScoringManager, ISpatialAudio, IVideoDeviceManager, IVideoEffect, KTVErrorCode, KTVPlayerErrorCode, LiveTranscoding, LocalAudioPropertiesInfo, LocalAudioStats, LocalAudioStreamError, LocalAudioStreamState, LocalLogLevel, LocalProxyError, LocalProxyState, LocalProxyType, LocalStreamStats, LocalVideoRenderPosition, LocalVideoSinkConfig, LocalVideoStats, LocalVideoStreamError, LocalVideoStreamState, LoginErrorCode, LogoutReason, LyricStatus, MediaDeviceError, MediaDeviceState, MediaDeviceType, MediaDeviceWarning, MediaPlayerConfig, MediaPlayerCustomSource, MediaPlayerCustomSourceMode, MediaPlayerCustomSourceSeekWhence, MediaPlayerCustomSourceStreamType, MediaStreamType, MediaTypeEnhancementConfig, MessageConfig, MirrorType, MixedStreamAlternateImageFillMode, MixedStreamAudioCodecType, MixedStreamAudioConfig, MixedStreamAudioProfile, MixedStreamClientMixConfig, MixedStreamClientMixVideoFormat, MixedStreamConfig, MixedStreamLayoutConfig, MixedStreamLayoutRegionConfig, MixedStreamLayoutRegionImageWaterMarkConfig, MixedStreamLayoutRegionType, MixedStreamMediaType, MixedStreamPushMode, MixedStreamRenderMode, MixedStreamSEIContentMode, MixedStreamServerControlConfig, MixedStreamType, MixedStreamVideoCodecType, MixedStreamVideoConfig, MixedStreamVideoType, MulDimSingScoringMode, MusicFilterType, MusicHotType, MusicInfo, MuteState, NativeSurfaceView, NativeUIView, NativeVariables, NativeViewComponent, NetworkDetectionLinkType, NetworkDetectionStopReason, NetworkQuality, NetworkQualityStats, NetworkTimeInfo, Orientation, PauseResumeControlMediaType, PerformanceAlarmMode, PerformanceAlarmReason, PlayState, PlayerError, PlayerState, Position, PositionInfo, ProblemFeedbackInfo, ProblemFeedbackOption, ProblemFeedbackRoomInfo, PublicStreamErrorCode, PublicStreaming, PublishFallbackOption, PushSingleStreamParam, RPSampleBufferType, RTCASRConfig, RTCASRErrorCode, RTCEncodedVideoFrame, RTCLogConfig, RTCManager, RTCNetworkType, RTCRoom, RTCRoomConfig, RTCRoomStats, RTCScreenVideoEncoderPreference, RTCStream, RTCStreamMixingErrorCode, RTCStreamSinglePushEvent, RTCUser, RTCUserOfflineReason, RTCVideo, RTCVideoEncoderPreference, ReceiveRange, RecordingConfig, RecordingErrorCode, RecordingFileType, RecordingInfo, RecordingProgress, RecordingState, RecordingType, Rectangle, RemoteAudioPropertiesInfo, RemoteAudioState, RemoteAudioStateChangeReason, RemoteAudioStats, RemoteMirrorType, RemoteStreamKey, RemoteStreamStats, RemoteStreamSwitchEvent, RemoteUserPriority, RemoteVideoConfig, RemoteVideoRenderConfig, RemoteVideoRenderPosition, RemoteVideoSinkConfig, RemoteVideoState, RemoteVideoStateChangeReason, RemoteVideoStats, RenderMode, ReturnStatus, RoomMessageSendResult, SEICountPerFrame, SEIStreamUpdateEventType, ScreenIntent, ScreenMediaType, ScreenVideoEncoderConfig, SetRoomExtraInfoResult, SingScoringConfig, SingScoringRealtimeInfo, SourceWantedData, StandardPitchInfo, StreamIndex, StreamRemoveReason, StreamSycnInfoConfig, SubscribeConfig, SubscribeMediaType, SubscribeState, SubscribeVideoConfig, SubtitleConfig, SubtitleErrorCode, SubtitleMessage, SubtitleMode, SubtitleState, SyncInfoStreamType, SysStats, TorchState, TranscoderContentControlType, TranscoderLayoutRegionType, UIView, UserInfo, UserMessageSendResult, UserOnlineStatus, UserVisibilityChangeError, VideoApplyRotation, VideoCanvas, VideoCaptureConfig, VideoCodecType, VideoContentType, VideoDecoderConfig, VideoDenoiseMode, VideoDenoiseModeChangedReason, VideoDeviceType, VideoEncoderConfig, VideoFrame, VideoFrameInfo, VideoFrameType, VideoOrientation, VideoPictureType, VideoPixelFormat, VideoPreprocessorConfig, VideoRenderMirrorType, VideoRotation, VideoRotationMode, VideoSourceType, VideoSuperResolutionMode, VideoSuperResolutionModeChangedReason, VirtualBackgroundSource, VirtualBackgroundSourceType, VoiceChangerType, VoiceEqualizationConfig, VoiceReverbConfig, VoiceReverbType, WarningCode, ZoomConfigType, ZoomDirectionType, android_IAudioEffectPlayerEventHandler, android_IAudioFileFrameObserver, android_IAudioFrameObserver, android_IAudioFrameProcessor, android_IExternalVideoEncoderEventHandler, android_IFaceDetectionObserver, android_ILocalEncodedVideoFrameObserver, android_IMediaPlayerAudioFrameObserver, android_IMediaPlayerCustomSourceProvider, android_IMediaPlayerEventHandler, android_IMixedStreamObserver, android_IPushSingleStreamToCDNObserver, android_IRemoteEncodedVideoFrameObserver, android_RTCRoomEventHandler, android_RTCVideoEventHandler, ios_IAudioEffectPlayerEventHandler, ios_IAudioFileFrameObserver, ios_IAudioFrameObserver, ios_IAudioFrameProcessor, ios_IExternalVideoEncoderEventHandler, ios_IFaceDetectionObserver, ios_ILocalEncodedVideoFrameObserver, ios_IMediaPlayerAudioFrameObserver, ios_IMediaPlayerCustomSourceProvider, ios_IMediaPlayerEventHandler, ios_IMixedStreamObserver, ios_IPushSingleStreamToCDNObserver, ios_IRemoteEncodedVideoFrameObserver, ios_RTCRoomEventHandler, ios_RTCVideoEventHandler, t_AACProfile, t_ASRAuthorizationType, t_AVSyncState, t_AlphaLayout, t_AnsMode, t_AttenuationType, t_AudioAlignmentMode, t_AudioChannel, t_AudioDeviceType, t_AudioFrameCallbackMethod, t_AudioFrameSource, t_AudioMixingDualMonoMode, t_AudioMixingError, t_AudioMixingState, t_AudioMixingType, t_AudioPlayType, t_AudioPlaybackDevice, t_AudioProfileType, t_AudioPropertiesMode, t_AudioQuality, t_AudioRecordingErrorCode, t_AudioRecordingState, t_AudioRenderType, t_AudioReportMode, t_AudioRoute, t_AudioSampleRate, t_AudioScenarioType, t_AudioSelectionPriority, t_AudioSourceType, t_AudioTrackType, t_BandFrequency, t_ByteRTCStreamMixingEvent, t_ByteRTCStreamMixingType, t_CameraId, t_ChannelProfile, t_ColorSpace, t_ConnectionState, t_DataMessageSourceType, t_DownloadFileType, t_DownloadLyricType, t_EarMonitorMode, t_EchoTestResult, t_EffectBeautyMode, t_ErrorCode, t_FallbackOrRecoverReason, t_FirstFramePlayState, t_FirstFrameSendState, t_ForwardStreamError, t_ForwardStreamEvent, t_ForwardStreamState, t_HardwareEchoDetectionResult, t_KTVErrorCode, t_KTVPlayerErrorCode, t_LocalAudioStreamError, t_LocalAudioStreamState, t_LocalLogLevel, t_LocalProxyError, t_LocalProxyState, t_LocalProxyType, t_LocalVideoRenderPosition, t_LocalVideoStreamError, t_LocalVideoStreamState, t_LoginErrorCode, t_LogoutReason, t_LyricStatus, t_MediaDeviceError, t_MediaDeviceState, t_MediaDeviceType, t_MediaDeviceWarning, t_MediaPlayerCustomSourceMode, t_MediaPlayerCustomSourceSeekWhence, t_MediaPlayerCustomSourceStreamType, t_MediaStreamType, t_MessageConfig, t_MirrorType, t_MixedStreamAlternateImageFillMode, t_MixedStreamAudioCodecType, t_MixedStreamAudioProfile, t_MixedStreamClientMixVideoFormat, t_MixedStreamLayoutRegionType, t_MixedStreamMediaType, t_MixedStreamPushMode, t_MixedStreamRenderMode, t_MixedStreamSEIContentMode, t_MixedStreamType, t_MixedStreamVideoCodecType, t_MixedStreamVideoType, t_MulDimSingScoringMode, t_MusicFilterType, t_MusicHotType, t_MuteState, t_NetworkDetectionLinkType, t_NetworkDetectionStopReason, t_NetworkQuality, t_PauseResumeControlMediaType, t_PerformanceAlarmMode, t_PerformanceAlarmReason, t_PlayState, t_PlayerError, t_PlayerState, t_ProblemFeedbackOption, t_PublicStreamErrorCode, t_PublishFallbackOption, t_RTCASRErrorCode, t_RTCNetworkType, t_RTCScreenVideoEncoderPreference, t_RTCStreamMixingErrorCode, t_RTCStreamSinglePushEvent, t_RTCUserOfflineReason, t_RTCVideoEncoderPreference, t_RecordingErrorCode, t_RecordingFileType, t_RecordingState, t_RecordingType, t_RemoteAudioState, t_RemoteAudioStateChangeReason, t_RemoteMirrorType, t_RemoteUserPriority, t_RemoteVideoRenderPosition, t_RemoteVideoState, t_RemoteVideoStateChangeReason, t_RenderMode, t_ReturnStatus, t_RoomMessageSendResult, t_SEICountPerFrame, t_SEIStreamUpdateEventType, t_ScreenMediaType, t_SetRoomExtraInfoResult, t_StreamIndex, t_StreamRemoveReason, t_SubscribeMediaType, t_SubscribeState, t_SubtitleErrorCode, t_SubtitleMode, t_SubtitleState, t_SyncInfoStreamType, t_TorchState, t_TranscoderContentControlType, t_TranscoderLayoutRegionType, t_UserMessageSendResult, t_UserOnlineStatus, t_UserVisibilityChangeError, t_VideoApplyRotation, t_VideoCodecType, t_VideoContentType, t_VideoDecoderConfig, t_VideoDenoiseMode, t_VideoDenoiseModeChangedReason, t_VideoDeviceType, t_VideoFrameType, t_VideoOrientation, t_VideoPictureType, t_VideoPixelFormat, t_VideoRenderMirrorType, t_VideoRotation, t_VideoRotationMode, t_VideoSourceType, t_VideoSuperResolutionMode, t_VideoSuperResolutionModeChangedReason, t_VirtualBackgroundSourceType, t_VoiceChangerType, t_VoiceReverbType, t_WarningCode, t_ZoomConfigType, t_ZoomDirectionType };
@@ -6,6 +6,17 @@ import * as $p_i from '../ios/index';
6
6
  import { PositionInfo, AudioTrackType, AudioPlayType, VirtualBackgroundSource, AudioScenarioType, AudioProfileType, AnsMode, VoiceChangerType, VoiceReverbType, StreamIndex, RenderMode, VideoSuperResolutionMode, MirrorType, RemoteMirrorType, VideoRotationMode, CameraId, AudioRoute, MessageConfig, AudioFrameCallbackMethod, ZoomConfigType, ZoomDirectionType, VideoSourceType, AlphaLayout, AudioSourceType, AudioRenderType, PublishFallbackOption, RemoteUserPriority, SEICountPerFrame, EffectBeautyMode, VideoOrientation, RecordingType, ScreenMediaType, VideoDecoderConfig, EarMonitorMode, TorchState, VideoRotation, RTCLogConfig, VoiceEqualizationConfig, VoiceReverbConfig, VideoCanvas, RemoteStreamKey, RemoteVideoRenderConfig, AudioFormat, MixedStreamConfig, PushSingleStreamParam, VideoCaptureConfig, VideoEncoderConfig, ScreenVideoEncoderConfig, AudioFrame, RecordingConfig, AudioRecordingConfig, AudioPropertiesConfig, StreamSycnInfoConfig, PublicStreaming, EchoTestConfig, CloudProxyInfo, NetworkTimeInfo, MediaTypeEnhancementConfig, MediaStreamType, PauseResumeControlMediaType, AudioSelectionPriority, UserInfo, RTCRoomConfig, RemoteVideoConfig, SubtitleConfig, SingScoringConfig, DownloadLyricType, AttenuationType, Position, ReceiveRange, AudioMixingType, AudioMixingDualMonoMode, MediaPlayerConfig, MediaPlayerCustomSource, AudioEffectPlayerConfig } from './keytype';
7
7
  import { IFaceDetectionObserver, RTCVideoEventHandler, IAudioFrameObserver, IAudioFrameProcessor, ILocalEncodedVideoFrameObserver, IRemoteEncodedVideoFrameObserver, IMixedStreamObserver, IPushSingleStreamToCDNObserver, IExternalVideoEncoderEventHandler, RTCRoomEventHandler, IMediaPlayerAudioFrameObserver, IMediaPlayerEventHandler, IAudioEffectPlayerEventHandler } from './callback';
8
8
  import { Intent } from './types';
9
+ export declare class ForwardStreamInfo {
10
+ constructor(roomId: string, token: string);
11
+ constructor();
12
+ protected _instance: any;
13
+ get roomId(): string;
14
+ set roomId(value: string);
15
+ get token(): string;
16
+ set token(value: string);
17
+ protected __init(...args: any[]): void;
18
+ protected __new_instance(...args: any[]): any;
19
+ }
9
20
  export declare class ISpatialAudio {
10
21
  protected _instance: any;
11
22
  protected __init(...args: any[]): void;
@@ -3065,6 +3076,8 @@ export declare class RTCRoom {
3065
3076
  *
3066
3077
  */
3067
3078
  resumeAllSubscribedStream(mediaType: PauseResumeControlMediaType): number;
3079
+ startForwardStreamToRooms(forwardStreamInfos: Array<ForwardStreamInfo>): number;
3080
+ updateForwardStreamToRooms(forwardStreamInfos: Array<ForwardStreamInfo>): number;
3068
3081
  /** {en}
3069
3082
  * @detail api
3070
3083
  * @region Multi-room
@@ -1,13 +1,13 @@
1
1
  // Copyright © 2022 BytePlusRTC All rights reserved.
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
- import { StreamIndex, type RenderMode, ChannelProfile, RTCRoom, AudioReportMode, AudioPropertiesMode, IAudioEffectPlayer as AudioEffectPlayer, AudioMixingType, IMediaPlayer, ScreenMediaType, ProblemFeedbackOption, SyncInfoStreamType, ReturnStatus, RTCScreenVideoEncoderPreference, LocalLogLevel } from './codegen/pack';
4
+ import { StreamIndex, type RenderMode, ChannelProfile, RTCRoom, AudioReportMode, AudioPropertiesMode, IAudioEffectPlayer as AudioEffectPlayer, AudioMixingType, IMediaPlayer, ScreenMediaType, ProblemFeedbackOption, SyncInfoStreamType, ReturnStatus, RTCScreenVideoEncoderPreference, LocalLogLevel, ByteRTCStreamMixingType, RTCVideoEncoderPreference } from './codegen/pack';
5
5
  import { RTCVideo } from './core/rtc-video';
6
6
  /** {en}
7
7
  * @detail api
8
8
  * @brief An engine class encapsulated by the {@link RTCVideo RTCVideo} class of the Android/iOS SDK.
9
9
  */
10
- export type IEngine = Omit<RTCVideo, 'setLocalVideoCanvas' | 'createRTCRoom' | 'setCellularEnhancement' | 'enableAudioPropertiesReport' | 'setRemoteAudioPlaybackVolume' | 'getAudioEffectPlayer' | 'getMediaPlayer' | 'setScreenVideoEncoderConfig' | 'startScreenCapture' | 'setRemoteVideoCanvas' | 'requestRemoteVideoKeyFrame' | 'sendStreamSyncInfo'> & {
10
+ export type IEngine = Omit<RTCVideo, 'setLocalVideoCanvas' | 'createRTCRoom' | 'setCellularEnhancement' | 'enableAudioPropertiesReport' | 'setRemoteAudioPlaybackVolume' | 'getAudioEffectPlayer' | 'getMediaPlayer' | 'setScreenVideoEncoderConfig' | 'startScreenCapture' | 'setRemoteVideoCanvas' | 'requestRemoteVideoKeyFrame' | 'sendStreamSyncInfo' | 'setVideoEncodeConfig'> & {
11
11
  /** {en}
12
12
  * @brief Sets the view to be used for local video rendering and the rendering mode.
13
13
  * @param streamIndex Video stream type.
@@ -153,12 +153,29 @@ export type IEngine = Omit<RTCVideo, 'setLocalVideoCanvas' | 'createRTCRoom' | '
153
153
  * - When using `CHANNEL_PROFILE_INTERACTIVE_PODCAST` as room profile, the data will be delivered. For other coom profiles, the data may be lost when the local user is muted.
154
154
  */
155
155
  sendStreamSyncInfo(data: ArrayBuffer, info: IStreamSyncInfoConfig): number;
156
+ /** {en}
157
+ * @detail api
158
+ * @region Video Management
159
+ * @author zhaomingliang
160
+ * @brief \<span id="RTCVideo-setvideoencoderconfig-1">\</span>Video publisher call this API to set the parameters of the maximum resolution video stream that is expected to be published, including resolution, frame rate, bitrate, and fallback strategy in poor network conditions. <br>
161
+ * You can only set configuration for one stream with this API. If you want to set configuration for multiple streams, Call [setVideoEncoderConfig](#RTCVideo-setvideoencoderconfig-2).
162
+ * @param maxSolution The maximum video encoding parameter. See {@link VideoEncoderConfig VideoEncoderConfig}.
163
+ * @return API call result: <br>
164
+ * - 0: Success
165
+ * - ! 0: Failure
166
+ * @note
167
+ * - You can use {@link enableSimulcastMode enableSimulcastMode} simultaneously to publish streams with different resolutions. Specifically, if you want to publish multiple streams with different resolutions, you need to call this method and enable the simulcast mode with {@link enableSimulcastMode enableSimulcastMode} before publishing your streams. The SDK will intelligently adjust the number of streams to be published (up to 4) and their parameters based on the settings of the subscribing end. The resolution set by calling this method will be the maximum resolution among the streams. For specific rules, please refer to [Simulcasting](https://docs.byteplus.com/en/byteplus-rtc/docs/70139).
168
+ * - Without calling this API, SDK will only publish one stream for you with a resolution of 640px × 360px and a frame rate of 15fps.
169
+ * - In custom capturing scenario, you must call this API to set encoding configurations to ensure the integrity of the picture received by the remote users.
170
+ * - This API is applicable to the video stream captured by the camera, see {@link setScreenVideoEncoderConfig setScreenVideoEncoderConfig} for setting parameters for screen sharing video stream.
171
+ */
172
+ setVideoEncoderConfig(channelSolutions: IVideoEncoderConfig[]): number;
156
173
  };
157
174
  /** {en}
158
175
  * @detail api
159
176
  * @brief A room class based on the {@link RTCRoom RTCRoom} class encapsulation of the Android/iOS SDK.
160
177
  */
161
- export type IRoom = Omit<RTCRoom, 'joinRoom'> & {
178
+ export type IRoom = Omit<RTCRoom, 'joinRoom' | 'startForwardStreamToRooms'> & {
162
179
  /** {en}
163
180
  * @brief Join the room.
164
181
  * After creating a room by calling {@link createRTCRoom createRTCRoom}, call this API to join the room and make audio & video calls with other users in the room.
@@ -189,6 +206,16 @@ export type IRoom = Omit<RTCRoom, 'joinRoom'> & {
189
206
  * - SDK will automatically select the stream to be published or subcribed based on the settings of both sides see for details.
190
207
  */
191
208
  setRemoteVideoConfig: (userId: string, remoteVideoConfig: IRemoteVideoConfig) => number;
209
+ /** {en}
210
+ * @detail api
211
+ * @brief Start to forawrd stream to specific rooms.
212
+ */
213
+ startForwardStreamToRooms: (forwardStreamConfig: IForwardStreamConfig[]) => number;
214
+ /** {en}
215
+ * @detail api
216
+ * @brief Update forawrd stream infos.
217
+ */
218
+ updateForwardStreamToRooms: (forwardStreamConfig: IForwardStreamConfig[]) => number;
192
219
  };
193
220
  /** {en}
194
221
  * @detail api
@@ -436,6 +463,39 @@ export interface IAudioPropertiesConfig {
436
463
  */
437
464
  enableVoicePitch: boolean;
438
465
  }
466
+ export interface IVideoEncoderConfig {
467
+ /** {en}
468
+ * @brief Width of the video frame in px
469
+ */
470
+ width?: number;
471
+ /** {en}
472
+ * @brief Height of the video frame in px
473
+ */
474
+ height?: number;
475
+ /** {en}
476
+ * @brief Video frame rate in fps
477
+ */
478
+ frameRate?: number;
479
+ /** {en}
480
+ * @brief Maximum bit rate in kbps. Optional for internal capturing while mandatory for custom capturing. <br>
481
+ * If you set this value to -1, SDK will automatically calculate the applicable bit rate based on the input resolution and frame rate. <br>
482
+ * No stream will be encoded and published if you set this value to 0.
483
+ */
484
+ maxBitrate?: number;
485
+ /** {en}
486
+ * @brief Minimum video encoding bitrate in kbps. The encoding bitrate will not be lower than the `minBitrate`. <br>
487
+ * It defaults to `0`. <br>
488
+ * It ranges within [0, maxBitrate). When `maxBitrate` < `minBitrate`, the bitrate is self-adpapted. <br>
489
+ * In the following circumstance, the assignment to this variable has no effect: <br>
490
+ * - When `maxBitrate` = `0`, the video encoding is disabled.
491
+ * - When `maxBitrate` < `0`, the bitrate is self-adapted.
492
+ */
493
+ minBitrate?: number;
494
+ /** {en}
495
+ * @brief Encoding preference.
496
+ */
497
+ encoderPreference?: RTCVideoEncoderPreference;
498
+ }
439
499
  /** {en}
440
500
  * @detail keytype
441
501
  * @brief Remote stream info.
@@ -571,6 +631,20 @@ export interface IRemoteVideoConfig {
571
631
  */
572
632
  framerate: number;
573
633
  }
634
+ /** {en}
635
+ * @detail keytype
636
+ * @brief Params for stream forwards.
637
+ */
638
+ export interface IForwardStreamConfig {
639
+ /** {en}
640
+ * @brief Room ID
641
+ */
642
+ roomId: string;
643
+ /** {en}
644
+ * @brief User ID
645
+ */
646
+ token: string;
647
+ }
574
648
  /** {en}
575
649
  * @detail keytype
576
650
  * @brief Local log parameters.
@@ -641,3 +715,79 @@ export interface IFeedbackProblemInfo {
641
715
  */
642
716
  userId: string;
643
717
  }
718
+ /** {en}
719
+ * @detail keytype
720
+ * @brief UMixed stream push to CDN.
721
+ */
722
+ export interface IMixedStreamConfig {
723
+ /** {en}
724
+ * @brief Room ID for pushing stream.
725
+ */
726
+ roomId: string;
727
+ /** {en}
728
+ * @brief User ID for pushing stream.
729
+ */
730
+ userId: string;
731
+ /** {en}
732
+ * @brief CDN URL for pushing stream (rtmp/rtmps).
733
+ */
734
+ pushURL: string;
735
+ /** {en}
736
+ * @brief Mixing type (normal/custom etc., enum/number/string, should align with SDK enum).
737
+ */
738
+ expectedMixingType?: ByteRTCStreamMixingType;
739
+ /** {en}
740
+ * @brief Layout config for mixing, see below.
741
+ */
742
+ layoutConfig?: IMixedStreamLayoutConfig;
743
+ /** {en}
744
+ * @brief Video transcoding config, see below.
745
+ */
746
+ videoConfig?: IMixedStreamVideoConfig;
747
+ /** {en}
748
+ * @brief Audio transcoding config, see below.
749
+ */
750
+ audioConfig?: IMixedStreamAudioConfig;
751
+ /** {en}
752
+ * @brief Client mix config, see below.
753
+ */
754
+ clientMixConfig?: IMixedStreamClientMixConfig;
755
+ /** {en}
756
+ * @brief Spatial audio config, see below.
757
+ */
758
+ spatialAudioConfig?: IMixedStreamSpatialAudioConfig;
759
+ /** {en}
760
+ * @brief Server control config, see below.
761
+ */
762
+ serverControlConfig?: IMixedStreamServerControlConfig;
763
+ }
764
+ /** {en}
765
+ * @brief Layout config for mixing.
766
+ */
767
+ export interface IMixedStreamLayoutConfig {
768
+ }
769
+ /** {en}
770
+ * @brief Video transcoding config.
771
+ */
772
+ export interface IMixedStreamVideoConfig {
773
+ }
774
+ /** {en}
775
+ * @brief Audio transcoding config.
776
+ */
777
+ export interface IMixedStreamAudioConfig {
778
+ }
779
+ /** {en}
780
+ * @brief Client mix config.
781
+ */
782
+ export interface IMixedStreamClientMixConfig {
783
+ }
784
+ /** {en}
785
+ * @brief Spatial audio config.
786
+ */
787
+ export interface IMixedStreamSpatialAudioConfig {
788
+ }
789
+ /** {en}
790
+ * @brief Server control config.
791
+ */
792
+ export interface IMixedStreamServerControlConfig {
793
+ }
@@ -2,8 +2,9 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
4
  import { NativeProxyService } from '@vcloud-lux/hybrid-runtime';
5
- import { RTCVideo, VideoEncoderConfig } from '../../codegen/android';
5
+ import { MirrorType, RTCVideo, VideoEncoderConfig } from '../../codegen/android';
6
6
  export declare class VertcHelper extends NativeProxyService {
7
7
  static getInstance(): VertcHelper;
8
8
  invokeSetVideoEncoderConfig(video: RTCVideo, channelSolutions: VideoEncoderConfig[]): Promise<number>;
9
+ invokeSetLocalVideoMirrorType(video: RTCVideo, mirrorType: MirrorType): Promise<number>;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/react-native-rtc",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "peerDependencies": {
5
5
  "react": "*",
6
6
  "react-native": "*"