@rongcloud/plugin-rtc 5.4.1-alpha.1 → 5.4.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.4.1-alpha.1
3
- * CommitId - ef361465533e3461fd5625b413b1b5053e2fa20e
4
- * Mon Jun 06 2022 15:31:43 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.4.1-alpha.2
3
+ * CommitId - 93e65be83e51e6e0060a9f98d9dd505da99d6cdc
4
+ * Mon Jun 06 2022 16:04:57 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, IReceivedMessage, RTCPluginContext, IRuntime, ErrorCode, RTCMode, IJoinRTCRoomData, KVString, IServerRTCRoomEntry, LogLevel, RTCJoinType, IRTCUserData, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.4.1-alpha.1
3
- * CommitId - ef361465533e3461fd5625b413b1b5053e2fa20e
4
- * Mon Jun 06 2022 15:31:43 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.4.1-alpha.2
3
+ * CommitId - 93e65be83e51e6e0060a9f98d9dd505da99d6cdc
4
+ * Mon Jun 06 2022 16:04:57 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { Logger, EventEmitter, isNumber, ErrorCode, HttpMethod, ConnectionStatus, assert, ConversationType, RTCApiType, validate, isArray, isHttpUrl, notEmptyString, isBoolean, isUndefined, RTCMode, isString, isObject as isObject$1, RTCJoinType, RTCIdentityChangeType, VersionManage } from '@rongcloud/engine';
@@ -6780,7 +6780,7 @@ const getCommonHeader = () => ({
6780
6780
  'Content-Type': 'application/json;charset=UTF-8',
6781
6781
  'Cache-Control': 'no-cache',
6782
6782
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
6783
- ClientVersion: "5.4.1-alpha.1",
6783
+ ClientVersion: "5.4.1-alpha.2",
6784
6784
  'Client-Session-Id': getUUID(),
6785
6785
  'Request-Id': Date.now().toString()
6786
6786
  });
@@ -8265,7 +8265,7 @@ class UnifiedPlanStrategy extends ASdpStrategy {
8265
8265
  return content;
8266
8266
  }
8267
8267
  // 增加 h.264 描述
8268
- content = content
8268
+ return content
8269
8269
  .replace('\r\n', ' 126 127 97 98\r\n')
8270
8270
  .replace('a=fmtp', 'a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\n' +
8271
8271
  'a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1\r\n' +
@@ -8284,11 +8284,11 @@ class UnifiedPlanStrategy extends ASdpStrategy {
8284
8284
  'a=rtcp-fb:97 goog-remb\r\n' +
8285
8285
  'a=rtcp-fb:97 transport-cc\r\n' +
8286
8286
  'a=rtcp-mux')
8287
- .replace('a=setup:actpass:', 'a=rtpmap:126 H264/90000\r\n' +
8287
+ .replace('a=setup:actpass', 'a=rtpmap:126 H264/90000\r\n' +
8288
8288
  'a=rtpmap:127 rtx/90000\r\n' +
8289
8289
  'a=rtpmap:97 H264/90000\r\n' +
8290
8290
  'a=rtpmap:98 rtx/90000\r\n' +
8291
- 'a=setup:actpass:');
8291
+ 'a=setup:actpass');
8292
8292
  }).join('\r\n');
8293
8293
  return fixed;
8294
8294
  }
