@rongcloud/plugin-rtc 5.5.5-beem-alpha.2 → 5.5.5-beem

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.5.5-beem-alpha.2
3
- * CommitId - 53292a559174278ff032c3811be232015e47f007
4
- * Fri Oct 14 2022 11:08:06 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.5-beem
3
+ * CommitId - b8e57d36680c1d71921cded6b91771d4dfd4f3e8
4
+ * Fri Oct 14 2022 19:54:22 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, EnableLogL, IPluginGenerator } from '@rongcloud/engine';
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.5.5-beem-alpha.2
3
- * CommitId - 53292a559174278ff032c3811be232015e47f007
4
- * Fri Oct 14 2022 11:08:06 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.5-beem
3
+ * CommitId - b8e57d36680c1d71921cded6b91771d4dfd4f3e8
4
+ * Fri Oct 14 2022 19:54:22 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { Logger, EventEmitter, isNumber, validate, isObject as isObject$1, ErrorCode, HttpMethod, isArray, ConnectionStatus, notEmptyObject, notEmptyArray, notEmptyString, isString, RTCMode as RTCMode$1, assert, ConversationType, isHttpUrl, isBoolean, isUndefined, forEach, VersionManage, LogL } from '@rongcloud/engine';
@@ -14651,7 +14651,7 @@ const getCommonHeader$1 = () => ({
14651
14651
  'Content-Type': 'application/json;charset=UTF-8',
14652
14652
  'Cache-Control': 'no-cache',
14653
14653
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14654
- ClientVersion: "5.5.5-beem-alpha.2",
14654
+ ClientVersion: "5.5.5-beem",
14655
14655
  'Client-Session-Id': getUUID(),
14656
14656
  'Request-Id': Date.now().toString(),
14657
14657
  });
@@ -14791,7 +14791,7 @@ const getCommonHeader = () => ({
14791
14791
  'Content-Type': 'application/json;charset=UTF-8',
14792
14792
  'Cache-Control': 'no-cache',
14793
14793
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14794
- ClientVersion: "5.5.5-beem-alpha.2",
14794
+ ClientVersion: "5.5.5-beem",
14795
14795
  'Client-Session-Id': getUUID(),
14796
14796
  'Request-Id': Date.now().toString(),
14797
14797
  });
