aliyun-rtc-sdk 7.2.5 → 7.2.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.
@@ -176,7 +176,7 @@ function ot(a, s, e) {
176
176
  return (ze[r[n + 0]] + ze[r[n + 1]] + ze[r[n + 2]] + ze[r[n + 3]] + "-" + ze[r[n + 4]] + ze[r[n + 5]] + "-" + ze[r[n + 6]] + ze[r[n + 7]] + "-" + ze[r[n + 8]] + ze[r[n + 9]] + "-" + ze[r[n + 10]] + ze[r[n + 11]] + ze[r[n + 12]] + ze[r[n + 13]] + ze[r[n + 14]] + ze[r[n + 15]]).toLowerCase();
177
177
  }(t);
178
178
  }
179
- const Ri = "7.2.5";
179
+ const Ri = "7.2.6";
180
180
  class ke {
181
181
  static getVersionNumber() {
182
182
  let s = Ri.split("."), e = "";
@@ -2417,7 +2417,7 @@ class ji {
2417
2417
  static get adaptInfo() {
2418
2418
  var e, t, i, r;
2419
2419
  let s = new Zo.UAParser().getResult();
2420
- return { os_name: ((e = s.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = s.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = s.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((r = s.device.vendor) == null ? void 0 : r.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: s.browser.version || "", sdk_version: "7.2.5", version: "v1" };
2420
+ return { os_name: ((e = s.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = s.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = s.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((r = s.device.vendor) == null ? void 0 : r.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: s.browser.version || "", sdk_version: "7.2.6", version: "v1" };
2421
2421
  }
2422
2422
  refreshAuthInfo(s) {
2423
2423
  this.authInfo = s;
@@ -7675,7 +7675,7 @@ const ht = (xt = class extends je {
7675
7675
  })), this.screenStreamInfo.on("videotrackended", () => _(this, null, function* () {
7676
7676
  yield this.stopLocalStream({ screen: !0 }), this.emit("trackended", Yt.ScreenTrackEnded);
7677
7677
  })), this.pluginManager.on("added", (i) => _(this, null, function* () {
7678
- if (C.info(`[${xt.logName}]`, "plugin added", i.name), !i.isSupported("7.2.5"))
7678
+ if (C.info(`[${xt.logName}]`, "plugin added", i.name), !i.isSupported("7.2.6"))
7679
7679
  return console.warn(`${i.name} is not supported!!!`), void i.emit("unsupported");
7680
7680
  try {
7681
7681
  yield i.init();
@@ -9334,7 +9334,7 @@ class il {
9334
9334
  p(this, "stsExpiration", Date.now());
9335
9335
  p(this, "updateTaskTimer");
9336
9336
  p(this, "globalEnv", "DEFAULT");
9337
- this.ntpClock = Vn(), s && (this.globalEnv = s), this.startSTSUpdateTask();
9337
+ this.ntpClock = Vn(), s && (this.globalEnv = s);
9338
9338
  }
9339
9339
  createTracker() {
9340
9340
  if (!this.tracker && this.stsData && this.param) {
@@ -9376,7 +9376,7 @@ class il {
9376
9376
  return fetch(r).then((n) => n.json()).then((n) => JSON.parse(window.atob(n.SlsAuthResult)));
9377
9377
  }
9378
9378
  start(s) {
9379
- this.initParam(s), this.createTracker();
9379
+ this.initParam(s), this.createTracker(), this.startSTSUpdateTask();
9380
9380
  }
9381
9381
  stop() {
9382
9382
  this.tracker = void 0, this.param = void 0, this.msgCacheArr = [], this.index = 0, this.stsData = void 0, this.updateTaskTimer && (clearTimeout(this.updateTaskTimer), this.updateTaskTimer = void 0);
@@ -9864,7 +9864,7 @@ const nt = class nt extends je {
9864
9864
  let r = this.packageCreator.createPublishPackage();
9865
9865
  r.data.users = [], r.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
9866
9866
  const { tracks: n, resume: o } = i;
9867
- let c = "7.2.5";
9867
+ let c = "7.2.6";
9868
9868
  c && (c = c.split("-")[0]), n.forEach((d) => {
9869
9869
  const { codec: h, ssrc: f } = d;
9870
9870
  d.userdata = JSON.stringify({ sdk_version: c, codec: h }), d.ssrc = `${f}`, o && (d.attr = { reason: "reconnect" });