aliyun-rtc-sdk 6.13.5 → 6.13.6-beta.0

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.
@@ -36,7 +36,7 @@ var w = (r, n, e) => new Promise((t, i) => {
36
36
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, a);
37
37
  c((e = e.apply(r, n)).next());
38
38
  });
39
- import { AliRTS as ce, EConnectStatus as ps, EDatachannelStatus as gs } from "aliyun-rts-sdk";
39
+ import { AliRTS as oe, EConnectStatus as ps, EDatachannelStatus as gs } from "aliyun-rts-sdk";
40
40
  import we from "eventemitter3";
41
41
  var jn = Object.defineProperty, zn = (r, n, e) => n in r ? jn(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, Vt = (r, n, e) => (zn(r, typeof n != "symbol" ? n + "" : n, e), e), ki = { exports: {} }, Bi = { exports: {} }, Mi, ms;
42
42
  function Ne() {
@@ -2055,7 +2055,7 @@ function co(r, n, e) {
2055
2055
  } catch (p) {
2056
2056
  throw e(p), p;
2057
2057
  }
2058
- return it(h, n + 1, e);
2058
+ return rt(h, n + 1, e);
2059
2059
  }
2060
2060
  let o = () => {
2061
2061
  };
@@ -2068,13 +2068,13 @@ function co(r, n, e) {
2068
2068
  } catch (d) {
2069
2069
  throw e(d), d;
2070
2070
  }
2071
- return it(p, n + 1, e);
2071
+ return rt(p, n + 1, e);
2072
2072
  }
2073
2073
  };
2074
- return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : it(a[c], n + 1, e);
2074
+ return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : rt(a[c], n + 1, e);
2075
2075
  },
2076
2076
  MediaboxWrapperObjectSetter(a, c, o) {
2077
- return a[c] = it(o, n + 1, e), !0;
2077
+ return a[c] = rt(o, n + 1, e), !0;
2078
2078
  }
2079
2079
  };
2080
2080
  return new Proxy(r, {
@@ -2091,11 +2091,11 @@ function uo(r, n, e) {
2091
2091
  } catch (o) {
2092
2092
  throw e(o), o;
2093
2093
  }
2094
- return it(c, n + 1, e);
2094
+ return rt(c, n + 1, e);
2095
2095
  },
2096
2096
  MediaboxWrapperFunctionGet(i, s) {
2097
2097
  const a = Object.getOwnPropertyDescriptor(i, s);
2098
- return a && !a.writable && !a.configurable ? i[s] : it(i[s], n + 1, e);
2098
+ return a && !a.writable && !a.configurable ? i[s] : rt(i[s], n + 1, e);
2099
2099
  },
2100
2100
  MediaboxWrapperClassConstructor(i, s) {
2101
2101
  let a;
@@ -2104,7 +2104,7 @@ function uo(r, n, e) {
2104
2104
  } catch (c) {
2105
2105
  throw e(c), c;
2106
2106
  }
2107
- return it(a, n + 1, e);
2107
+ return rt(a, n + 1, e);
2108
2108
  }
2109
2109
  };
