@rongcloud/plugin-rtc 5.1.10-enterprise.3 → 5.1.10-enterprise.4

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.1.10-enterprise.3
3
- * CommitId - 9409ef61818cd46a57e67dcba7e66eaba0dc05a6
4
- * Mon Jul 25 2022 18:28:32 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.1.10-enterprise.4
3
+ * CommitId - 61a4b1ce35f6d9aca773da67851ed986d61c9977
4
+ * Mon Jul 25 2022 21:09:21 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IJoinRTCRoomData, IReceivedMessage, KVString, ErrorCode, IPluginGenerator } from '@rongcloud/engine';
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.1.10-enterprise.3
3
- * CommitId - 9409ef61818cd46a57e67dcba7e66eaba0dc05a6
4
- * Mon Jul 25 2022 18:28:32 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.1.10-enterprise.4
3
+ * CommitId - 61a4b1ce35f6d9aca773da67851ed986d61c9977
4
+ * Mon Jul 25 2022 21:09:21 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { Logger, EventEmitter, isNumber, ErrorCode, ConnectionStatus, assert, ConversationType, RTCApiType, validate, isArray, RTCMode, isHttpUrl, isBoolean, HttpMethod, isString, notEmptyString, RTCIdentityChangeType } from '@rongcloud/engine';
@@ -5757,7 +5757,7 @@ class RCTrack extends EventEmitter {
5757
5757
  * @param volume 有效值为 0-100
5758
5758
  */
5759
5759
  play(element, options = { autoplay: true }) {
5760
- var _a;
5760
+ var _a, _b;
5761
5761
  return __awaiter(this, void 0, void 0, function* () {
5762
5762
  if (!this._msTrack) {
5763
5763
  logger.warn(`the track is not ready to play -> id: ${this._id}`);
@@ -5820,7 +5820,7 @@ class RCTrack extends EventEmitter {
5820
5820
  logger.info(`HTMLMediaElement onabort -> id: ${(_a = evt.target) === null || _a === void 0 ? void 0 : _a.id}, trackId: ${this._id}`);
5821
5821
  };
5822
5822
  // 用户在 Video 标签上 设置的优化级最高,其次是选项中设置的 autoplay
5823
- const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.autoplay) || options.autoplay;
5823
+ const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.getAttribute('autoplay')) === null ? options.autoplay : (_b = this._element) === null || _b === void 0 ? void 0 : _b.autoplay;
5824
5824
  this._element.oncanplay = evt => {
5825
5825
  var _a, _b;
5826
5826
  // 可以播放
@@ -8241,7 +8241,7 @@ class PolarisReporter {
8241
8241
  * 加入房间
8242
8242
  */
8243
8243
  sendR1() {
8244
- const rtcVersion = "5.1.10-enterprise.3";
8244
+ const rtcVersion = "5.1.10-enterprise.4";
8245
8245
  const imVersion = this._context.getCoreVersion();
8246
8246
  const platform = 'web';
8247
8247
  const pcName = navigator.platform;
@@ -10461,7 +10461,7 @@ const getCommonHeader = () => ({
10461
10461
  'Content-Type': 'application/json;charset=UTF-8',
10462
10462
  'Cache-Control': 'no-cache',
10463
10463
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
10464
- ClientVersion: "5.1.10-enterprise.3",
10464
+ ClientVersion: "5.1.10-enterprise.4",
10465
10465
  'Client-Session-Id': getUUID(),
10466
10466
  'Request-Id': Date.now().toString()
10467
10467
  });
@@ -12379,7 +12379,7 @@ const installer = {
12379
12379
  setup(context, runtime, options = {}) {
12380
12380
  logger.setLogLevel(options.logLevel);
12381
12381
  logger.setLogStdout(options.logStdout);
12382
- logger.warn(`RCRTC Version: ${"5.1.10-enterprise.3"}, Commit: ${"9409ef61818cd46a57e67dcba7e66eaba0dc05a6"}`);
12382
+ logger.warn(`RCRTC Version: ${"5.1.10-enterprise.4"}, Commit: ${"61a4b1ce35f6d9aca773da67851ed986d61c9977"}`);
12383
12383
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
12384
12384
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
12385
12385
  logger.warn(`browserInfo.version -> ${browserInfo.version}`);
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.1.10-enterprise.3
3
- * CommitId - 9409ef61818cd46a57e67dcba7e66eaba0dc05a6
4
- * Mon Jul 25 2022 18:28:32 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.1.10-enterprise.4
3
+ * CommitId - 61a4b1ce35f6d9aca773da67851ed986d61c9977
4
+ * Mon Jul 25 2022 21:09:21 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  'use strict';
@@ -5761,7 +5761,7 @@ class RCTrack extends engine.EventEmitter {
5761
5761
  * @param volume 有效值为 0-100
5762
5762
  */
5763
5763
  play(element, options = { autoplay: true }) {
5764
- var _a;
5764
+ var _a, _b;
5765
5765
  return __awaiter(this, void 0, void 0, function* () {
5766
5766
  if (!this._msTrack) {
5767
5767
  logger.warn(`the track is not ready to play -> id: ${this._id}`);
@@ -5824,7 +5824,7 @@ class RCTrack extends engine.EventEmitter {
5824
5824
  logger.info(`HTMLMediaElement onabort -> id: ${(_a = evt.target) === null || _a === void 0 ? void 0 : _a.id}, trackId: ${this._id}`);
5825
5825
  };
5826
5826
  // 用户在 Video 标签上 设置的优化级最高,其次是选项中设置的 autoplay
5827
- const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.autoplay) || options.autoplay;
5827
+ const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.getAttribute('autoplay')) === null ? options.autoplay : (_b = this._element) === null || _b === void 0 ? void 0 : _b.autoplay;
5828
5828
  this._element.oncanplay = evt => {
5829
5829
  var _a, _b;
5830
5830
  // 可以播放
@@ -8245,7 +8245,7 @@ class PolarisReporter {
8245
8245
  * 加入房间
8246
8246
  */
8247
8247
  sendR1() {
8248
- const rtcVersion = "5.1.10-enterprise.3";
8248
+ const rtcVersion = "5.1.10-enterprise.4";
8249
8249
  const imVersion = this._context.getCoreVersion();
8250
8250
  const platform = 'web';
8251
8251
  const pcName = navigator.platform;
@@ -10465,7 +10465,7 @@ const getCommonHeader = () => ({
10465
10465
  'Content-Type': 'application/json;charset=UTF-8',
10466
10466
  'Cache-Control': 'no-cache',
10467
10467
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
10468
- ClientVersion: "5.1.10-enterprise.3",
10468
+ ClientVersion: "5.1.10-enterprise.4",
10469
10469
  'Client-Session-Id': getUUID(),
10470
10470
  'Request-Id': Date.now().toString()
10471
10471
  });
@@ -12383,7 +12383,7 @@ const installer = {
12383
12383
  setup(context, runtime, options = {}) {
12384
12384
  logger.setLogLevel(options.logLevel);
12385
12385
  logger.setLogStdout(options.logStdout);
12386
- logger.warn(`RCRTC Version: ${"5.1.10-enterprise.3"}, Commit: ${"9409ef61818cd46a57e67dcba7e66eaba0dc05a6"}`);
12386
+ logger.warn(`RCRTC Version: ${"5.1.10-enterprise.4"}, Commit: ${"61a4b1ce35f6d9aca773da67851ed986d61c9977"}`);
12387
12387
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
12388
12388
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
12389
12389
  logger.warn(`browserInfo.version -> ${browserInfo.version}`);
package/dist/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.1.10-enterprise.3
3
- * CommitId - 9409ef61818cd46a57e67dcba7e66eaba0dc05a6
4
- * Mon Jul 25 2022 18:28:32 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.1.10-enterprise.4
3
+ * CommitId - 61a4b1ce35f6d9aca773da67851ed986d61c9977
4
+ * Mon Jul 25 2022 21:09:21 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  (function (global, factory) {
@@ -5761,7 +5761,7 @@
5761
5761
  * @param volume 有效值为 0-100
5762
5762
  */
5763
5763
  play(element, options = { autoplay: true }) {
5764
- var _a;
5764
+ var _a, _b;
5765
5765
  return __awaiter(this, void 0, void 0, function* () {
5766
5766
  if (!this._msTrack) {
5767
5767
  logger.warn(`the track is not ready to play -> id: ${this._id}`);
@@ -5824,7 +5824,7 @@
5824
5824
  logger.info(`HTMLMediaElement onabort -> id: ${(_a = evt.target) === null || _a === void 0 ? void 0 : _a.id}, trackId: ${this._id}`);
5825
5825
  };
5826
5826
  // 用户在 Video 标签上 设置的优化级最高,其次是选项中设置的 autoplay
5827
- const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.autoplay) || options.autoplay;
5827
+ const autoplay = ((_a = this._element) === null || _a === void 0 ? void 0 : _a.getAttribute('autoplay')) === null ? options.autoplay : (_b = this._element) === null || _b === void 0 ? void 0 : _b.autoplay;
5828
5828
  this._element.oncanplay = evt => {
5829
5829
  var _a, _b;
5830
5830
  // 可以播放
@@ -8245,7 +8245,7 @@
8245
8245
  * 加入房间
8246
8246
  */
8247
8247
  sendR1() {
8248
- const rtcVersion = "5.1.10-enterprise.3";
8248
+ const rtcVersion = "5.1.10-enterprise.4";
8249
8249
  const imVersion = this._context.getCoreVersion();
8250
8250
  const platform = 'web';
8251
8251
  const pcName = navigator.platform;
@@ -10465,7 +10465,7 @@
10465
10465
  'Content-Type': 'application/json;charset=UTF-8',
10466
10466
  'Cache-Control': 'no-cache',
10467
10467
  ClientType: `web|${browserInfo.browser}|${browserInfo.version}`,
10468
- ClientVersion: "5.1.10-enterprise.3",
10468
+ ClientVersion: "5.1.10-enterprise.4",
10469
10469
  'Client-Session-Id': getUUID(),
10470
10470
  'Request-Id': Date.now().toString()
10471
10471
  });
@@ -12383,7 +12383,7 @@
12383
12383
  setup(context, runtime, options = {}) {
12384
12384
  logger.setLogLevel(options.logLevel);
12385
12385
  logger.setLogStdout(options.logStdout);
12386
- logger.warn(`RCRTC Version: ${"5.1.10-enterprise.3"}, Commit: ${"9409ef61818cd46a57e67dcba7e66eaba0dc05a6"}`);
12386
+ logger.warn(`RCRTC Version: ${"5.1.10-enterprise.4"}, Commit: ${"61a4b1ce35f6d9aca773da67851ed986d61c9977"}`);
12387
12387
  logger.warn(`browserInfo.browser -> ${browserInfo.browser}`);
12388
12388
  logger.warn(`browserInfo.supportsUnifiedPlan -> ${browserInfo.supportsUnifiedPlan}`);
12389
12389
  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.1.10-enterprise.3",
3
+ "version": "5.1.10-enterprise.4",
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": "4.5.5-enterprise.1"
35
35
  },
36
- "__commit__": "9409ef61818cd46a57e67dcba7e66eaba0dc05a6"
36
+ "__commit__": "61a4b1ce35f6d9aca773da67851ed986d61c9977"
37
37
  }