aliyun-rtc-sdk 6.13.4-beta.1 → 6.13.5

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.
@@ -2256,7 +2256,7 @@ function st(r, n, e) {
2256
2256
  return po(t);
2257
2257
  }
2258
2258
  var xi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(xi || {});
2259
- const yi = "6.13.4-beta.1", Ks = "web";
2259
+ const yi = "6.13.5", Ks = "web";
2260
2260
  class Ue {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
@@ -10639,29 +10639,30 @@ const ge = (ut = class extends pn {
10639
10639
  const S = (u = this.streamTracks) == null ? void 0 : u.find(
10640
10640
  ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.Screen
10641
10641
  ), v = yield this.compareAndPublish(S, t.screen, k.Screen);
10642
- if (v && (i = v), !i && e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10643
- const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10644
- (x || b) && (yield this.rtsManager.waitPublishSender(
10645
- this.url,
10646
- !x,
10647
- x ? x.msid : b == null ? void 0 : b.msid
10648
- )), i = {
10649
- type: mt.Add,
10650
- userid: this.userId,
10651
- sessionid: "",
10652
- displayname: this.name,
10653
- pubid: this.publishId,
10654
- resume: !0,
10655
- subscribe: {
10656
- signal: "",
10657
- pullstreamurl: this.url
10658
- },
10659
- callid: this.callId,
10660
- tracks: this.rtsManager.publishingTracks,
10661
- traceid: this.traceId
10662
- };
10663
- } else
10664
- return;
10642
+ if (v && (i = v), !i)
10643
+ if (e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10644
+ const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10645
+ (x || b) && (yield this.rtsManager.waitPublishSender(
10646
+ this.url,
10647
+ !x,
10648
+ x ? x.msid : b == null ? void 0 : b.msid
10649
+ )), i = {
10650
+ type: mt.Add,
10651
+ userid: this.userId,
10652
+ sessionid: "",
10653
+ displayname: this.name,
10654
+ pubid: this.publishId,
10655
+ resume: !0,
10656
+ subscribe: {
10657
+ signal: "",
10658
+ pullstreamurl: this.url
10659
+ },
10660
+ callid: this.callId,
10661
+ tracks: this.rtsManager.publishingTracks,
10662
+ traceid: this.traceId
10663
+ };
10664
+ } else
10665
+ return;
10665
10666
  yield this.syncPublishToRoomServer(i, t, s);
10666
10667
  } catch (h) {
10667
10668
  const { code: p } = h != null ? h : {}, d = this.url;
@@ -13389,7 +13390,7 @@ const Ge = (Bt = class extends we {
13389
13390
  m(this, "_publishLocalScreenStreamEnabled", !0);
13390
13391
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13391
13392
  const i = (s) => w(this, null, function* () {
13392
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.4-beta.1")) {
13393
+ if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.5")) {
13393
13394
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13394
13395
  return;
13395
13396
  }
@@ -16102,7 +16103,7 @@ const z = (K = class extends we {
16102
16103
  });
16103
16104
  }
16104
16105
  occurError(e, t) {
16105
- this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16106
+ H.event(`[${K.logName}]`, "Occur Error", e, t), this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16106
16107
  }
16107
16108
  /**
16108
16109
  * 监听 UM 事件