2110
2110
  return new Proxy(r, {
@@ -2136,8 +2136,8 @@ function Hr(r) {
2136
2136
  `);
2137
2137
  return e < 0 ? n === r.length - Pt.length : n === e - Pt.length;
2138
2138
  }
2139
- function it(r, n, e) {
2140
- return typeof r == "function" ? uo(r, n + 1, e) : r instanceof Promise ? r.then((t) => it(t, n + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? r.map((t) => it(t, n + 1, e)) : Qa(r) && en(r) ? co(r, n + 1, e) : r;
2139
+ function rt(r, n, e) {
2140
+ return typeof r == "function" ? uo(r, n + 1, e) : r instanceof Promise ? r.then((t) => rt(t, n + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? r.map((t) => rt(t, n + 1, e)) : Qa(r) && en(r) ? co(r, n + 1, e) : r;
2141
2141
  }
2142
2142
  function fo(r) {
2143
2143
  return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
@@ -2199,7 +2199,7 @@ class jr {
2199
2199
  return "0.19.0";
2200
2200
  }
2201
2201
  wrap(n) {
2202
- return this.options.disabled || typeof Proxy > "u" ? n : it(n, 0, (e) => {
2202
+ return this.options.disabled || typeof Proxy > "u" ? n : rt(n, 0, (e) => {
2203
2203
  e instanceof Error && typeof e.stack == "string" && zs(e.stack) && (e.stack = lo(e.stack), this.armsLogger.error(e), e.stack = ho(e.stack));
2204
2204
  });
2205
2205
  }
@@ -2226,7 +2226,7 @@ class jr {
2226
2226
  this.isDestroyed = !0;
2227
2227
  }
2228
2228
  }
2229
- var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), k = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), rt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(rt || {}), Ie = [];
2229
+ var ce = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(ce || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), k = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), st = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(st || {}), Ie = [];
2230
2230
  for (var Ki = 0; Ki < 256; ++Ki)
2231
2231
  Ie.push((Ki + 256).toString(16).slice(1));
2232
2232
  function po(r, n = 0) {
@@ -2242,7 +2242,7 @@ var xo = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.
2242
2242
  const $s = {
2243
2243
  randomUUID: xo
2244
2244
  };
2245
- function st(r, n, e) {
2245
+ function at(r, n, e) {
2246
2246
  if ($s.randomUUID && !n && !r)
2247
2247
  return $s.randomUUID();
2248
2248
  r = r || {};
@@ -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.5", Ks = "web";
2259
+ const yi = "6.13.6-beta.0", Ks = "web";
2260
2260
  class Ue {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
@@ -2298,7 +2298,7 @@ class Ue {
2298
2298
  * @returns
2299
2299
  */
2300
2300
  static createCallid(n = "") {
2301
- const e = st();
2301
+ const e = at();
2302
2302
  return n && e && e.length > n.length ? `${n}${e.substring(n.length)}` : e;
2303
2303
  }
2304
2304
  /**
@@ -3854,18 +3854,18 @@ function an() {
3854
3854
  ]);
3855
3855
  },
3856
3856
  _doProcessBlock: function(g, l) {
3857
- for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Fe = B, je = $, Xe = q, Ye = G, Se = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3857
+ for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Fe = B, je = $, Xe = q, Ye = G, Se = ae, Pe = Q, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
3858
  var Ce, Ze, Ct = d[ke];
3859
3859
  if (ke < 16)
3860
3860
  Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3861
3861
  else {
3862
- var lt = d[ke - 15], Qe = lt.high, nt = lt.low, Di = (Qe >>> 1 | nt << 31) ^ (Qe >>> 8 | nt << 24) ^ Qe >>> 7, oi = (nt >>> 1 | Qe << 31) ^ (nt >>> 8 | Qe << 24) ^ (nt >>> 7 | Qe << 25), ci = d[ke - 2], ze = ci.high, ft = ci.low, ui = (ze >>> 19 | ft << 13) ^ (ze << 3 | ft >>> 29) ^ ze >>> 6, Gt = (ft >>> 19 | ze << 13) ^ (ft << 3 | ze >>> 29) ^ (ft >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3862
+ var lt = d[ke - 15], Qe = lt.high, ot = lt.low, Di = (Qe >>> 1 | ot << 31) ^ (Qe >>> 8 | ot << 24) ^ Qe >>> 7, oi = (ot >>> 1 | Qe << 31) ^ (ot >>> 8 | Qe << 24) ^ (ot >>> 7 | Qe << 25), ci = d[ke - 2], ze = ci.high, ft = ci.low, ui = (ze >>> 19 | ft << 13) ^ (ze << 3 | ft >>> 29) ^ ze >>> 6, Gt = (ft >>> 19 | ze << 13) ^ (ft << 3 | ze >>> 29) ^ (ft >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3863
3863
  Ce = oi + Rn, Ze = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Ze = Ze + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Ze = Ze + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Ze, Ct.low = Ce;
3864
3864
  }
3865
- var Dn = Se & at ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, pt = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, pt = pt + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, pt = pt + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, pt = pt + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
- Jt = Nt, _t = At, Nt = at, At = Et, at = Se, Et = Pe, Pe = Ye + We | 0, Se = Xe + pt + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = pt + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
3865
+ var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, pt = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, pt = pt + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, pt = pt + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, pt = pt + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
+ Jt = Nt, _t = At, Nt = nt, At = Et, nt = Se, Et = Pe, Pe = Ye + We | 0, Se = Xe + pt + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = pt + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
3867
3867
  }
3868
- _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + at + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3868
+ _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + nt + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3869
3869
  },
3870
3870
  _doFinalize: function() {
3871
3871
  var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
@@ -7779,7 +7779,7 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7779
7779
  }, d0 = function(n) {
7780
7780
  return (String(n).match(o0) || [""]).pop().replace(c0, "").replace(/GMT\+0000/g, "UTC");
7781
7781
  };
7782
- const { BrowserUtil: l0 } = ce, Ot = {
7782
+ const { BrowserUtil: l0 } = oe, Ot = {
7783
7783
  EdgeHTML: "EdgeHTML",
7784
7784
  Blink: "Blink",
7785
7785
  Trident: "Trident",
@@ -7995,7 +7995,7 @@ const { BrowserUtil: l0 } = ce, Ot = {
7995
7995
  } catch (n) {
7996
7996
  }
7997
7997
  return r;
7998
- }, { BrowserUtil: ka, SystenUtil: Ba } = ce, S0 = nn(), v0 = "woMMssV6jmyol9fr", b0 = 200, fi = 10 * 60 * 1e3, pi = {
7998
+ }, { BrowserUtil: ka, SystenUtil: Ba } = oe, S0 = nn(), v0 = "woMMssV6jmyol9fr", b0 = 200, fi = 10 * 60 * 1e3, pi = {
7999
7999
  host: "cn-hangzhou.log.aliyuncs.com",
8000
8000
  // 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
8001
8001
  project: "alivc-aio",
@@ -8020,8 +8020,8 @@ class y0 {
8020
8020
  m(this, "slsPlugin");
8021
8021
  m(this, "stsData");
8022
8022
  m(this, "stsExpiration", Date.now());
8023
- m(this, "clientId", st());
8024
- m(this, "bSesid", st());
8023
+ m(this, "clientId", at());
8024
+ m(this, "bSesid", at());
8025
8025
  m(this, "logLevel", 3);
8026
8026
  m(this, "appId", "");
8027
8027
  m(this, "sessionId", "");
@@ -8097,7 +8097,7 @@ class y0 {
8097
8097
  this.updateTaskTimer && clearTimeout(this.updateTaskTimer);
8098
8098
  }
8099
8099
  reset() {
8100
- this.bSesid = st(), this.endReported = !0, this.logSequence = 0, this.appId = "", this.sessionId = "";
8100
+ this.bSesid = at(), this.endReported = !0, this.logSequence = 0, this.appId = "", this.sessionId = "";
8101
8101
  }
8102
8102
  startSTSUpdateTask() {
8103
8103
  return w(this, null, function* () {
@@ -8288,7 +8288,7 @@ class H {
8288
8288
  }
8289
8289
  m(H, "logger");
8290
8290
  const E0 = (r) => w(void 0, null, function* () {
8291
- const n = new ce.SupportUtil();
8291
+ const n = new oe.SupportUtil();
8292
8292
  let e = {
8293
8293
  support: !1,
8294
8294
  detail: {
@@ -8308,8 +8308,8 @@ const E0 = (r) => w(void 0, null, function* () {
8308
8308
  const t = yield n.checkH264Encode();
8309
8309
  e.detail.isH264EncodeSupported = t, e.support = e.support && t;
8310
8310
  }
8311
- return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !ce.SystenUtil.isAndroid && !ce.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = n.checkWebRtcSupport() && n.checkEncodedTransformSupport(), e;
8312
- }), A0 = () => new ce.SupportUtil().checkScreenCapture();
8311
+ return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !oe.SystenUtil.isAndroid && !oe.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = n.checkWebRtcSupport() && n.checkEncodedTransformSupport(), e;
8312
+ }), A0 = () => new oe.SupportUtil().checkScreenCapture();
8313
8313
  var Ee = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(Ee || {}), _0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(_0 || {}), Ai = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(Ai || {});
8314
8314
  class Kt extends we {
8315
8315
  constructor(e, t = Ee.AliRtcSdkStreamTypeCapture, i = 1) {
@@ -8401,7 +8401,7 @@ const C0 = {
8401
8401
  17: "16IN_360P",
8402
8402
  9999: "Mixed_Audio"
8403
8403
  };
8404
- var Xr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Xr || {}), vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(vi || {}), _i = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(_i || {}), hn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(hn || {}), Yr = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(Yr || {}), dn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(dn || {}), ot = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ot || {}), ln = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(ln || {}), Oe = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Oe || {});
8404
+ var Xr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Xr || {}), vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(vi || {}), _i = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(_i || {}), hn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(hn || {}), Yr = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(Yr || {}), dn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(dn || {}), ct = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ct || {}), ln = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(ln || {}), Oe = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Oe || {});
8405
8405
  const I0 = {
8406
8406
  0: "/libra/v1/sdk/start-task",
8407
8407
  1: "/libra/v1/sdk/update-task",
@@ -8488,7 +8488,7 @@ class Br {
8488
8488
  return a;
8489
8489
  }
8490
8490
  }
8491
- var dt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(dt || {}), St = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(St || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ct = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ct || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8491
+ var dt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(dt || {}), St = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(St || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ut = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ut || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8492
8492
  const La = 10, Na = 5e3, jt = class jt extends we {
8493
8493
  constructor(e) {
8494
8494
  super();
@@ -8721,7 +8721,7 @@ class R0 {
8721
8721
  return ++this.seqIndex, {
8722
8722
  version: 1,
8723
8723
  msgtype: n,
8724
- tid: st(),
8724
+ tid: at(),
8725
8725
  header: {
8726
8726
  appid: this.authInfo.appId,
8727
8727
  channelid: this.authInfo.channelId,
@@ -9237,7 +9237,7 @@ const Ci = (Be = class extends we {
9237
9237
  timestamp: this.authInfo.timestamp,
9238
9238
  token: this.authInfo.token,
9239
9239
  authtype: "app",
9240
- tid: st()
9240
+ tid: at()
9241
9241
  };
9242
9242
  e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + Ue.queryingParam(o));
9243
9243
  });
@@ -9263,7 +9263,7 @@ const Ci = (Be = class extends we {
9263
9263
  users: [e]
9264
9264
  }
9265
9265
  })), t({ tid: c })) : i(this.handleSignalError(a, `publish error, ${o}`));
9266
- }), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = st()), H.info(
9266
+ }), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = at()), H.info(
9267
9267
  `[${Be.logName}]`,
9268
9268
  "assign callid " + e.callid + " and send publish request"
9269
9269
  ), this.messageCenter.publish(e)) : i(this.handleSignalError(-1, "publish error, no message center"));
@@ -9870,7 +9870,7 @@ const Sn = (r, n, e = !1) => {
9870
9870
  return e && r.srcObject === n ? i = Promise.resolve() : (r.load(), r.srcObject = n, i = r.play(), r._playPromise = i), i;
9871
9871
  }));
9872
9872
  return new Promise((i) => {
9873
- if (ce.BrowserUtil.isMicroMessenger) {
9873
+ if (oe.BrowserUtil.isMicroMessenger) {
9874
9874
  const s = window.top !== window.self, a = window.WeixinJSBridge || window.top.WeixinJSBridge;
9875
9875
  a ? a.invoke("getNetworkType", {}, () => {
9876
9876
  i(t());
@@ -10104,8 +10104,8 @@ class Xt extends we {
10104
10104
  this.state = e, this.time = Date.now(), this.emit("change", t, e, Math.floor((this.time - i) / 1e3));
10105
10105
  }
10106
10106
  }
10107
- var ut;
10108
- const ge = (ut = class extends pn {
10107
+ var ht;
10108
+ const ge = (ht = class extends pn {
10109
10109
  constructor(e) {
10110
10110
  const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: a, audioVolumeIndicationInterval: c, parameter: o } = e;
10111
10111
  super("", "", t, c);
@@ -10124,7 +10124,7 @@ const ge = (ut = class extends pn {
10124
10124
  m(this, "dc");
10125
10125
  m(this, "streamTracks");
10126
10126
  // 本地流 track 信息
10127
- m(this, "publishId", st());
10127
+ m(this, "publishId", at());
10128
10128
  m(this, "signalingManager");
10129
10129
  m(this, "traceId", "");
10130
10130
  m(this, "monitorTimerId");
@@ -10293,7 +10293,7 @@ const ge = (ut = class extends pn {
10293
10293
  });
10294
10294
  }
10295
10295
  updatePubId() {
10296
- this.publishId = st();
10296
+ this.publishId = at();
10297
10297
  }
10298
10298
  clearPublishState() {
10299
10299
  this.streamTracks = void 0;
@@ -10306,7 +10306,7 @@ const ge = (ut = class extends pn {
10306
10306
  }
10307
10307
  clear() {
10308
10308
  return w(this, null, function* () {
10309
- Pi(ut.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10309
+ Pi(ht.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10310
10310
  });
10311
10311
  }
10312
10312
  resetElement(e) {
@@ -10322,9 +10322,9 @@ const ge = (ut = class extends pn {
10322
10322
  let a = [];
10323
10323
  if (!t && !e && !i && s) {
10324
10324
  try {
10325
- a = yield ce.getCameraList(), a.length && (yield this.startCameraCapture());
10325
+ a = yield oe.getCameraList(), a.length && (yield this.startCameraCapture());
10326
10326
  } catch (c) {
10327
- throw c.code === ce.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(O.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(O.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
10327
+ throw c.code === oe.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(O.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(O.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
10328
10328
  }
10329
10329
  if (!a.length)
10330
10330
  throw new V(O.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
@@ -10337,9 +10337,9 @@ const ge = (ut = class extends pn {
10337
10337
  let s = [];
10338
10338
  if (!e && !t && i) {
10339
10339
  try {
10340
- s = yield ce.getMicList(), s.length && (yield this.startAudioCapture());
10340
+ s = yield oe.getMicList(), s.length && (yield this.startAudioCapture());
10341
10341
  } catch (a) {
10342
- throw a.code === ce.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(O.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(O.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
10342
+ throw a.code === oe.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(O.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(O.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
10343
10343
  }
10344
10344
  if (!s.length)
10345
10345
  throw new V(O.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
@@ -10409,7 +10409,7 @@ const ge = (ut = class extends pn {
10409
10409
  videoElement: t
10410
10410
  });
10411
10411
  if (!s) {
10412
- H.info(`[${ut.logName}]`, "preview no stream founded");
10412
+ H.info(`[${ht.logName}]`, "preview no stream founded");
10413
10413
  return;
10414
10414
  }
10415
10415
  return Sn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
@@ -10480,22 +10480,22 @@ const ge = (ut = class extends pn {
10480
10480
  const i = U0[t.errorCode];
10481
10481
  throw i && (e.audio ? this.emit(
10482
10482
  "localDeviceException",
10483
- ct.AliEngineLocalDeviceTypeMic,
10483
+ ut.AliEngineLocalDeviceTypeMic,
10484
10484
  i,
10485
10485
  ""
10486
10486
  ) : e.video ? this.emit(
10487
10487
  "localDeviceException",
10488
- ct.AliEngineLocalDeviceTypeCamera,
10488
+ ut.AliEngineLocalDeviceTypeCamera,
10489
10489
  i,
10490
10490
  ""
10491
10491
  ) : e.screen ? this.emit(
10492
10492
  "localDeviceException",
10493
- ct.AliEngineLocalDeviceTypeDisplay,
10493
+ ut.AliEngineLocalDeviceTypeDisplay,
10494
10494
  i,
10495
10495
  ""
10496
10496
  ) : this.emit(
10497
10497
  "localDeviceException",
10498
- ct.AliEngineLocalDeviceTypeUnknown,
10498
+ ut.AliEngineLocalDeviceTypeUnknown,
10499
10499
  i,
10500
10500
  ""
10501
10501
  )), t;
@@ -10527,7 +10527,7 @@ const ge = (ut = class extends pn {
10527
10527
  });
10528
10528
  }
10529
10529
  reportAudioProfile() {
10530
- const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = ce.AudioProfileMap.get(e);
10530
+ const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = oe.AudioProfileMap.get(e);
10531
10531
  this.slsReporter.reportPublishProfile(k.Audio, {
10532
10532
  a_profile: e,
10533
10533
  bits: (t == null ? void 0 : t.maxBitrate) || 0,
@@ -10536,7 +10536,7 @@ const ge = (ut = class extends pn {
10536
10536
  });
10537
10537
  }
10538
10538
  reportVideoProfile() {
10539
- const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
10539
+ const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = oe.VideoProfileMap.get(e);
10540
10540
  t && this.slsReporter.reportPublishProfile(k.VideoLarge, {
10541
10541
  v_profile: e,
10542
10542
  wdth: (t == null ? void 0 : t.width) || 0,
@@ -10546,7 +10546,7 @@ const ge = (ut = class extends pn {
10546
10546
  });
10547
10547
  }
10548
10548
  reportScreenProfile() {
10549
- const e = this.streamManager.screenStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
10549
+ const e = this.streamManager.screenStreamInfo.videoProfile || "", t = oe.VideoProfileMap.get(e);
10550
10550
  t && this.slsReporter.reportPublishProfile(k.Screen, {
10551
10551
  v_profile: e,
10552
10552
  wdth: (t == null ? void 0 : t.width) || 0,
@@ -10556,13 +10556,13 @@ const ge = (ut = class extends pn {
10556
10556
  });
10557
10557
  }
10558
10558
  startPublish() {
10559
- return w(this, arguments, function* (e = !1, t = rt.MANUAL) {
10559
+ return w(this, arguments, function* (e = !1, t = st.MANUAL) {
10560
10560
  var u;
10561
10561
  if (!this.joined)
10562
10562
  return;
10563
10563
  const i = yield this.streamManager.publishStreams, { audio: s, video: a, videoSmall: c, screen: o } = i;
10564
10564
  if (!s && !a && !c && !o) {
10565
- H.event(`[${ut.logName}]`, "startPublish no stream founded");
10565
+ H.event(`[${ht.logName}]`, "startPublish no stream founded");
10566
10566
  return;
10567
10567
  }
10568
10568
  this.createCallId();
@@ -10598,18 +10598,11 @@ const ge = (ut = class extends pn {
10598
10598
  }
10599
10599
  });
10600
10600
  }
10601
- /**
10602
- * 重新执行 progress 并触发 publishupdate
10603
- */
10604
10601
  updateStreams() {
10605
10602
  return w(this, null, function* () {
10606
10603
  yield this.streamManager.updateStreams();
10607
10604
  });
10608
10605
  }
10609
- /**
10610
- * 对比本地流和正在推流,进行推流更新
10611
- * @param isResume 是否是恢复推流
10612
- */
10613
10606
  publishUpdate(e) {
10614
10607
  return w(this, null, function* () {
10615
10608
  var a, c, o, u;
@@ -10640,7 +10633,7 @@ const ge = (ut = class extends pn {
10640
10633
  ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.Screen
10641
10634
  ), v = yield this.compareAndPublish(S, t.screen, k.Screen);
10642
10635
  if (v && (i = v), !i)
10643
- if (e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10636
+ if (e === st.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10644
10637
  const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10645
10638
  (x || b) && (yield this.rtsManager.waitPublishSender(
10646
10639
  this.url,
@@ -10796,7 +10789,7 @@ const ge = (ut = class extends pn {
10796
10789
  O.ERR_INNER,
10797
10790
  "publish stop failed, previous localStream is required for publishing stopping"
10798
10791
  );
10799
- H.info(`[${ut.logName}]`, "publishStop", { url: this.url });
10792
+ H.info(`[${ht.logName}]`, "publishStop", { url: this.url });
10800
10793
  const e = (/* @__PURE__ */ new Date()).getTime();
10801
10794
  try {
10802
10795
  const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, a = this.hasScreenTrackInMS;
@@ -11058,7 +11051,7 @@ const ge = (ut = class extends pn {
11058
11051
  }, /**
11059
11052
  * @ignore
11060
11053
  */
11061
- m(ut, "logName", "LocalUser"), ut);
11054
+ m(ht, "logName", "LocalUser"), ht);
11062
11055
  me([
11063
11056
  D()
11064
11057
  ], ge.prototype, "clearPublishState", 1);
@@ -11101,6 +11094,12 @@ me([
11101
11094
  me([
11102
11095
  D(U)
11103
11096
  ], ge.prototype, "startPublish", 1);
11097
+ me([
11098
+ D()
11099
+ ], ge.prototype, "updateStreams", 1);
11100
+ me([
11101
+ D(U)
11102
+ ], ge.prototype, "publishUpdate", 1);
11104
11103
  me([
11105
11104
  D(([r]) => [r])
11106
11105
  ], ge.prototype, "syncPublishToRoomServer", 1);
@@ -11131,7 +11130,7 @@ const $0 = (r) => {
11131
11130
  const n = new MediaStream();
11132
11131
  return n.addTrack(r), n;
11133
11132
  }, bn = (r) => w(void 0, null, function* () {
11134
- return yield ce.createStream({
11133
+ return yield oe.createStream({
11135
11134
  custom: !0,
11136
11135
  mediaStream: r
11137
11136
  });
@@ -11381,7 +11380,7 @@ class bi extends we {
11381
11380
  updateRemoteUserDeviceStatus(e) {
11382
11381
  let t = gn.parseStatus(e);
11383
11382
  const { audioDisable: i, videoDisable: s, screenDisable: a } = t;
11384
- return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Le.Remote, a ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Le.Remote, a ? oe.MuteScreen : oe.UnmuteScreen)), !1;
11383
+ return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Le.Remote, i ? ce.MuteAudio : ce.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Le.Remote, s ? ce.MuteVideo : ce.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Le.Remote, a ? ce.MuteScreen : ce.UnmuteScreen))) : (this.userStatus = t, this.emit(Le.Remote, i ? ce.MuteAudio : ce.UnmuteAudio), this.emit(Le.Remote, s ? ce.MuteVideo : ce.UnmuteVideo), this.emit(Le.Remote, a ? ce.MuteScreen : ce.UnmuteScreen)), !1;
11385
11384
  }
11386
11385
  }
11387
11386
  /**
@@ -11469,8 +11468,8 @@ class Ut extends we {
11469
11468
  }
11470
11469
  }
11471
11470
  const sc = 30;
11472
- var ht;
11473
- const _e = (ht = class extends pn {
11471
+ var it;
11472
+ const _e = (it = class extends pn {
11474
11473
  constructor(e) {
11475
11474
  var f;
11476
11475
  const {
@@ -11554,7 +11553,7 @@ const _e = (ht = class extends pn {
11554
11553
  } else
11555
11554
  i = Wt.parse(t.body);
11556
11555
  i || H.event(
11557
- `[${ht.logName}]`,
11556
+ `[${it.logName}]`,
11558
11557
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11559
11558
  );
11560
11559
  } else {
@@ -11562,7 +11561,7 @@ const _e = (ht = class extends pn {
11562
11561
  return;
11563
11562
  }
11564
11563
  i && (H.event(
11565
- `[${ht.logName}]`,
11564
+ `[${it.logName}]`,
11566
11565
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11567
11566
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11568
11567
  });
@@ -11703,13 +11702,13 @@ const _e = (ht = class extends pn {
11703
11702
  "track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
11704
11703
  );
11705
11704
  e ? Fr(e).forEach((s) => {
11706
- s.setAttribute("playsinline", ""), ce.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), ce.SystenUtil.isAndroid || ce.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
11705
+ s.setAttribute("playsinline", ""), oe.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), oe.SystenUtil.isAndroid || oe.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
11707
11706
  }) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
11708
11707
  }
11709
11708
  clear(e = !0) {
11710
11709
  return w(this, null, function* () {
11711
11710
  var t;
11712
- this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(ht.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11711
+ this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(it.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11713
11712
  });
11714
11713
  }
11715
11714
  updateRemoteUserDeviceStatus(e) {
@@ -12010,7 +12009,7 @@ const _e = (ht = class extends pn {
12010
12009
  var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
12011
12010
  const t = Date.now(), i = {}, s = {};
12012
12011
  if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || k.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || k.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || k.VideoLarge), this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : (!this.wantSubVideo || !((g = this.streamInfo) != null && g.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || k.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((E = this.streamInfo) != null && E.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === le.Reconnect) {
12013
- if (H.event(`[${ht.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12012
+ if (H.event(`[${it.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12014
12013
  const A = this.rtsManager.getStreamByMsid({
12015
12014
  url: this.streamUrl,
12016
12015
  aMsid: this.streamInfo.getAudioInfo().msid || k.Audio
@@ -12038,7 +12037,7 @@ const _e = (ht = class extends pn {
12038
12037
  };
12039
12038
  }
12040
12039
  handleAutoPlayFailed() {
12041
- this.emit("remoteAudioAutoPlayFail", this.uid);
12040
+ H.event(`[${it.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12042
12041
  const e = () => {
12043
12042
  this.resumeAudio().then(() => {
12044
12043
  document.removeEventListener("click", e, !1), document.removeEventListener("touchstart", e, !1);
@@ -12065,7 +12064,7 @@ const _e = (ht = class extends pn {
12065
12064
  i.removeTrack(s);
12066
12065
  }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12067
12066
  }
12068
- if (ce.SystenUtil.isIos && parseInt(ce.SystenUtil.systemVersion) <= 13) {
12067
+ if (!oe.BrowserUtil.isMiBrowser && oe.SystenUtil.isIos && parseInt(oe.SystenUtil.systemVersion) <= 13) {
12069
12068
  const i = this.audioElement;
12070
12069
  i.setAttribute("autoplay", "");
12071
12070
  const s = () => {
@@ -12074,10 +12073,25 @@ const _e = (ht = class extends pn {
12074
12073
  });
12075
12074
  };
12076
12075
  this.audioElement.addEventListener("playing", s);
12077
- } else
12078
- this.audioElement.play().catch(() => {
12079
- this.handleAutoPlayFailed();
12080
- });
12076
+ } else {
12077
+ const i = () => {
12078
+ var s;
12079
+ (s = this.audioElement) == null || s.play().catch(() => {
12080
+ this.handleAutoPlayFailed();
12081
+ });
12082
+ };
12083
+ if (oe.BrowserUtil.isMicroMessenger) {
12084
+ const s = window.top !== window.self, a = window.WeixinJSBridge || window.top.WeixinJSBridge;
12085
+ a ? a.invoke("getNetworkType", {}, () => {
12086
+ i();
12087
+ }) : (s ? window.top.document : document).addEventListener("WeixinJSBridgeReady", () => {
12088
+ a.invoke("getNetworkType", {}, () => {
12089
+ i();
12090
+ });
12091
+ });
12092
+ } else
12093
+ i();
12094
+ }
12081
12095
  }
12082
12096
  });
12083
12097
  }
@@ -12244,7 +12258,7 @@ const _e = (ht = class extends pn {
12244
12258
  }, /**
12245
12259
  * @ignore
12246
12260
  */
12247
- m(ht, "logName", "RemoteUser"), ht);
12261
+ m(it, "logName", "RemoteUser"), it);
12248
12262
  De([
12249
12263
  D()
12250
12264
  ], _e.prototype, "clear", 1);
@@ -12365,7 +12379,7 @@ const xe = (Me = class extends we {
12365
12379
  m(this, "dcConnectingPromise");
12366
12380
  m(this, "_publishingTracks", []);
12367
12381
  m(this, "parameter", {});
12368
- this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts = ce.createClient(), this.addRTSListener();
12382
+ this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts = oe.createClient(), this.addRTSListener();
12369
12383
  }
12370
12384
  addRTSListener() {
12371
12385
  this.rts.on("connectStatusChange", (e) => {
@@ -12428,7 +12442,7 @@ const xe = (Me = class extends we {
12428
12442
  this.rts.unpublish();
12429
12443
  } catch (e) {
12430
12444
  }
12431
- this.rts = ce.createClient(), this.addRTSListener();
12445
+ this.rts = oe.createClient(), this.addRTSListener();
12432
12446
  }
12433
12447
  startConnect() {
12434
12448
  this.connecting = !0, this.connectingPromise = new Promise((e) => {
@@ -12467,7 +12481,7 @@ const xe = (Me = class extends we {
12467
12481
  })));
12468
12482
  }
12469
12483
  httpPublish(a, c) {
12470
- return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
12484
+ return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
12471
12485
  var x, b;
12472
12486
  let o;
12473
12487
  const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
@@ -12588,7 +12602,7 @@ const xe = (Me = class extends we {
12588
12602
  });
12589
12603
  }
12590
12604
  publishAdd(u, h, p, d) {
12591
- return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = rt.MANUAL) {
12605
+ return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = st.MANUAL) {
12592
12606
  var l, S, v, x, b, y, E, I;
12593
12607
  const f = Date.now(), g = this.getPubMsid(t, s);
12594
12608
  try {
@@ -12883,7 +12897,7 @@ const xe = (Me = class extends we {
12883
12897
  });
12884
12898
  }
12885
12899
  publish(a, c) {
12886
- return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
12900
+ return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
12887
12901
  let o = "", u;
12888
12902
  if (this.connecting && (yield this.connectingPromise), this.connected) {
12889
12903
  yield this.dcConnectingPromise;
@@ -13390,7 +13404,7 @@ const Ge = (Bt = class extends we {
13390
13404
  m(this, "_publishLocalScreenStreamEnabled", !0);
13391
13405
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13392
13406
  const i = (s) => w(this, null, function* () {
13393
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.5")) {
13407
+ if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.6-beta.0")) {
13394
13408
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13395
13409
  return;
13396
13410
  }
@@ -13481,7 +13495,7 @@ const Ge = (Bt = class extends we {
13481
13495
  var e, t, i, s;
13482
13496
  if ((e = this.cameraStreamInfo.cameraVideoConstraints) != null && e.deviceId) {
13483
13497
  let a = (t = this.cameraStreamInfo.cameraVideoConstraints) == null ? void 0 : t.deviceId;
13484
- const c = yield ce.getCameraList();
13498
+ const c = yield oe.getCameraList();
13485
13499
  c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.cameraVideoConstraints.deviceId = a;
13486
13500
  }
13487
13501
  });
@@ -13492,7 +13506,7 @@ const Ge = (Bt = class extends we {
13492
13506
  var e, t, i, s;
13493
13507
  if ((e = this.cameraStreamInfo.micAudioConstraints) != null && e.deviceId) {
13494
13508
  let a = (t = this.cameraStreamInfo.micAudioConstraints) == null ? void 0 : t.deviceId;
13495
- const c = yield ce.getMicList();
13509
+ const c = yield oe.getMicList();
13496
13510
  c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.micAudioConstraints.deviceId = a;
13497
13511
  }
13498
13512
  });
@@ -13508,7 +13522,7 @@ const Ge = (Bt = class extends we {
13508
13522
  i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = Y({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = Y(Y({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = Y({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = Y(Y({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
13509
13523
  const d = Date.now();
13510
13524
  try {
13511
- h = yield ce.createStream({
13525
+ h = yield oe.createStream({
13512
13526
  audio: o,
13513
13527
  video: c,
13514
13528
  screen: t,
@@ -13526,7 +13540,7 @@ const Ge = (Bt = class extends we {
13526
13540
  f && (yield h.setAudioProfile(f));
13527
13541
  }
13528
13542
  }
13529
- return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13543
+ return oe.SystenUtil.isIos && oe.SystenUtil.compareVersion("15.1") && !oe.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13530
13544
  });
13531
13545
  }
13532
13546
  stopLocalStream(e) {
@@ -14602,7 +14616,7 @@ class Te extends we {
14602
14616
  playoutVolume: this.playoutVolume,
14603
14617
  parameter: this.parameter
14604
14618
  });
14605
- return s.on(Le.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (a, c, o, u) => {
14619
+ return s.on(Le.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(ce.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(ce.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (a, c, o, u) => {
14606
14620
  this.emit("audioSubscribeStateChanged", a, c, o, u, this.channel || "");
14607
14621
  }), s.on("videoSubscribeStateChanged", (a, c, o, u) => {
14608
14622
  this.emit("videoSubscribeStateChanged", a, c, o, u, this.channel || "");
@@ -14632,20 +14646,20 @@ class Te extends we {
14632
14646
  * @param {string} userId
14633
14647
  */
14634
14648
  onRemoteDeviceStatusChange(e, t) {
14635
- e === oe.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === oe.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === oe.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === oe.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === oe.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === oe.UnmuteScreen && this.emit("userScreenMuted", t, !1);
14649
+ e === ce.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === ce.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === ce.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === ce.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === ce.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === ce.UnmuteScreen && this.emit("userScreenMuted", t, !1);
14636
14650
  }
14637
14651
  /**
14638
14652
  * 远端流数据采集上报
14639
14653
  * @param {any} stat
14640
14654
  */
14641
14655
  onRemoteStatReport(e, t, i) {
14642
- this.emit(oe.PullStreamStats, e, t, i);
14656
+ this.emit(ce.PullStreamStats, e, t, i);
14643
14657
  }
14644
14658
  /**
14645
14659
  * rts 单 PC 订阅超限
14646
14660
  */
14647
14661
  onSubscribeExceeds(e, t) {
14648
- this.emit(oe.RtsSubscribeExceeds, e, t);
14662
+ this.emit(ce.RtsSubscribeExceeds, e, t);
14649
14663
  }
14650
14664
  removeLeftUser(e) {
14651
14665
  return w(this, null, function* () {
@@ -14841,7 +14855,7 @@ class Dc {
14841
14855
  var u;
14842
14856
  const t = this.authInfo;
14843
14857
  if (!t)
14844
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14858
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14845
14859
  const i = "https://gw.rtn.aliyuncs.com", s = I0[n], a = {
14846
14860
  appid: t.appId,
14847
14861
  userid: t.userId,
@@ -14874,7 +14888,7 @@ class Dc {
14874
14888
  startPublishLiveStream(n, e) {
14875
14889
  return w(this, null, function* () {
14876
14890
  if (!this.authInfo)
14877
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14891
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14878
14892
  const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14879
14893
  return this.doRequest(i, s);
14880
14894
  });
@@ -14882,7 +14896,7 @@ class Dc {
14882
14896
  startPublishLiveStreamWithTaskId(n, e) {
14883
14897
  return w(this, null, function* () {
14884
14898
  if (!this.authInfo)
14885
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14899
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14886
14900
  const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14887
14901
  return this.doRequest(t, i);
14888
14902
  });
@@ -14890,7 +14904,7 @@ class Dc {
14890
14904
  updatePublishLiveStream(n, e) {
14891
14905
  return w(this, null, function* () {
14892
14906
  if (!this.authInfo)
14893
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14907
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14894
14908
  const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14895
14909
  return this.doRequest(i, s);
14896
14910
  });
@@ -14898,7 +14912,7 @@ class Dc {
14898
14912
  updatePublishLiveStreamWithTaskId(n, e) {
14899
14913
  return w(this, null, function* () {
14900
14914
  if (!this.authInfo)
14901
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14915
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14902
14916
  const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14903
14917
  return this.doRequest(t, i);
14904
14918
  });
@@ -14906,14 +14920,14 @@ class Dc {
14906
14920
  stopPublishLiveStream(n) {
14907
14921
  return w(this, null, function* () {
14908
14922
  if (!this.authInfo)
14909
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14923
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14910
14924
  const e = yield Pr(n.split("?")[0]), t = Oe.MPU_TASK_TRANSACTION_STOP, i = new Br().toJson(t, this.authInfo, e, n);
14911
14925
  return this.doRequest(t, i);
14912
14926
  });
14913
14927
  }
14914
14928
  stopPublishLiveStreamWithTaskId(n) {
14915
14929
  if (!this.authInfo)
14916
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14930
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14917
14931
  const e = Oe.MPU_TASK_TRANSACTION_STOP, t = new Br().toJson(e, this.authInfo, n);
14918
14932
  return this.doRequest(e, t);
14919
14933
  }
@@ -15115,7 +15129,7 @@ class Mc {
15115
15129
  return this.sourceType && ei[this.sourceType] ? s.sourcetype = ei[this.sourceType] : s.sourcetype = ei[si.LiveTranscodingCamera], this.segmentType && i === Yr.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = vi.LiveTranscodingNoBody, s;
15116
15130
  }
15117
15131
  }
15118
- const { BrowserUtil: kr, SystenUtil: Ja } = ce;
15132
+ const { BrowserUtil: kr, SystenUtil: Ja } = oe;
15119
15133
  class Ga {
15120
15134
  constructor() {
15121
15135
  m(this, "tracker");
@@ -15194,7 +15208,7 @@ class Ga {
15194
15208
  */
15195
15209
  initParam(n) {
15196
15210
  let e = localStorage == null ? void 0 : localStorage.getItem("AliRtcUUID");
15197
- e || (e = st(), localStorage == null || localStorage.setItem("AliRtcUUID", e)), this.param || (this.param = {
15211
+ e || (e = at(), localStorage == null || localStorage.setItem("AliRtcUUID", e)), this.param || (this.param = {
15198
15212
  apid: n.appId,
15199
15213
  usrid: n.userId,
15200
15214
  statsvrs: "0.6.1",
@@ -15348,9 +15362,9 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15348
15362
  h.push(Ye);
15349
15363
  const Se = pe(j, "packetsReceived"), Pe = qe(Se, ue);
15350
15364
  p.push(Pe);
15351
- const at = pe(j, "packetsLost"), Et = qe(at, ue);
15365
+ const nt = pe(j, "packetsLost"), Et = qe(nt, ue);
15352
15366
  d.push(Et);
15353
- const Nt = Rt(at, Se);
15367
+ const Nt = Rt(nt, Se);
15354
15368
  f.push(Nt);
15355
15369
  const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
15356
15370
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
@@ -15360,22 +15374,22 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15360
15374
  g.push(0);
15361
15375
  const _t = pe(j, "fecPacketsReceived");
15362
15376
  b.push(Rt(_t, Se));
15363
- const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + at - ke;
15364
- if (S.push(Rt(Se - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15377
+ const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + nt - ke;
15378
+ if (S.push(Rt(Se - ke, Ce)), v.push(Rt(nt, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15365
15379
  E.push(Xa(j.audioLevel));
15366
15380
  const lt = Lc(j, "synthesizedSamplesEvents");
15367
15381
  I.push(lt);
15368
15382
  const Qe = Ya(j, "synthesizedSamplesDuration");
15369
15383
  A.push(Qe);
15370
- const nt = Rt(Qe, ue);
15371
- y.push(nt), C.push(0);
15384
+ const ot = Rt(Qe, ue);
15385
+ y.push(ot), C.push(0);
15372
15386
  } else {
15373
15387
  const lt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15374
15388
  L.push(fe(lt, 1e3 / (j.framesDecoded || 30), 500)), _.push(fe(j.framesPerSecond, 1, 100)), R.push(pe(j, "framesReceived")), F.push(pe(j, "framesRendered")), T.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15375
15389
  const Qe = pe(j, "totalProcessingDelay");
15376
15390
  $.push(fe(Qe, 1e3 / (j.framesDecoded || 30), 12e4));
15377
- const nt = pe(j, "nackCount");
15378
- G.push(nt);
15391
+ const ot = pe(j, "nackCount");
15392
+ G.push(ot);
15379
15393
  const Di = pe(j, "pliCount");
15380
15394
  q.push(Di);
15381
15395
  const oi = pe(j, "qpSum");
@@ -15571,7 +15585,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15571
15585
  pctid: c,
15572
15586
  pubtid: o,
15573
15587
  totaltm: h - s,
15574
- jorm: u === rt.JOIN_CHANNEL ? 1 : 0,
15588
+ jorm: u === st.JOIN_CHANNEL ? 1 : 0,
15575
15589
  cptc: 0,
15576
15590
  sptc: i - t,
15577
15591
  iptc: 0,
@@ -16062,21 +16076,21 @@ const z = (K = class extends we {
16062
16076
  }), (t = this.publisher) == null || t.on(kt.VideoTrackEnded, () => {
16063
16077
  H.event("[Publisher] VideoTrack Ended"), this.emit(
16064
16078
  "localDeviceException",
16065
- ct.AliEngineLocalDeviceTypeCamera,
16079
+ ut.AliEngineLocalDeviceTypeCamera,
16066
16080
  ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16067
16081
  ""
16068
16082
  );
16069
16083
  }), (i = this.publisher) == null || i.on(kt.ScreenTrackEnded, () => {
16070
16084
  H.event("[Publisher] ScreenTrack Ended"), this.emit(
16071
16085
  "localDeviceException",
16072
- ct.AliEngineLocalDeviceTypeDisplay,
16086
+ ut.AliEngineLocalDeviceTypeDisplay,
16073
16087
  ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16074
16088
  ""
16075
16089
  );
16076
16090
  }), (s = this.publisher) == null || s.on(kt.AudioTrackEnded, () => {
16077
16091
  H.event("[Publisher] AudioTrack Ended"), this.emit(
16078
16092
  "localDeviceException",
16079
- ct.AliEngineLocalDeviceTypeMic,
16093
+ ut.AliEngineLocalDeviceTypeMic,
16080
16094
  ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16081
16095
  ""
16082
16096
  );
@@ -16111,7 +16125,7 @@ const z = (K = class extends we {
16111
16125
  addBizControlListeners() {
16112
16126
  this.bizControl.rtsManager.on("connected", (e) => {
16113
16127
  var t;
16114
- e && ((t = this.publisher) == null || t.publishUpdate(rt.RECONNECT), this.remoteUsers.forEach((i) => {
16128
+ e && ((t = this.publisher) == null || t.publishUpdate(st.RECONNECT), this.remoteUsers.forEach((i) => {
16115
16129
  i.updateSubscribe(le.Reconnect);
16116
16130
  }));
16117
16131
  }), this.bizControl.rtsManager.on("disconnected", () => w(this, null, function* () {
@@ -16228,7 +16242,7 @@ const z = (K = class extends we {
16228
16242
  const i = t.userid;
16229
16243
  if (i) {
16230
16244
  const s = this.bizControl.addUser(i, t.displayname, le.Join);
16231
- H.event(`[${K.logName}]`, oe.UserJoined, s);
16245
+ H.event(`[${K.logName}]`, ce.UserJoined, s);
16232
16246
  }
16233
16247
  });
16234
16248
  }
@@ -16297,7 +16311,7 @@ const z = (K = class extends we {
16297
16311
  leaveList: i,
16298
16312
  presentList: s
16299
16313
  }), this.handleUsersJoin(t), i.forEach((a) => {
16300
- H.event(K.logName, oe.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16314
+ H.event(K.logName, ce.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16301
16315
  });
16302
16316
  for (let a = 0; a < s.length; a++) {
16303
16317
  const c = s[a], o = c.userid, u = this.bizControl.getRemoteUser(o);
@@ -16339,7 +16353,7 @@ const z = (K = class extends we {
16339
16353
  * @returns {void}
16340
16354
  */
16341
16355
  onError(e) {
16342
- this.slsReporter.reportError(e), H.event(K.logName, oe.Error, e);
16356
+ this.slsReporter.reportError(e), H.event(K.logName, ce.Error, e);
16343
16357
  }
16344
16358
  setEnableDualVideoStream(e, t) {
16345
16359
  this.bizControl.setEnableDualVideoStream(e, t);
@@ -16423,7 +16437,7 @@ const z = (K = class extends we {
16423
16437
  );
16424
16438
  if (this.clientRole === e)
16425
16439
  return;
16426
- this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(rt.JOIN_CHANNEL)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
16440
+ this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(st.JOIN_CHANNEL)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
16427
16441
  } catch (s) {
16428
16442
  throw s.code === 403 && this.emit("authInfoExpired"), s;
16429
16443
  }
@@ -16503,7 +16517,7 @@ const z = (K = class extends we {
16503
16517
  const p = (u = h.code) != null ? u : -1, d = h.reason || h.message || "";
16504
16518
  throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(p, a, ""), this.slsReporter.reportJoinResult(h), new V(p, d);
16505
16519
  }
16506
- this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(rt.ROLE_CHANGE)), this.remoteUsers.forEach((h) => {
16520
+ this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(st.ROLE_CHANGE)), this.remoteUsers.forEach((h) => {
16507
16521
  h.updateSubscribe(le.Join);
16508
16522
  });
16509
16523
  } else {
@@ -16784,7 +16798,7 @@ const z = (K = class extends we {
16784
16798
  }
16785
16799
  muteLocalMic(e = !1) {
16786
16800
  var t;
16787
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteAudio : oe.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
16801
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteAudio : ce.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
16788
16802
  }
16789
16803
  muteRemoteAudioPlaying(e, t = !1) {
16790
16804
  const i = this.bizControl.getRemoteUser(e);
@@ -16906,13 +16920,13 @@ const z = (K = class extends we {
16906
16920
  muteLocalCamera(e) {
16907
16921
  return w(this, null, function* () {
16908
16922
  var t;
16909
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteVideo : oe.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
16923
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteVideo : ce.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
16910
16924
  });
16911
16925
  }
16912
16926
  muteLocalScreen(e) {
16913
16927
  return w(this, null, function* () {
16914
16928
  var t;
16915
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteScreen : oe.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
16929
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteScreen : ce.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
16916
16930
  });
16917
16931
  }
16918
16932
  setRemoteViewConfig(e, t, i) {
@@ -17178,12 +17192,12 @@ m(K, "isDualVideoStreamSupported", Vr.isSupport), /**
17178
17192
  * @returns {Promise<string[]>}
17179
17193
  */
17180
17194
  m(K, "getCameraList", () => w(K, null, function* () {
17181
- return (yield ce.getCameraList()).filter((t) => t.deviceId);
17195
+ return (yield oe.getCameraList()).filter((t) => t.deviceId);
17182
17196
  })), m(K, "getMicrophoneList", () => w(K, null, function* () {
17183
- return (yield ce.getMicList()).filter((t) => t.deviceId);
17197
+ return (yield oe.getMicList()).filter((t) => t.deviceId);
17184
17198
  })), m(K, "getSpeakerList", () => w(K, null, function* () {
17185
- return (yield ce.getSpeakerList()).filter((t) => t.deviceId);
17186
- })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ct), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ot), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17199
+ return (yield oe.getSpeakerList()).filter((t) => t.deviceId);
17200
+ })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ut), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ct), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17187
17201
  W([
17188
17202
  D()
17189
17203
  ], z.prototype, "destroy", 1);
@@ -17425,12 +17439,12 @@ export {
17425
17439
  Wt as AliRtcDataChannelMsg,
17426
17440
  vn as AliRtcDataMsgType,
17427
17441
  ye as AliRtcEngineLocalDeviceExceptionType,
17428
- ct as AliRtcEngineLocalDeviceType,
17442
+ ut as AliRtcEngineLocalDeviceType,
17429
17443
  O as AliRtcErrorCode,
17430
17444
  Xr as AliRtcLiveTranscodingAudioSampleRate,
17431
17445
  hn as AliRtcLiveTranscodingCropMode,
17432
17446
  fn as AliRtcLiveTranscodingEncodeParam,
17433
- ot as AliRtcLiveTranscodingErrorCode,
17447
+ ct as AliRtcLiveTranscodingErrorCode,
17434
17448
  _i as AliRtcLiveTranscodingFontType,
17435
17449
  Yr as AliRtcLiveTranscodingMediaProcessMode,
17436
17450
  Si as AliRtcLiveTranscodingMixMode,