@@ -18117,7 +18117,7 @@ class PolarisReporter {
18117
18117
  * 加入房间
18118
18118
  */
18119
18119
  sendR1() {
18120
- const rtcVersion = "5.5.5-beem-alpha.2";
18120
+ const rtcVersion = "5.5.5-beem";
18121
18121
  const imVersion = this._context.getCoreVersion();
18122
18122
  const platform = 'web';
18123
18123
  const pcName = navigator.platform;
@@ -18266,7 +18266,7 @@ class PolarisHttpReporter {
18266
18266
  _formatR1Data() {
18267
18267
  return {
18268
18268
  joinTime: this._context.userJoinTime || 0,
18269
- rtcVersion: "5.5.5-beem-alpha.2",
18269
+ rtcVersion: "5.5.5-beem",
18270
18270
  imVersion: this._context.getCoreVersion(),
18271
18271
  platform: 'web',
18272
18272
  device: navigator.platform,
@@ -20170,7 +20170,9 @@ function dealLeftUsers(leftUsers, store, subhook, invoker) {
20170
20170
  * 把 IRoomStatus 转化为通用处理人员方法(_stateHandle)需要的数据
20171
20171
  */
20172
20172
  function transPullDataToStateMsgCont(data) {
20173
- const { userId, extra, event: state, switchRoleType, } = data;
20173
+ var _a;
20174
+ const { userId, userData, event: state, switchRoleType, } = data;
20175
+ const extra = (_a = userData.filter((item) => item.key === 'extra')[0]) === null || _a === void 0 ? void 0 : _a.value;
20174
20176
  const content = {
20175
20177
  users: [{
20176
20178
  userId,
@@ -20392,7 +20394,6 @@ class ParseRemoteResCommand extends BaseCommand {
20392
20394
  (_d = (_c = store.context) === null || _c === void 0 ? void 0 : _c.logger) === null || _d === void 0 ? void 0 : _d.error(RCLoggerTag.L_OLD_DAILY_RECORD_O, `resub tracks failed -> code: ${code}, ids: ${JSON.stringify(trackIds)}`);
20393
20395
  }
20394
20396
  }
20395
- // this._onTrackPublish(newTracks)
20396
20397
  this.callback.onTrackPublish(newTracks);
20397
20398
  }
20398
20399
  if (unpublishedList.length > 0) {
@@ -20417,10 +20418,8 @@ class ParseRemoteResCommand extends BaseCommand {
20417
20418
  // 更新资源 state
20418
20419
  const index = resIds.indexOf(id);
20419
20420
  nowResources[index].state = item.state;
20420
- // const rTrack = this._remoteTracks[id]
20421
20421
  const rTrack = store.getRemoteTrack(id);
20422
20422
  rTrack.__innerSetRemoteMuted(item.state === 0);
20423
- // rTrack.isAudioTrack() ? this._onAudioMuteChange(rTrack) : this._onVideoMuteChange(rTrack)
20424
20423
  rTrack.isAudioTrack() ? this.callback.onAudioMuteChange(rTrack) : this.callback.onVideoMuteChange(rTrack);
20425
20424
  }
20426
20425
  }
@@ -20434,7 +20433,6 @@ class ParseRemoteResCommand extends BaseCommand {
20434
20433
  // 给业务层抛 CDN 状态
20435
20434
  const changed = ((_e = store.getCDNUris()) === null || _e === void 0 ? void 0 : _e.enableInnerCDN) !== content.cdn_uris[0].enableInnerCDN;
20436
20435
  // 更新 _CDNUris
20437
- // this._CDNUris = content.cdn_uris[0]
20438
20436
  store.setCDNUris(content.cdn_uris[0]);
20439
20437
  if (changed) {
20440
20438
  this.callback.onCDNEnableChange(!!((_f = store.getCDNUris()) === null || _f === void 0 ? void 0 : _f.enableInnerCDN));
@@ -21857,11 +21855,9 @@ class RCAbstractRoom extends EventEmitter {
21857
21855
  this._peerCManager = new RCRTCPeerCManager(this._useMutilPeerC, this._roomId, this._reTryExchange.bind(this), this._context.getCurrentId(), this._polarisReport);
21858
21856
  this._invoker = new Invoker(this._context, this._service, this._peerCManager, _roomId, this._context.getCurrentId(), _roomMode, this._polarisReport, isUpgrade, isMainRoom);
21859
21857
  this._store = this._invoker.store;
21860
- // 注册监听 rtc_ntf 信令数据,解码后拉取指定房间数据
21858
+ // 注册监听 rtc_ntf 信令数据,收到通知时拉取房间数据
21861
21859
  this._context.registerRTCSignalListener((buffer) => __awaiter(this, void 0, void 0, function* () {
21862
21860
  var _a, _b, _c, _d;
21863
- // 1. 拉取数据,非本房间可不拉取
21864
- // 2. 拉取完成后调用原通知方法 this.singalDataChange(_roomId)
21865
21861
  const { time, type, roomId, } = this._context.decodeRtcNotify(buffer);
21866
21862
  switch (type) {
21867
21863
  case 2:
@@ -27803,7 +27799,7 @@ class RCRTCClient extends RCMediaStreamCapture {
27803
27799
  }
27804
27800
  reportSDKInfo() {
27805
27801
  this._context.reportSDKInfo({
27806
- 'plugin-rtc': "5.5.5-beem-alpha.2",
27802
+ 'plugin-rtc': "5.5.5-beem",
27807
27803
  });
27808
27804
  }
27809
27805
  }
@@ -28504,6 +28500,7 @@ class RTCContext {
28504
28500
  headers: {
28505
28501
  jwt: RCMediaService.jwtToken,
28506
28502
  },
28503
+ timeout: 5 * 1000,
28507
28504
  });
28508
28505
  if (!res.data) {
28509
28506
  throw new Error('http request fail');
@@ -28794,9 +28791,9 @@ const installer = {
28794
28791
  console.error('Please use the https protocol or use `http://localhost` to open the page!');
28795
28792
  return false;
28796
28793
  }
28797
- VersionManage.add('plugin-rtc', "5.5.5-beem-alpha.2");
28798
- if (!VersionManage.validEngine("^5.6.0-beem-alpha.5")) {
28799
- console.error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem-alpha.5"}'.`);
28794
+ VersionManage.add('plugin-rtc', "5.5.5-beem");
28795
+ if (!VersionManage.validEngine("^5.6.0-beem")) {
28796
+ console.error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem"}'.`);
28800
28797
  return false;
28801
28798
  }
28802
28799
  return true;
@@ -28807,8 +28804,8 @@ const installer = {
28807
28804
  logger.setOutputLevel(options.logLevel || LogL.DEBUG);
28808
28805
  RTCLogger.setLogger(logger);
28809
28806
  logger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
28810
- 'RCRTC Version': "5.5.5-beem-alpha.2",
28811
- Commit: "53292a559174278ff032c3811be232015e47f007",
28807
+ 'RCRTC Version': "5.5.5-beem",
28808
+ Commit: "b8e57d36680c1d71921cded6b91771d4dfd4f3e8",
28812
28809
  'browserInfo.browser': browserInfo.browser,
28813
28810
  'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
28814
28811
  'browserInfo.version': browserInfo.version,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.5.5-beem-alpha.2
3
- * CommitId - 53292a559174278ff032c3811be232015e47f007
4
- * Fri Oct 14 2022 11:08:06 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.5-beem
3
+ * CommitId - b8e57d36680c1d71921cded6b91771d4dfd4f3e8
4
+ * Fri Oct 14 2022 19:54:22 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  'use strict';
@@ -14655,7 +14655,7 @@ const getCommonHeader$1 = () => ({
14655
14655
  'Content-Type': 'application/json;charset=UTF-8',
14656
14656
  'Cache-Control': 'no-cache',
14657
14657
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14658
- ClientVersion: "5.5.5-beem-alpha.2",
14658
+ ClientVersion: "5.5.5-beem",
14659
14659
  'Client-Session-Id': getUUID(),
14660
14660
  'Request-Id': Date.now().toString(),
14661
14661
  });
@@ -14795,7 +14795,7 @@ const getCommonHeader = () => ({
14795
14795
  'Content-Type': 'application/json;charset=UTF-8',
14796
14796
  'Cache-Control': 'no-cache',
14797
14797
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14798
- ClientVersion: "5.5.5-beem-alpha.2",
14798
+ ClientVersion: "5.5.5-beem",
14799
14799
  'Client-Session-Id': getUUID(),
14800
14800
  'Request-Id': Date.now().toString(),
14801
14801
  });
@@ -18121,7 +18121,7 @@ class PolarisReporter {
18121
18121
  * 加入房间
18122
18122
  */
18123
18123
  sendR1() {
18124
- const rtcVersion = "5.5.5-beem-alpha.2";
18124
+ const rtcVersion = "5.5.5-beem";
18125
18125
  const imVersion = this._context.getCoreVersion();
18126
18126
  const platform = 'web';
18127
18127
  const pcName = navigator.platform;
@@ -18270,7 +18270,7 @@ class PolarisHttpReporter {
18270
18270
  _formatR1Data() {
18271
18271
  return {
18272
18272
  joinTime: this._context.userJoinTime || 0,
18273
- rtcVersion: "5.5.5-beem-alpha.2",
18273
+ rtcVersion: "5.5.5-beem",
18274
18274
  imVersion: this._context.getCoreVersion(),
18275
18275
  platform: 'web',
18276
18276
  device: navigator.platform,
@@ -20174,7 +20174,9 @@ function dealLeftUsers(leftUsers, store, subhook, invoker) {
20174
20174
  * 把 IRoomStatus 转化为通用处理人员方法(_stateHandle)需要的数据
20175
20175
  */
20176
20176
  function transPullDataToStateMsgCont(data) {
20177
- const { userId, extra, event: state, switchRoleType, } = data;
20177
+ var _a;
20178
+ const { userId, userData, event: state, switchRoleType, } = data;
20179
+ const extra = (_a = userData.filter((item) => item.key === 'extra')[0]) === null || _a === void 0 ? void 0 : _a.value;
20178
20180
  const content = {
20179
20181
  users: [{
20180
20182
  userId,
@@ -20396,7 +20398,6 @@ class ParseRemoteResCommand extends BaseCommand {
20396
20398
  (_d = (_c = store.context) === null || _c === void 0 ? void 0 : _c.logger) === null || _d === void 0 ? void 0 : _d.error(RCLoggerTag.L_OLD_DAILY_RECORD_O, `resub tracks failed -> code: ${code}, ids: ${JSON.stringify(trackIds)}`);
20397
20399
  }
20398
20400
  }
20399
- // this._onTrackPublish(newTracks)
20400
20401
  this.callback.onTrackPublish(newTracks);
20401
20402
  }
20402
20403
  if (unpublishedList.length > 0) {
@@ -20421,10 +20422,8 @@ class ParseRemoteResCommand extends BaseCommand {
20421
20422
  // 更新资源 state
20422
20423
  const index = resIds.indexOf(id);
20423
20424
  nowResources[index].state = item.state;
20424
- // const rTrack = this._remoteTracks[id]
20425
20425
  const rTrack = store.getRemoteTrack(id);
20426
20426
  rTrack.__innerSetRemoteMuted(item.state === 0);
20427
- // rTrack.isAudioTrack() ? this._onAudioMuteChange(rTrack) : this._onVideoMuteChange(rTrack)
20428
20427
  rTrack.isAudioTrack() ? this.callback.onAudioMuteChange(rTrack) : this.callback.onVideoMuteChange(rTrack);
20429
20428
  }
20430
20429
  }
@@ -20438,7 +20437,6 @@ class ParseRemoteResCommand extends BaseCommand {
20438
20437
  // 给业务层抛 CDN 状态
20439
20438
  const changed = ((_e = store.getCDNUris()) === null || _e === void 0 ? void 0 : _e.enableInnerCDN) !== content.cdn_uris[0].enableInnerCDN;
20440
20439
  // 更新 _CDNUris
20441
- // this._CDNUris = content.cdn_uris[0]
20442
20440
  store.setCDNUris(content.cdn_uris[0]);
20443
20441
  if (changed) {
20444
20442
  this.callback.onCDNEnableChange(!!((_f = store.getCDNUris()) === null || _f === void 0 ? void 0 : _f.enableInnerCDN));
@@ -21861,11 +21859,9 @@ class RCAbstractRoom extends engine.EventEmitter {
21861
21859
  this._peerCManager = new RCRTCPeerCManager(this._useMutilPeerC, this._roomId, this._reTryExchange.bind(this), this._context.getCurrentId(), this._polarisReport);
21862
21860
  this._invoker = new Invoker(this._context, this._service, this._peerCManager, _roomId, this._context.getCurrentId(), _roomMode, this._polarisReport, isUpgrade, isMainRoom);
21863
21861
  this._store = this._invoker.store;
21864
- // 注册监听 rtc_ntf 信令数据,解码后拉取指定房间数据
21862
+ // 注册监听 rtc_ntf 信令数据,收到通知时拉取房间数据
21865
21863
  this._context.registerRTCSignalListener((buffer) => __awaiter(this, void 0, void 0, function* () {
21866
21864
  var _a, _b, _c, _d;
21867
- // 1. 拉取数据,非本房间可不拉取
21868
- // 2. 拉取完成后调用原通知方法 this.singalDataChange(_roomId)
21869
21865
  const { time, type, roomId, } = this._context.decodeRtcNotify(buffer);
21870
21866
  switch (type) {
21871
21867
  case 2:
@@ -27807,7 +27803,7 @@ class RCRTCClient extends RCMediaStreamCapture {
27807
27803
  }
27808
27804
  reportSDKInfo() {
27809
27805
  this._context.reportSDKInfo({
27810
- 'plugin-rtc': "5.5.5-beem-alpha.2",
27806
+ 'plugin-rtc': "5.5.5-beem",
27811
27807
  });
27812
27808
  }
27813
27809
  }
@@ -28508,6 +28504,7 @@ class RTCContext {
28508
28504
  headers: {
28509
28505
  jwt: RCMediaService.jwtToken,
28510
28506
  },
28507
+ timeout: 5 * 1000,
28511
28508
  });
28512
28509
  if (!res.data) {
28513
28510
  throw new Error('http request fail');
@@ -28798,9 +28795,9 @@ const installer = {
28798
28795
  console.error('Please use the https protocol or use `http://localhost` to open the page!');
28799
28796
  return false;
28800
28797
  }
28801
- engine.VersionManage.add('plugin-rtc', "5.5.5-beem-alpha.2");
28802
- if (!engine.VersionManage.validEngine("^5.6.0-beem-alpha.5")) {
28803
- console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem-alpha.5"}'.`);
28798
+ engine.VersionManage.add('plugin-rtc', "5.5.5-beem");
28799
+ if (!engine.VersionManage.validEngine("^5.6.0-beem")) {
28800
+ console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem"}'.`);
28804
28801
  return false;
28805
28802
  }
28806
28803
  return true;
@@ -28811,8 +28808,8 @@ const installer = {
28811
28808
  logger.setOutputLevel(options.logLevel || engine.LogL.DEBUG);
28812
28809
  RTCLogger.setLogger(logger);
28813
28810
  logger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
28814
- 'RCRTC Version': "5.5.5-beem-alpha.2",
28815
- Commit: "53292a559174278ff032c3811be232015e47f007",
28811
+ 'RCRTC Version': "5.5.5-beem",
28812
+ Commit: "b8e57d36680c1d71921cded6b91771d4dfd4f3e8",
28816
28813
  'browserInfo.browser': browserInfo.browser,
28817
28814
  'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
28818
28815
  'browserInfo.version': browserInfo.version,
package/dist/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.5.5-beem-alpha.2
3
- * CommitId - 53292a559174278ff032c3811be232015e47f007
4
- * Fri Oct 14 2022 11:08:06 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.5-beem
3
+ * CommitId - b8e57d36680c1d71921cded6b91771d4dfd4f3e8
4
+ * Fri Oct 14 2022 19:54:22 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  (function (global, factory) {
@@ -14655,7 +14655,7 @@
14655
14655
  'Content-Type': 'application/json;charset=UTF-8',
14656
14656
  'Cache-Control': 'no-cache',
14657
14657
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14658
- ClientVersion: "5.5.5-beem-alpha.2",
14658
+ ClientVersion: "5.5.5-beem",
14659
14659
  'Client-Session-Id': getUUID(),
14660
14660
  'Request-Id': Date.now().toString(),
14661
14661
  });
@@ -14795,7 +14795,7 @@
14795
14795
  'Content-Type': 'application/json;charset=UTF-8',
14796
14796
  'Cache-Control': 'no-cache',
14797
14797
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
14798
- ClientVersion: "5.5.5-beem-alpha.2",
14798
+ ClientVersion: "5.5.5-beem",
14799
14799
  'Client-Session-Id': getUUID(),
14800
14800
  'Request-Id': Date.now().toString(),
14801
14801
  });
@@ -18121,7 +18121,7 @@
18121
18121
  * 加入房间
18122
18122
  */
18123
18123
  sendR1() {
18124
- const rtcVersion = "5.5.5-beem-alpha.2";
18124
+ const rtcVersion = "5.5.5-beem";
18125
18125
  const imVersion = this._context.getCoreVersion();
18126
18126
  const platform = 'web';
18127
18127
  const pcName = navigator.platform;
@@ -18270,7 +18270,7 @@
18270
18270
  _formatR1Data() {
18271
18271
  return {
18272
18272
  joinTime: this._context.userJoinTime || 0,
18273
- rtcVersion: "5.5.5-beem-alpha.2",
18273
+ rtcVersion: "5.5.5-beem",
18274
18274
  imVersion: this._context.getCoreVersion(),
18275
18275
  platform: 'web',
18276
18276
  device: navigator.platform,
@@ -20174,7 +20174,9 @@
20174
20174
  * 把 IRoomStatus 转化为通用处理人员方法(_stateHandle)需要的数据
20175
20175
  */
20176
20176
  function transPullDataToStateMsgCont(data) {
20177
- const { userId, extra, event: state, switchRoleType, } = data;
20177
+ var _a;
20178
+ const { userId, userData, event: state, switchRoleType, } = data;
20179
+ const extra = (_a = userData.filter((item) => item.key === 'extra')[0]) === null || _a === void 0 ? void 0 : _a.value;
20178
20180
  const content = {
20179
20181
  users: [{
20180
20182
  userId,
@@ -20396,7 +20398,6 @@
20396
20398
  (_d = (_c = store.context) === null || _c === void 0 ? void 0 : _c.logger) === null || _d === void 0 ? void 0 : _d.error(RCLoggerTag.L_OLD_DAILY_RECORD_O, `resub tracks failed -> code: ${code}, ids: ${JSON.stringify(trackIds)}`);
20397
20399
  }
20398
20400
  }
20399
- // this._onTrackPublish(newTracks)
20400
20401
  this.callback.onTrackPublish(newTracks);
20401
20402
  }
20402
20403
  if (unpublishedList.length > 0) {
@@ -20421,10 +20422,8 @@
20421
20422
  // 更新资源 state
20422
20423
  const index = resIds.indexOf(id);
20423
20424
  nowResources[index].state = item.state;
20424
- // const rTrack = this._remoteTracks[id]
20425
20425
  const rTrack = store.getRemoteTrack(id);
20426
20426
  rTrack.__innerSetRemoteMuted(item.state === 0);
20427
- // rTrack.isAudioTrack() ? this._onAudioMuteChange(rTrack) : this._onVideoMuteChange(rTrack)
20428
20427
  rTrack.isAudioTrack() ? this.callback.onAudioMuteChange(rTrack) : this.callback.onVideoMuteChange(rTrack);
20429
20428
  }
20430
20429
  }
@@ -20438,7 +20437,6 @@
20438
20437
  // 给业务层抛 CDN 状态
20439
20438
  const changed = ((_e = store.getCDNUris()) === null || _e === void 0 ? void 0 : _e.enableInnerCDN) !== content.cdn_uris[0].enableInnerCDN;
20440
20439
  // 更新 _CDNUris
20441
- // this._CDNUris = content.cdn_uris[0]
20442
20440
  store.setCDNUris(content.cdn_uris[0]);
20443
20441
  if (changed) {
20444
20442
  this.callback.onCDNEnableChange(!!((_f = store.getCDNUris()) === null || _f === void 0 ? void 0 : _f.enableInnerCDN));
@@ -21861,11 +21859,9 @@
21861
21859
  this._peerCManager = new RCRTCPeerCManager(this._useMutilPeerC, this._roomId, this._reTryExchange.bind(this), this._context.getCurrentId(), this._polarisReport);
21862
21860
  this._invoker = new Invoker(this._context, this._service, this._peerCManager, _roomId, this._context.getCurrentId(), _roomMode, this._polarisReport, isUpgrade, isMainRoom);
21863
21861
  this._store = this._invoker.store;
21864
- // 注册监听 rtc_ntf 信令数据,解码后拉取指定房间数据
21862
+ // 注册监听 rtc_ntf 信令数据,收到通知时拉取房间数据
21865
21863
  this._context.registerRTCSignalListener((buffer) => __awaiter(this, void 0, void 0, function* () {
21866
21864
  var _a, _b, _c, _d;
21867
- // 1. 拉取数据,非本房间可不拉取
21868
- // 2. 拉取完成后调用原通知方法 this.singalDataChange(_roomId)
21869
21865
  const { time, type, roomId, } = this._context.decodeRtcNotify(buffer);
21870
21866
  switch (type) {
21871
21867
  case 2:
@@ -27807,7 +27803,7 @@
27807
27803
  }
27808
27804
  reportSDKInfo() {
27809
27805
  this._context.reportSDKInfo({
27810
- 'plugin-rtc': "5.5.5-beem-alpha.2",
27806
+ 'plugin-rtc': "5.5.5-beem",
27811
27807
  });
27812
27808
  }
27813
27809
  }
@@ -28508,6 +28504,7 @@ message probuf {
28508
28504
  headers: {
28509
28505
  jwt: RCMediaService.jwtToken,
28510
28506
  },
28507
+ timeout: 5 * 1000,
28511
28508
  });
28512
28509
  if (!res.data) {
28513
28510
  throw new Error('http request fail');
@@ -28798,9 +28795,9 @@ message probuf {
28798
28795
  console.error('Please use the https protocol or use `http://localhost` to open the page!');
28799
28796
  return false;
28800
28797
  }
28801
- engine.VersionManage.add('plugin-rtc', "5.5.5-beem-alpha.2");
28802
- if (!engine.VersionManage.validEngine("^5.6.0-beem-alpha.5")) {
28803
- console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem-alpha.5"}'.`);
28798
+ engine.VersionManage.add('plugin-rtc', "5.5.5-beem");
28799
+ if (!engine.VersionManage.validEngine("^5.6.0-beem")) {
28800
+ console.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${"^5.6.0-beem"}'.`);
28804
28801
  return false;
28805
28802
  }
28806
28803
  return true;
@@ -28811,8 +28808,8 @@ message probuf {
28811
28808
  logger.setOutputLevel(options.logLevel || engine.LogL.DEBUG);
28812
28809
  RTCLogger.setLogger(logger);
28813
28810
  logger.warn(RCLoggerTag.L_INDEX_INSTALL_RTC_PLUGIN_O, JSON.stringify({
28814
- 'RCRTC Version': "5.5.5-beem-alpha.2",
28815
- Commit: "53292a559174278ff032c3811be232015e47f007",
28811
+ 'RCRTC Version': "5.5.5-beem",
28812
+ Commit: "b8e57d36680c1d71921cded6b91771d4dfd4f3e8",
28816
28813
  'browserInfo.browser': browserInfo.browser,
28817
28814
  'browserInfo.supportsUnifiedPlan': browserInfo.supportsUnifiedPlan,
28818
28815
  'browserInfo.version': browserInfo.version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rongcloud/plugin-rtc",
3
- "version": "5.5.5-beem-alpha.2",
3
+ "version": "5.5.5-beem",
4
4
  "description": "@rongcloud/plugin-rtc",
5
5
  "main": "./dist/index.js",
6
6
  "__attrs__": {
@@ -30,5 +30,5 @@
30
30
  "engines": {
31
31
  "node": ">=10.0.0"
32
32
  },
33
- "__commit__": "53292a559174278ff032c3811be232015e47f007"
33
+ "__commit__": "b8e57d36680c1d71921cded6b91771d4dfd4f3e8"
34
34
  }