@@ -8883,7 +8883,7 @@ class PolarisReporter {
8883
8883
  * 加入房间
8884
8884
  */
8885
8885
  sendR1() {
8886
- const rtcVersion = "5.4.1-alpha.1";
8886
+ const rtcVersion = "5.4.1-alpha.2";
8887
8887
  const imVersion = this._context.getCoreVersion();
8888
8888
  const platform = 'web';
8889
8889
  const pcName = navigator.platform;
@@ -14371,7 +14371,7 @@ const installer = {
14371
14371
  logger.error('Please use the https protocol or use `http://localhost` to open the page!');
14372
14372
  return false;
14373
14373
  }
14374
- VersionManage.add('plugin-rtc', "5.4.1-alpha.1");
14374
+ VersionManage.add('plugin-rtc', "5.4.1-alpha.2");
14375
14375
  if (!VersionManage.validEngine(">=5.3.3")) {
14376
14376
  logger.error(`The current engine version '${VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${">=5.3.3"}'.`);
14377
14377
  return false;
@@ -14381,7 +14381,7 @@ const installer = {
14381
14381
  setup(context, runtime, options = {}) {
14382
14382
  logger.setLogLevel(options.logLevel);
14383
14383
  logger.setLogStdout(options.logStdout);
14384
- logger.warn(`RCRTC Version: ${"5.4.1-alpha.1"}, Commit: ${"ef361465533e3461fd5625b413b1b5053e2fa20e"}`);
14384
+ logger.warn(`RCRTC Version: ${"5.4.1-alpha.2"}, Commit: ${"93e65be83e51e6e0060a9f98d9dd505da99d6cdc"}`);
14385
14385
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
14386
14386
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
14387
14387
  logger.warn(`browserInfo.version -> ${browserInfo.version}`);
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.4.1-alpha.1
3
- * CommitId - ef361465533e3461fd5625b413b1b5053e2fa20e
4
- * Mon Jun 06 2022 15:31:43 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.4.1-alpha.2
3
+ * CommitId - 93e65be83e51e6e0060a9f98d9dd505da99d6cdc
4
+ * Mon Jun 06 2022 16:04:57 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  'use strict';
@@ -6783,7 +6783,7 @@ const getCommonHeader = () => ({
6783
6783
  'Content-Type': 'application/json;charset=UTF-8',
6784
6784
  'Cache-Control': 'no-cache',
6785
6785
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
6786
- ClientVersion: "5.4.1-alpha.1",
6786
+ ClientVersion: "5.4.1-alpha.2",
6787
6787
  'Client-Session-Id': getUUID(),
6788
6788
  'Request-Id': Date.now().toString()
6789
6789
  });
@@ -8268,7 +8268,7 @@ class UnifiedPlanStrategy extends ASdpStrategy {
8268
8268
  return content;
8269
8269
  }
8270
8270
  // 增加 h.264 描述
8271
- content = content
8271
+ return content
8272
8272
  .replace('\r\n', ' 126 127 97 98\r\n')
8273
8273
  .replace('a=fmtp', 'a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\n' +
8274
8274
  'a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1\r\n' +
@@ -8287,11 +8287,11 @@ class UnifiedPlanStrategy extends ASdpStrategy {
8287
8287
  'a=rtcp-fb:97 goog-remb\r\n' +
8288
8288
  'a=rtcp-fb:97 transport-cc\r\n' +
8289
8289
  'a=rtcp-mux')
8290
- .replace('a=setup:actpass:', 'a=rtpmap:126 H264/90000\r\n' +
8290
+ .replace('a=setup:actpass', 'a=rtpmap:126 H264/90000\r\n' +
8291
8291
  'a=rtpmap:127 rtx/90000\r\n' +
8292
8292
  'a=rtpmap:97 H264/90000\r\n' +
8293
8293
  'a=rtpmap:98 rtx/90000\r\n' +
8294
- 'a=setup:actpass:');
8294
+ 'a=setup:actpass');
8295
8295
  }).join('\r\n');
8296
8296
  return fixed;
8297
8297
  }
@@ -8886,7 +8886,7 @@ class PolarisReporter {
8886
8886
  * 加入房间
8887
8887
  */
8888
8888
  sendR1() {
8889
- const rtcVersion = "5.4.1-alpha.1";
8889
+ const rtcVersion = "5.4.1-alpha.2";
8890
8890
  const imVersion = this._context.getCoreVersion();
8891
8891
  const platform = 'web';
8892
8892
  const pcName = navigator.platform;
@@ -14374,7 +14374,7 @@ const installer = {
14374
14374
  logger.error('Please use the https protocol or use `http://localhost` to open the page!');
14375
14375
  return false;
14376
14376
  }
14377
- engine.VersionManage.add('plugin-rtc', "5.4.1-alpha.1");
14377
+ engine.VersionManage.add('plugin-rtc', "5.4.1-alpha.2");
14378
14378
  if (!engine.VersionManage.validEngine(">=5.3.3")) {
14379
14379
  logger.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${">=5.3.3"}'.`);
14380
14380
  return false;
@@ -14384,7 +14384,7 @@ const installer = {
14384
14384
  setup(context, runtime, options = {}) {
14385
14385
  logger.setLogLevel(options.logLevel);
14386
14386
  logger.setLogStdout(options.logStdout);
14387
- logger.warn(`RCRTC Version: ${"5.4.1-alpha.1"}, Commit: ${"ef361465533e3461fd5625b413b1b5053e2fa20e"}`);
14387
+ logger.warn(`RCRTC Version: ${"5.4.1-alpha.2"}, Commit: ${"93e65be83e51e6e0060a9f98d9dd505da99d6cdc"}`);
14388
14388
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
14389
14389
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
14390
14390
  logger.warn(`browserInfo.version -> ${browserInfo.version}`);
package/dist/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.4.1-alpha.1
3
- * CommitId - ef361465533e3461fd5625b413b1b5053e2fa20e
4
- * Mon Jun 06 2022 15:31:43 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.4.1-alpha.2
3
+ * CommitId - 93e65be83e51e6e0060a9f98d9dd505da99d6cdc
4
+ * Mon Jun 06 2022 16:04:57 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  (function (global, factory) {
@@ -6783,7 +6783,7 @@
6783
6783
  'Content-Type': 'application/json;charset=UTF-8',
6784
6784
  'Cache-Control': 'no-cache',
6785
6785
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
6786
- ClientVersion: "5.4.1-alpha.1",
6786
+ ClientVersion: "5.4.1-alpha.2",
6787
6787
  'Client-Session-Id': getUUID(),
6788
6788
  'Request-Id': Date.now().toString()
6789
6789
  });
@@ -8268,7 +8268,7 @@
8268
8268
  return content;
8269
8269
  }
8270
8270
  // 增加 h.264 描述
8271
- content = content
8271
+ return content
8272
8272
  .replace('\r\n', ' 126 127 97 98\r\n')
8273
8273
  .replace('a=fmtp', 'a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\n' +
8274
8274
  'a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1\r\n' +
@@ -8287,11 +8287,11 @@
8287
8287
  'a=rtcp-fb:97 goog-remb\r\n' +
8288
8288
  'a=rtcp-fb:97 transport-cc\r\n' +
8289
8289
  'a=rtcp-mux')
8290
- .replace('a=setup:actpass:', 'a=rtpmap:126 H264/90000\r\n' +
8290
+ .replace('a=setup:actpass', 'a=rtpmap:126 H264/90000\r\n' +
8291
8291
  'a=rtpmap:127 rtx/90000\r\n' +
8292
8292
  'a=rtpmap:97 H264/90000\r\n' +
8293
8293
  'a=rtpmap:98 rtx/90000\r\n' +
8294
- 'a=setup:actpass:');
8294
+ 'a=setup:actpass');
8295
8295
  }).join('\r\n');
8296
8296
  return fixed;
8297
8297
  }
@@ -8886,7 +8886,7 @@
8886
8886
  * 加入房间
8887
8887
  */
8888
8888
  sendR1() {
8889
- const rtcVersion = "5.4.1-alpha.1";
8889
+ const rtcVersion = "5.4.1-alpha.2";
8890
8890
  const imVersion = this._context.getCoreVersion();
8891
8891
  const platform = 'web';
8892
8892
  const pcName = navigator.platform;
@@ -14374,7 +14374,7 @@
14374
14374
  logger.error('Please use the https protocol or use `http://localhost` to open the page!');
14375
14375
  return false;
14376
14376
  }
14377
- engine.VersionManage.add('plugin-rtc', "5.4.1-alpha.1");
14377
+ engine.VersionManage.add('plugin-rtc', "5.4.1-alpha.2");
14378
14378
  if (!engine.VersionManage.validEngine(">=5.3.3")) {
14379
14379
  logger.error(`The current engine version '${engine.VersionManage.getInfo().engine}' error, plugin-rtc required engine version at least '${">=5.3.3"}'.`);
14380
14380
  return false;
@@ -14384,7 +14384,7 @@
14384
14384
  setup(context, runtime, options = {}) {
14385
14385
  logger.setLogLevel(options.logLevel);
14386
14386
  logger.setLogStdout(options.logStdout);
14387
- logger.warn(`RCRTC Version: ${"5.4.1-alpha.1"}, Commit: ${"ef361465533e3461fd5625b413b1b5053e2fa20e"}`);
14387
+ logger.warn(`RCRTC Version: ${"5.4.1-alpha.2"}, Commit: ${"93e65be83e51e6e0060a9f98d9dd505da99d6cdc"}`);
14388
14388
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
14389
14389
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
14390
14390
  logger.warn(`browserInfo.version -> ${browserInfo.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rongcloud/plugin-rtc",
3
- "version": "5.4.1-alpha.1",
3
+ "version": "5.4.1-alpha.2",
4
4
  "description": "@rongcloud/plugin-rtc",
5
5
  "main": "./dist/index.js",
6
6
  "__attrs__": {
@@ -33,5 +33,5 @@
33
33
  "peerDependencies": {
34
34
  "@rongcloud/engine": ">=5.3.3"
35
35
  },
36
- "__commit__": "ef361465533e3461fd5625b413b1b5053e2fa20e"
36
+ "__commit__": "93e65be83e51e6e0060a9f98d9dd505da99d6cdc"
37
37
  }