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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ var w = (r, n, e) => new Promise((t, i) => {
39
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
- function Ne() {
42
+ function Fe() {
43
43
  if (ms)
44
44
  return Mi;
45
45
  ms = 1, Date.now = Date.now || function() {
@@ -486,7 +486,7 @@ function Wn() {
486
486
  if (xs)
487
487
  return Fi;
488
488
  xs = 1;
489
- var r = Ne();
489
+ var r = Fe();
490
490
  return Fi = function(n, e, t) {
491
491
  typeof n == "object" && (n = r.serialize(n));
492
492
  var i = e + n + (t ? "&post_res=" : "");
@@ -498,7 +498,7 @@ function $n() {
498
498
  if (Ss)
499
499
  return Ni.exports;
500
500
  Ss = 1;
501
- var r = Ne(), n = Wn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, a) {
501
+ var r = Fe(), n = Wn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, a) {
502
502
  var c;
503
503
  if (a.t === "error" && (c = s.requestQueue[0]) && c.t === "error" && a.msg === c.msg)
504
504
  return a.times = c.times + 1, void (s.requestQueue[0] = a);
@@ -733,7 +733,7 @@ function Kn() {
733
733
  if (vs)
734
734
  return Li.exports;
735
735
  vs = 1;
736
- var r = Ne(), n = $n(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
736
+ var r = Fe(), n = $n(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
737
737
  var a = (s.key || "default").split("::");
738
738
  return a.length > 1 ? r.ext(s, {
739
739
  group: a[0],
@@ -925,7 +925,7 @@ function qn() {
925
925
  if (bs)
926
926
  return Vi.exports;
927
927
  bs = 1;
928
- var r = Ne(), n = typeof window == "object" ? window : {}, e = "catch", t = n.__oFetch_ || n.fetch;
928
+ var r = Fe(), n = typeof window == "object" ? window : {}, e = "catch", t = n.__oFetch_ || n.fetch;
929
929
  return t = typeof t == "function" ? t : void 0, Vi.exports = function(i, s) {
930
930
  var a = -1;
931
931
  typeof i == "object" && (a = i.z, i = r.serialize(i));
@@ -948,7 +948,7 @@ function Jn() {
948
948
  if (ys)
949
949
  return Oi.exports;
950
950
  ys = 1;
951
- var r = Ne(), n = typeof window == "object" ? window : {}, e = n.__oXMLHttpRequest_ || n.XMLHttpRequest;
951
+ var r = Fe(), n = typeof window == "object" ? window : {}, e = n.__oXMLHttpRequest_ || n.XMLHttpRequest;
952
952
  return e = typeof e == "function" ? e : void 0, Oi.exports = function(t, i) {
953
953
  try {
954
954
  var s = new e();
@@ -964,7 +964,7 @@ function Gn() {
964
964
  if (Es)
965
965
  return Ui;
966
966
  Es = 1;
967
- var r = Ne();
967
+ var r = Fe();
968
968
  return Ui = function(n, e) {
969
969
  var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f, g) {
970
970
  if (d !== null) {
@@ -1148,7 +1148,7 @@ function Xn() {
1148
1148
  if (Cs)
1149
1149
  return Hi;
1150
1150
  Cs = 1;
1151
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1151
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1152
1152
  return Hi = function() {
1153
1153
  var t = r.win || {}, i = t.performance;
1154
1154
  if (!i || typeof i != "object" || typeof i.getEntriesByType != "function")
@@ -1175,7 +1175,7 @@ function Yn() {
1175
1175
  if (Is)
1176
1176
  return ji;
1177
1177
  Is = 1;
1178
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1178
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1179
1179
  return ji = function() {
1180
1180
  var t = r.win || {}, i = t.performance;
1181
1181
  if (!i || typeof i != "object")
@@ -1218,7 +1218,7 @@ function Yn() {
1218
1218
  var Rs, ws;
1219
1219
  function Zn() {
1220
1220
  return ws || (ws = 1, Rs = function(r, n, e) {
1221
- var t = Ne(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, p = {
1221
+ var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, p = {
1222
1222
  sr: screen.width + "x" + screen.height,
1223
1223
  vp: o + "x" + u,
1224
1224
  ct: h ? h.effectiveType || h.type : ""
@@ -1392,7 +1392,7 @@ function Qn() {
1392
1392
  if (Ds)
1393
1393
  return zi;
1394
1394
  Ds = 1;
1395
- var r = Ne(), n = 500;
1395
+ var r = Fe(), n = 500;
1396
1396
  return zi = function(e, t, i) {
1397
1397
  function s(p, d, f) {
1398
1398
  var g = 0, l = p.tagName;
@@ -1477,7 +1477,7 @@ function Qn() {
1477
1477
  var Ts, Ps;
1478
1478
  function eo() {
1479
1479
  return Ps || (Ps = 1, Ts = function(r, n) {
1480
- var e = Ne(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, y, E, I) {
1480
+ var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, y, E, I) {
1481
1481
  var A = e.J(g) || null, C = e.safetyCall(p, [A, f], null);
1482
1482
  if (!C)
1483
1483
  return !1;
@@ -1577,24 +1577,24 @@ function eo() {
1577
1577
  if (X && !/(text)|(json)/.test(X))
1578
1578
  return J;
1579
1579
  if (!C) {
1580
- var Fe = e.parseFetchHeaders(ue);
1581
- typeof Fe == "object" && Fe["eagleeye-traceid"] && (C = Fe["eagleeye-traceid"], R = "response");
1580
+ var Ve = e.parseFetchHeaders(ue);
1581
+ typeof Ve == "object" && Ve["eagleeye-traceid"] && (C = Ve["eagleeye-traceid"], R = "response");
1582
1582
  }
1583
1583
  }
1584
- var je = x();
1585
- return j.text().then(function(Xe) {
1584
+ var ze = x();
1585
+ return j.text().then(function(Ye) {
1586
1586
  if (!C && e.isFunction(I)) {
1587
- var Ye = I(j, Xe);
1588
- Ye && e.isString(Ye) && (C = Ye);
1587
+ var Ze = I(j, Ye);
1588
+ Ze && e.isString(Ze) && (C = Ze);
1589
1589
  }
1590
- var Se = e.getFetchSnapshot(g, Xe, ue);
1591
- j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, S, C, L, Se, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, S, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1590
+ var Se = e.getFetchSnapshot(g, Ye, ue);
1591
+ j.ok ? s(l, v.parseResponse, b, y, Ye, j.status || 200, ze, S, C, L, Se, R, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, S, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
1594
1594
  }));
1595
1595
  }), J;
1596
- } catch (Xe) {
1597
- return e.warn("[ARMS] fetch response error :", Xe), J;
1596
+ } catch (Ye) {
1597
+ return e.warn("[ARMS] fetch response error :", Ye), J;
1598
1598
  }
1599
1599
  }).catch(function(J) {
1600
1600
  if (!l || !l.api)
@@ -1690,7 +1690,7 @@ function eo() {
1690
1690
  var ks, Bs;
1691
1691
  function to() {
1692
1692
  return Bs || (Bs = 1, ks = function(r, n) {
1693
- var e = Ne(), t = n.history || {}, i = n.document, s = function(c, o) {
1693
+ var e = Fe(), t = n.history || {}, i = n.document, s = function(c, o) {
1694
1694
  var u;
1695
1695
  n.CustomEvent ? u = new CustomEvent(c, {
1696
1696
  detail: o
@@ -1722,7 +1722,7 @@ function io() {
1722
1722
  if (Ms)
1723
1723
  return Wi;
1724
1724
  Ms = 1;
1725
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1725
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1726
1726
  return Wi = function(t, i) {
1727
1727
  function s(o, u, h) {
1728
1728
  if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
@@ -1844,7 +1844,7 @@ function ro() {
1844
1844
  if (Ls)
1845
1845
  return Bi.exports;
1846
1846
  Ls = 1;
1847
- var r = Ne(), n = Kn(), e = qn(), t = Jn(), i = r.win, s = i.document, a = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1847
+ var r = Fe(), n = Kn(), e = qn(), t = Jn(), i = r.win, s = i.document, a = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1848
1848
  var u = this;
1849
1849
  return n.call(u, o), u._initialPage = o.page && r.safetyCall(o.page, [], o.page + "") || null, u._isRobot = r.isRobot(), u._health = {
1850
1850
  errcount: 0,
@@ -1999,7 +1999,7 @@ function so() {
1999
1999
  var c = {}, o = [];
2000
2000
  return i in e && (c = e[i].config || {}, o = e[i].pipe || []), r(c, o);
2001
2001
  }
2002
- var e = window, t = e.BrowserLogger = ro(), i = Ne().key, s = "__hasInitBlSdk";
2002
+ var e = window, t = e.BrowserLogger = ro(), i = Fe().key, s = "__hasInitBlSdk";
2003
2003
  t.singleton = function(c, o) {
2004
2004
  return e[s] ? e[i] : r(c, o);
2005
2005
  }, t.createExtraInstance = function(c) {
@@ -2226,7 +2226,7 @@ class jr {
2226
2226
  this.isDestroyed = !0;
2227
2227
  }
2228
2228
  }
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 = [];
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 || {}), Ne = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Ne || {}), 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) {
@@ -2256,8 +2256,8 @@ function at(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.6-beta.0", Ks = "web";
2260
- class Ue {
2259
+ const yi = "6.13.6-beta.2", Ks = "web";
2260
+ class He {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
2263
2263
  */
@@ -2360,7 +2360,7 @@ class Ue {
2360
2360
  let e = "";
2361
2361
  for (let t = 0; t < n.length; t++) {
2362
2362
  e !== "" && (e += " ");
2363
- let i = Ue.toString(n[t]);
2363
+ let i = He.toString(n[t]);
2364
2364
  e += i;
2365
2365
  }
2366
2366
  return e;
@@ -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, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
- var Ce, Ze, Ct = d[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, Ve = B, ze = $, Ye = q, Ze = G, Se = ae, Pe = Q, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
+ var Ce, Qe, Ct = d[ke];
3859
3859
  if (ke < 16)
3860
- Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3860
+ Qe = 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, 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
- 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;
3862
+ var lt = d[ke - 15], et = lt.high, ot = lt.low, Di = (et >>> 1 | ot << 31) ^ (et >>> 8 | ot << 24) ^ et >>> 7, oi = (ot >>> 1 | et << 31) ^ (ot >>> 8 | et << 24) ^ (ot >>> 7 | et << 25), ci = d[ke - 2], We = ci.high, ft = ci.low, ui = (We >>> 19 | ft << 13) ^ (We << 3 | ft >>> 29) ^ We >>> 6, Gt = (ft >>> 19 | We << 13) ^ (ft << 3 | We >>> 29) ^ (ft >>> 6 | We << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3863
+ Ce = oi + Rn, Qe = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Qe = Qe + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Qe = Qe + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Qe, Ct.low = Ce;
3864
3864
  }
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;
3865
+ var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, 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, $e = _t + Mn, pt = Jt + Bn + ($e >>> 0 < _t >>> 0 ? 1 : 0), $e = $e + os, pt = pt + Dn + ($e >>> 0 < os >>> 0 ? 1 : 0), $e = $e + hs, pt = pt + Ln + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + Ce, pt = pt + Qe + ($e >>> 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 = Ze + $e | 0, Se = Ye + pt + (Pe >>> 0 < Ze >>> 0 ? 1 : 0) | 0, Ye = Ve, Ze = ze, Ve = ue, ze = X, ue = J, X = j, j = $e + ds | 0, J = pt + Nn + (j >>> 0 < $e >>> 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 + 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);
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 = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), G = y.low = G + Ze, y.high = q + Ye + (G >>> 0 < Ze >>> 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;
@@ -7668,67 +7668,67 @@ function Jr(r, n, e, t) {
7668
7668
  }, v = { d: function() {
7669
7669
  return a();
7670
7670
  }, dd: function() {
7671
- return $e(a());
7671
+ return Ke(a());
7672
7672
  }, ddd: function() {
7673
- return Ve.dayNames[c()];
7673
+ return Oe.dayNames[c()];
7674
7674
  }, DDD: function() {
7675
- return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Ve.dayNames[c()], short: !0 });
7675
+ return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
7676
7676
  }, dddd: function() {
7677
- return Ve.dayNames[c() + 7];
7677
+ return Oe.dayNames[c() + 7];
7678
7678
  }, DDDD: function() {
7679
- return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Ve.dayNames[c() + 7] });
7679
+ return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Oe.dayNames[c() + 7] });
7680
7680
  }, m: function() {
7681
7681
  return o() + 1;
7682
7682
  }, mm: function() {
7683
- return $e(o() + 1);
7683
+ return Ke(o() + 1);
7684
7684
  }, mmm: function() {
7685
- return Ve.monthNames[o()];
7685
+ return Oe.monthNames[o()];
7686
7686
  }, mmmm: function() {
7687
- return Ve.monthNames[o() + 12];
7687
+ return Oe.monthNames[o() + 12];
7688
7688
  }, yy: function() {
7689
7689
  return String(u()).slice(2);
7690
7690
  }, yyyy: function() {
7691
- return $e(u(), 4);
7691
+ return Ke(u(), 4);
7692
7692
  }, h: function() {
7693
7693
  return h() % 12 || 12;
7694
7694
  }, hh: function() {
7695
- return $e(h() % 12 || 12);
7695
+ return Ke(h() % 12 || 12);
7696
7696
  }, H: function() {
7697
7697
  return h();
7698
7698
  }, HH: function() {
7699
- return $e(h());
7699
+ return Ke(h());
7700
7700
  }, M: function() {
7701
7701
  return p();
7702
7702
  }, MM: function() {
7703
- return $e(p());
7703
+ return Ke(p());
7704
7704
  }, s: function() {
7705
7705
  return d();
7706
7706
  }, ss: function() {
7707
- return $e(d());
7707
+ return Ke(d());
7708
7708
  }, l: function() {
7709
- return $e(f(), 3);
7709
+ return Ke(f(), 3);
7710
7710
  }, L: function() {
7711
- return $e(Math.floor(f() / 10));
7711
+ return Ke(Math.floor(f() / 10));
7712
7712
  }, t: function() {
7713
- return h() < 12 ? Ve.timeNames[0] : Ve.timeNames[1];
7713
+ return h() < 12 ? Oe.timeNames[0] : Oe.timeNames[1];
7714
7714
  }, tt: function() {
7715
- return h() < 12 ? Ve.timeNames[2] : Ve.timeNames[3];
7715
+ return h() < 12 ? Oe.timeNames[2] : Oe.timeNames[3];
7716
7716
  }, T: function() {
7717
- return h() < 12 ? Ve.timeNames[4] : Ve.timeNames[5];
7717
+ return h() < 12 ? Oe.timeNames[4] : Oe.timeNames[5];
7718
7718
  }, TT: function() {
7719
- return h() < 12 ? Ve.timeNames[6] : Ve.timeNames[7];
7719
+ return h() < 12 ? Oe.timeNames[6] : Oe.timeNames[7];
7720
7720
  }, Z: function() {
7721
7721
  return t ? "GMT" : e ? "UTC" : d0(r);
7722
7722
  }, o: function() {
7723
- return (g() > 0 ? "-" : "+") + $e(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7723
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7724
7724
  }, p: function() {
7725
- return (g() > 0 ? "-" : "+") + $e(Math.floor(Math.abs(g()) / 60), 2) + ":" + $e(Math.floor(Math.abs(g()) % 60), 2);
7725
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(g()) % 60), 2);
7726
7726
  }, S: function() {
7727
7727
  return ["th", "st", "nd", "rd"][a() % 10 > 3 ? 0 : (a() % 100 - a() % 10 != 10) * a() % 10];
7728
7728
  }, W: function() {
7729
7729
  return l();
7730
7730
  }, WW: function() {
7731
- return $e(l());
7731
+ return Ke(l());
7732
7732
  }, N: function() {
7733
7733
  return S();
7734
7734
  } };
@@ -7736,7 +7736,7 @@ function Jr(r, n, e, t) {
7736
7736
  return x in v ? v[x]() : x.slice(1, x.length - 1);
7737
7737
  });
7738
7738
  }
7739
- var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Ve = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, $e = function(n) {
7739
+ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(n) {
7740
7740
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
7741
7741
  return String(n).padStart(e, "0");
7742
7742
  }, Pa = function(n) {
@@ -8052,7 +8052,7 @@ class y0 {
8052
8052
  m(this, "logMethod", (n, e = console.log) => (...t) => {
8053
8053
  let i = wr();
8054
8054
  this.logLevel <= n && e(i, ...t);
8055
- let s = Ue.paramArrayToString(t);
8055
+ let s = He.paramArrayToString(t);
8056
8056
  n > 0 && this.addLog(s);
8057
8057
  });
8058
8058
  // debug level message
@@ -8241,7 +8241,7 @@ class y0 {
8241
8241
  !this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= b0 && this.logCache.shift()) : this.sendLog(i);
8242
8242
  }
8243
8243
  }
8244
- class H {
8244
+ class O {
8245
8245
  static getLogger() {
8246
8246
  return this.logger || (this.logger = new y0()), this.logger;
8247
8247
  }
@@ -8286,7 +8286,7 @@ class H {
8286
8286
  this.getLogger().e("[ERR]", ...n);
8287
8287
  }
8288
8288
  }
8289
- m(H, "logger");
8289
+ m(O, "logger");
8290
8290
  const E0 = (r) => w(void 0, null, function* () {
8291
8291
  const n = new oe.SupportUtil();
8292
8292
  let e = {
@@ -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 || {}), 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 || {});
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 || {}), Ue = /* @__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))(Ue || {});
8405
8405
  const I0 = {
8406
8406
  0: "/libra/v1/sdk/start-task",
8407
8407
  1: "/libra/v1/sdk/update-task",
@@ -8431,7 +8431,7 @@ class fn {
8431
8431
  this.videoWidth = n, this.videoHeight = e, t && (this.videoFramerate = t), i && (this.videoBitrate = i), s && (this.videoGop = s), a && (this.audioSamplerate = a), c && (this.audioBitrate = c), o && (this.audioChannels = o);
8432
8432
  }
8433
8433
  }
8434
- const Zr = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Je = (r = 0, n) => {
8434
+ const Zr = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ge = (r = 0, n) => {
8435
8435
  if (n == 0)
8436
8436
  return 0;
8437
8437
  let e = r / n;
@@ -8452,9 +8452,9 @@ class Br {
8452
8452
  appid: e.appId,
8453
8453
  channelid: e.channelId
8454
8454
  };
8455
- if (n === Oe.MPU_TASK_TRANSACTION_POLLING || n === Oe.MPU_TASK_TRANSACTION_LIST || n === Oe.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
8456
- return n === Oe.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (a.messageid = s), a;
8457
- if (a.taskid = t, n !== Oe.MPU_TASK_TRANSACTION_STOP) {
8455
+ if (n === Ue.MPU_TASK_TRANSACTION_POLLING || n === Ue.MPU_TASK_TRANSACTION_LIST || n === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
8456
+ return n === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (a.messageid = s), a;
8457
+ if (a.taskid = t, n !== Ue.MPU_TASK_TRANSACTION_STOP) {
8458
8458
  if (a.mixmode = this.mixMode, i && (a.streamurl = i), this.mixMode === Si.LiveTranscodingSingle) {
8459
8459
  const c = this.singleParam;
8460
8460
  if (c) {
@@ -8462,7 +8462,7 @@ class Br {
8462
8462
  const o = [];
8463
8463
  c.userId && o.push(c.userId), a.subspecusers = o;
8464
8464
  }
8465
- } else if (n === Oe.MPU_TASK_TRANSACTION_START || n === Oe.MPU_TASK_TRANSACTION_UPDATE) {
8465
+ } else if (n === Ue.MPU_TASK_TRANSACTION_START || n === Ue.MPU_TASK_TRANSACTION_UPDATE) {
8466
8466
  const c = this.mixParam;
8467
8467
  if (c) {
8468
8468
  c.taskProfile && (a.taskprofile = C0[c.taskProfile]);
@@ -8548,7 +8548,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8548
8548
  * @param event
8549
8549
  */
8550
8550
  onOpen(e) {
8551
- H.info(`[${jt.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8551
+ O.info(`[${jt.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8552
8552
  }
8553
8553
  /**
8554
8554
  * 收到消息
@@ -8562,7 +8562,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8562
8562
  * @param event
8563
8563
  */
8564
8564
  onError(e) {
8565
- this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && Ue.isNetworkAvailable().then((t) => {
8565
+ this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && He.isNetworkAvailable().then((t) => {
8566
8566
  t && console.error(jt.logName, "onError, Network is available, token may be invalid");
8567
8567
  });
8568
8568
  }
@@ -8576,10 +8576,10 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8576
8576
  this.socketStatus = 0;
8577
8577
  return;
8578
8578
  }
8579
- if (H.info(
8579
+ if (O.info(
8580
8580
  `[${jt.logName}]`,
8581
8581
  `onClose, code: ${e.code}, reason: ${e.reason}, status: ${status}, retryCount: ${this.connectRetryCount}`
8582
- ), (yield Ue.isNetworkAvailable()) && !this.networkAvailableChecked) {
8582
+ ), (yield He.isNetworkAvailable()) && !this.networkAvailableChecked) {
8583
8583
  this.reconnect(), this.networkAvailableChecked = !0;
8584
8584
  return;
8585
8585
  } else
@@ -8646,7 +8646,7 @@ class R0 {
8646
8646
  "joinchannel"
8647
8647
  /* JOINCHANNEL */
8648
8648
  );
8649
- return n.header.displayName = this.userName, n.header.clientversion = Ue.getVersionNumber().toString(), n.header.platform = Ks, this.roleAuth && (n.data.auth = this.roleAuth), n;
8649
+ return n.header.displayName = this.userName, n.header.clientversion = He.getVersionNumber().toString(), n.header.platform = Ks, this.roleAuth && (n.data.auth = this.roleAuth), n;
8650
8650
  }
8651
8651
  /**
8652
8652
  * 创建一个用于发送离会消息的Package
@@ -8688,7 +8688,7 @@ class R0 {
8688
8688
  "reconnect"
8689
8689
  /* RECONNECT */
8690
8690
  );
8691
- return e.header.displayName = this.userName, e.header.clientversion = Ue.getVersionNumber().toString(), e.header.platform = Ks, e.data = Y(Y({}, e.data), n != null ? n : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8691
+ return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Ks, e.data = Y(Y({}, e.data), n != null ? n : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8692
8692
  }
8693
8693
  createRefreshUrlPackage() {
8694
8694
  let n = this.createBaseSendPackage(
@@ -8734,7 +8734,7 @@ class R0 {
8734
8734
  };
8735
8735
  }
8736
8736
  }
8737
- var O = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(O || {});
8737
+ var U = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(U || {});
8738
8738
  class V extends Error {
8739
8739
  constructor(e, t, i) {
8740
8740
  super(t);
@@ -8761,7 +8761,7 @@ class V extends Error {
8761
8761
  return this._extra;
8762
8762
  }
8763
8763
  }
8764
- const w0 = 3e4, Ke = class Ke extends we {
8764
+ const w0 = 3e4, qe = class qe extends we {
8765
8765
  // 发送重连信令时,房间信令凭这些信息找回 session
8766
8766
  constructor(e, t, i, s, a, c) {
8767
8767
  super();
@@ -8875,7 +8875,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8875
8875
  * 关闭websocket连接,并销毁
8876
8876
  */
8877
8877
  close() {
8878
- H.info(`[${Ke.logName}] close`), this.stopKeepAlive(), this.wsClient.off("onOpen", this.onOpen.bind(this)), this.wsClient.off("onMessage", this.onMessage.bind(this)), this.wsClient.off("onError", this.onError.bind(this)), this.wsClient.off("onClose", this.onClose.bind(this)), this.wsClient.off("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.off("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.off("onReconnectStart"), this.wsClient.off("onReconnectFail"), this.wsClient.close();
8878
+ O.info(`[${qe.logName}] close`), this.stopKeepAlive(), this.wsClient.off("onOpen", this.onOpen.bind(this)), this.wsClient.off("onMessage", this.onMessage.bind(this)), this.wsClient.off("onError", this.onError.bind(this)), this.wsClient.off("onClose", this.onClose.bind(this)), this.wsClient.off("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.off("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.off("onReconnectStart"), this.wsClient.off("onReconnectFail"), this.wsClient.close();
8879
8879
  }
8880
8880
  /**
8881
8881
  * 通过此方法发送数据到业务信令
@@ -8898,7 +8898,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8898
8898
  * ws连接建立成功后立刻发送join消息
8899
8899
  */
8900
8900
  onOpen() {
8901
- if (H.info(`[${Ke.logName}] onOpen`), this.isFirstConnect) {
8901
+ if (O.info(`[${qe.logName}] onOpen`), this.isFirstConnect) {
8902
8902
  let e = this.packageCreater.createJoinPackage();
8903
8903
  e.data.configure = {
8904
8904
  channelprofile: this.channelProfile
@@ -8918,7 +8918,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8918
8918
  let t = JSON.parse(e.data);
8919
8919
  this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== ve.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
8920
8920
  } catch (t) {
8921
- H.warn(`[${Ke.logName}] onMessage err`, t, e);
8921
+ O.warn(`[${qe.logName}] onMessage err`, t, e);
8922
8922
  }
8923
8923
  }
8924
8924
  /**
@@ -8926,28 +8926,28 @@ const w0 = 3e4, Ke = class Ke extends we {
8926
8926
  * @param event
8927
8927
  */
8928
8928
  onError(e) {
8929
- H.warn(`[${Ke.logName}] onError`, e), this.isFirstConnect && this.onConnectFail();
8929
+ O.warn(`[${qe.logName}] onError`, e), this.isFirstConnect && this.onConnectFail();
8930
8930
  }
8931
8931
  /**
8932
8932
  * 连接失败
8933
8933
  */
8934
8934
  onConnectFail() {
8935
- H.warn(`[${Ke.logName}] onConnectFail`);
8936
- const e = new V(O.ERR_INNER, "Signaling connect failed.");
8935
+ O.warn(`[${qe.logName}] onConnectFail`);
8936
+ const e = new V(U.ERR_INNER, "Signaling connect failed.");
8937
8937
  this.isFirstConnect ? this.emit("onJoinChannelResult", e) : this.emit("onConnectFail", e);
8938
8938
  }
8939
8939
  /**
8940
8940
  * 鉴权失败
8941
8941
  */
8942
8942
  onAuthInvalid() {
8943
- H.warn(`[${Ke.logName}] onAuthInvalid`), this.isFirstConnect && this.emit("onAuthInvalid");
8943
+ O.warn(`[${qe.logName}] onAuthInvalid`), this.isFirstConnect && this.emit("onAuthInvalid");
8944
8944
  }
8945
8945
  /**
8946
8946
  * 网络异常
8947
8947
  */
8948
8948
  onNetworkError() {
8949
- H.warn(`[${Ke.logName}] onNetworkError`);
8950
- const e = new V(O.ERR_INNER, "Network error, signaling connect failed.");
8949
+ O.warn(`[${qe.logName}] onNetworkError`);
8950
+ const e = new V(U.ERR_INNER, "Network error, signaling connect failed.");
8951
8951
  this.emit("onNetworkError", e);
8952
8952
  }
8953
8953
  /**
@@ -8955,7 +8955,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8955
8955
  * @param event
8956
8956
  */
8957
8957
  onClose(e) {
8958
- H.info(`[${Ke.logName}] onClose`, e), this.stopKeepAlive();
8958
+ O.info(`[${qe.logName}] onClose`, e), this.stopKeepAlive();
8959
8959
  }
8960
8960
  onKeepAliveRsp() {
8961
8961
  this.emit("onKeepAliveRsp"), this.checkAlive();
@@ -8964,14 +8964,14 @@ const w0 = 3e4, Ke = class Ke extends we {
8964
8964
  this.emit("onReconnectStart");
8965
8965
  }
8966
8966
  onReconnectFail() {
8967
- this.emit("onReconnectFail", new V(O.ERR_INNER, "signaling reconnect failed."));
8967
+ this.emit("onReconnectFail", new V(U.ERR_INNER, "signaling reconnect failed."));
8968
8968
  }
8969
8969
  /**
8970
8970
  * 处理 Keepalive 心跳,加速判断网络异常
8971
8971
  */
8972
8972
  checkAlive() {
8973
8973
  window.clearTimeout(this.aliveChecker), this.aliveChecker = window.setTimeout(() => {
8974
- H.info(`[${Ke.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
8974
+ O.info(`[${qe.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
8975
8975
  }, w0);
8976
8976
  }
8977
8977
  /**
@@ -8979,7 +8979,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8979
8979
  * @param response
8980
8980
  */
8981
8981
  onRecvMessage(e) {
8982
- switch (e.msgtype !== ve.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8982
+ switch (e.msgtype !== ve.KEEPALIVE && O.info(`[${qe.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
8983
  case ve.JOINCHANNEL:
8984
8984
  this.onJoinResult(e);
8985
8985
  break;
@@ -9065,7 +9065,7 @@ const w0 = 3e4, Ke = class Ke extends we {
9065
9065
  this.sendPkgCache(), this.startKeepAlive(), this.emit("onReconnectSuccess", e.data.users);
9066
9066
  else {
9067
9067
  const t = new V(
9068
- O.ERR_INNER,
9068
+ U.ERR_INNER,
9069
9069
  `reconnect failed, code: ${e.code};description: ${e.description}`
9070
9070
  );
9071
9071
  e.code === 403 && (t.code = 403), this.emit("onReconnectFail", t), this.close();
@@ -9118,8 +9118,8 @@ const w0 = 3e4, Ke = class Ke extends we {
9118
9118
  this.stopKeepAlive(), this.emit("onBye", e.reason, e.description);
9119
9119
  }
9120
9120
  };
9121
- m(Ke, "logName", "RSMessageCenter");
9122
- let Lr = Ke;
9121
+ m(qe, "logName", "RSMessageCenter");
9122
+ let Lr = qe;
9123
9123
  const D = (r, n) => (e, t, i) => {
9124
9124
  const s = i.value;
9125
9125
  return i.value = function(...a) {
@@ -9131,7 +9131,7 @@ const D = (r, n) => (e, t, i) => {
9131
9131
  u = r(a);
9132
9132
  } catch (d) {
9133
9133
  }
9134
- H.interface(c, t, ...u);
9134
+ O.interface(c, t, ...u);
9135
9135
  const h = s.apply(this, a);
9136
9136
  return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
9137
9137
  var S;
@@ -9152,7 +9152,7 @@ const D = (r, n) => (e, t, i) => {
9152
9152
  }
9153
9153
  else
9154
9154
  return;
9155
- H.interfaceResult(
9155
+ O.interfaceResult(
9156
9156
  c,
9157
9157
  t,
9158
9158
  !(g && l),
@@ -9162,7 +9162,7 @@ const D = (r, n) => (e, t, i) => {
9162
9162
  }
9163
9163
  }), h;
9164
9164
  }, i;
9165
- }, U = (r) => r;
9165
+ }, H = (r) => r;
9166
9166
  var D0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, es = (r, n, e, t) => {
9167
9167
  for (var i = t > 1 ? void 0 : t ? T0(n, e) : n, s = r.length - 1, a; s >= 0; s--)
9168
9168
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
@@ -9201,7 +9201,7 @@ const Ci = (Be = class extends we {
9201
9201
  * 释放资源
9202
9202
  */
9203
9203
  reset() {
9204
- H.info("[roomsig] reset"), this.messageCenter && (this.messageCenter.close(), this.messageCenter = void 0), this.authInfo = void 0;
9204
+ O.info("[roomsig] reset"), this.messageCenter && (this.messageCenter.close(), this.messageCenter = void 0), this.authInfo = void 0;
9205
9205
  }
9206
9206
  join(e, t, i) {
9207
9207
  return w(this, null, function* () {
@@ -9216,15 +9216,15 @@ const Ci = (Be = class extends we {
9216
9216
  i
9217
9217
  ), this.initMessageCenter(), this.messageCenter.once("onJoinChannelResult", (u) => {
9218
9218
  var h, p, d;
9219
- if (H.info(`[${Be.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
9219
+ if (O.info(`[${Be.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
9220
9220
  (p = this.messageCenter) == null || p.sendPkgCache(), (d = this.messageCenter) == null || d.startKeepAlive();
9221
9221
  let f = u.data;
9222
9222
  f.tid = u.tid, f.users = u.data.users, f.timestamp = u.timestamp, c.est && (c.joinconnecttc = Date.now() - c.est), this.slsReporter.reportJoinConnection(c), s(f);
9223
9223
  } else
9224
- this.reset(), a(this.handleSignalError(u.code, u.reason, O.ERR_JOIN_CHANNEL_FAILED));
9224
+ this.reset(), a(this.handleSignalError(u.code, u.reason, U.ERR_JOIN_CHANNEL_FAILED));
9225
9225
  }), this.messageCenter.once("onAuthInvalid", () => {
9226
- this.reset(), a(new V(O.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9227
- }), H.info(
9226
+ this.reset(), a(new V(U.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9227
+ }), O.info(
9228
9228
  `[${Be.logName}]`,
9229
9229
  "start ws connecting roomserver and auto join when connected"
9230
9230
  );
@@ -9239,7 +9239,7 @@ const Ci = (Be = class extends we {
9239
9239
  authtype: "app",
9240
9240
  tid: at()
9241
9241
  };
9242
- e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + Ue.queryingParam(o));
9242
+ e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + He.queryingParam(o));
9243
9243
  });
9244
9244
  });
9245
9245
  }
@@ -9248,22 +9248,22 @@ const Ci = (Be = class extends we {
9248
9248
  * @returns
9249
9249
  */
9250
9250
  leave() {
9251
- return H.info("[roomsig] leave .."), new Promise((e, t) => {
9251
+ return O.info("[roomsig] leave .."), new Promise((e, t) => {
9252
9252
  this.messageCenter ? (this.messageCenter.on("onLeaveResult", (i, s) => {
9253
- H.info(`[${Be.logName}]`, "recv leave response " + i), i === 200 ? (this.updateReconnectData(), this.reset(), e({ tid: s })) : t(this.handleSignalError(i, "leave error"));
9254
- }), H.info(`[${Be.logName}]`, "send leave request"), this.messageCenter.leave()) : (H.info(`[${Be.logName}]`, "no message center, ok to leave"), e({ tid: "" }));
9253
+ O.info(`[${Be.logName}]`, "recv leave response " + i), i === 200 ? (this.updateReconnectData(), this.reset(), e({ tid: s })) : t(this.handleSignalError(i, "leave error"));
9254
+ }), O.info(`[${Be.logName}]`, "send leave request"), this.messageCenter.leave()) : (O.info(`[${Be.logName}]`, "no message center, ok to leave"), e({ tid: "" }));
9255
9255
  });
9256
9256
  }
9257
9257
  publish(e) {
9258
9258
  return new Promise((t, i) => {
9259
9259
  var s;
9260
9260
  this.messageCenter ? (this.messageCenter.once("onPublishResult", (a, c, o) => {
9261
- H.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9261
+ O.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9262
9262
  publish: {
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 = at()), H.info(
9266
+ }), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = at()), O.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"));
@@ -9277,7 +9277,7 @@ const Ci = (Be = class extends we {
9277
9277
  }
9278
9278
  this.messageCenter.on("onRoleUpdateResult", (s, a, c) => {
9279
9279
  var o, u;
9280
- H.info(`[${Be.logName}]`, "recv role update response " + s), s === 200 ? ((u = (o = this.reconnectData) == null ? void 0 : o.role) != null && u.clientrole && (this.reconnectData.role.clientrole = e, this.updateReconnectData(this.reconnectData)), t({ tid: a })) : i(this.handleSignalError(s, `role update error, ${c}`));
9280
+ O.info(`[${Be.logName}]`, "recv role update response " + s), s === 200 ? ((u = (o = this.reconnectData) == null ? void 0 : o.role) != null && u.clientrole && (this.reconnectData.role.clientrole = e, this.updateReconnectData(this.reconnectData)), t({ tid: a })) : i(this.handleSignalError(s, `role update error, ${c}`));
9281
9281
  }), this.messageCenter.roleUpdate(e);
9282
9282
  });
9283
9283
  }
@@ -9288,15 +9288,15 @@ const Ci = (Be = class extends we {
9288
9288
  * 更新推流地址
9289
9289
  */
9290
9290
  refreshUrl(e) {
9291
- return H.info(`[${Be.logName}]`, "refreshUrl .."), new Promise((t, i) => {
9291
+ return O.info(`[${Be.logName}]`, "refreshUrl .."), new Promise((t, i) => {
9292
9292
  if (!this.messageCenter) {
9293
9293
  i(this.handleSignalError(-1, "refresh url error, no message center"));
9294
9294
  return;
9295
9295
  }
9296
9296
  this.messageCenter.on("onRefreshUrlResult", (s) => {
9297
9297
  const { code: a, description: c, data: o = {} } = s || {};
9298
- H.info("recv refresh url response " + a), a === 200 ? t(o) : i(this.handleSignalError(a, `refresh url error, ${c}`));
9299
- }), H.info("send refresh url request"), this.messageCenter.refreshUrl(e);
9298
+ O.info("recv refresh url response " + a), a === 200 ? t(o) : i(this.handleSignalError(a, `refresh url error, ${c}`));
9299
+ }), O.info("send refresh url request"), this.messageCenter.refreshUrl(e);
9300
9300
  });
9301
9301
  }
9302
9302
  /**
@@ -9304,13 +9304,13 @@ const Ci = (Be = class extends we {
9304
9304
  * @param status
9305
9305
  */
9306
9306
  reportStatus(e) {
9307
- return H.info(`[${Be.logName}]`, "reportStatus " + e), new Promise((t, i) => {
9307
+ return O.info(`[${Be.logName}]`, "reportStatus " + e), new Promise((t, i) => {
9308
9308
  this.messageCenter ? (this.messageCenter.once("onStatusReport", (s, a) => {
9309
9309
  s === 200 ? t() : i(new V(s, a));
9310
9310
  }), this.messageCenter.reportStatus(e)) : i(new V(-1, "No messageCenter"));
9311
9311
  });
9312
9312
  }
9313
- handleSignalError(e, t, i = O.ERR_INNER) {
9313
+ handleSignalError(e, t, i = U.ERR_INNER) {
9314
9314
  const s = `signal error: code - ${e}; description - ${t}`;
9315
9315
  return new V(i, s);
9316
9316
  }
@@ -9385,12 +9385,12 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
9385
9385
  var g, l;
9386
9386
  if (f.code === 0) {
9387
9387
  const S = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
9388
- this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), H.event(`[${ti.logName}]`, "getToken", S, v);
9388
+ this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), O.event(`[${ti.logName}]`, "getToken", S, v);
9389
9389
  } else
9390
9390
  throw new Error();
9391
9391
  this.slsReporter.reportSTSResult(200, d);
9392
9392
  }).catch((f) => {
9393
- this.slsReporter.reportSTSResult(-1, d), H.error(`[${ti.logName}]`, "getToken", f.message);
9393
+ this.slsReporter.reportSTSResult(-1, d), O.error(`[${ti.logName}]`, "getToken", f.message);
9394
9394
  });
9395
9395
  }));
9396
9396
  this.slsReporter = e, this.env = t;
@@ -9434,7 +9434,7 @@ class ts extends we {
9434
9434
  }
9435
9435
  reset() {
9436
9436
  var e;
9437
- H.info("[signalingmanager] reset"), (e = this.signaling) == null || e.reset(), this.stsManager.clear(), this.signaling = void 0, this.authInfo = void 0;
9437
+ O.info("[signalingmanager] reset"), (e = this.signaling) == null || e.reset(), this.stsManager.clear(), this.signaling = void 0, this.authInfo = void 0;
9438
9438
  }
9439
9439
  /**
9440
9440
  * 向业务信令发送入会
@@ -9443,7 +9443,7 @@ class ts extends we {
9443
9443
  */
9444
9444
  join(e, t = e.userId, i, s) {
9445
9445
  return this.maxConnectRetryCount = i, this.userName = t, new Promise((a, c) => {
9446
- this.signaling ? c(new V(O.ERR_JOIN_ALREADY_JOINED, "already joined")) : (H.info("[signalingmanager] create signaling"), this.signaling = new P0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9446
+ this.signaling ? c(new V(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new P0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9447
9447
  this.authInfo = e, s && (s.re = Date.now()), a(o);
9448
9448
  }).catch((o) => {
9449
9449
  this.reset(), c(o);
@@ -9474,7 +9474,7 @@ class ts extends we {
9474
9474
  t(a);
9475
9475
  }).catch((a) => {
9476
9476
  i(a);
9477
- })) : i(new V(O.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9477
+ })) : i(new V(U.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9478
9478
  });
9479
9479
  }
9480
9480
  /**
@@ -9525,7 +9525,7 @@ class ts extends we {
9525
9525
  * @returns
9526
9526
  */
9527
9527
  refreshUrl(e) {
9528
- return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(O.ERR_SDK_INVALID_STATE, "should join first"));
9528
+ return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(U.ERR_SDK_INVALID_STATE, "should join first"));
9529
9529
  }
9530
9530
  refreshAuthInfo(e) {
9531
9531
  return w(this, null, function* () {
@@ -9636,7 +9636,7 @@ class ts extends we {
9636
9636
  */
9637
9637
  m(ts, "logName", "SignalingManager");
9638
9638
  F0([
9639
- D(U)
9639
+ D(H)
9640
9640
  ], ts.prototype, "publish", 1);
9641
9641
  const Tt = class Tt {
9642
9642
  static getInstance() {
@@ -9723,7 +9723,7 @@ class pn extends we {
9723
9723
  return this.name;
9724
9724
  }
9725
9725
  createCallId() {
9726
- this.callId || (this.callId = Ue.createCallid());
9726
+ this.callId || (this.callId = He.createCallid());
9727
9727
  }
9728
9728
  setUserInfo(e, t) {
9729
9729
  this.uid = e, this.name = t;
@@ -9815,11 +9815,11 @@ function Va(r) {
9815
9815
  if (e) {
9816
9816
  if (e.nodeName.toLocaleLowerCase() === "video")
9817
9817
  return e.setAttribute("playsinline", ""), e;
9818
- throw new V(O.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9818
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9819
9819
  } else
9820
- throw new V(O.ERR_INVALID_ARGUMENTS, "element not founded");
9820
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element not founded");
9821
9821
  } else
9822
- throw new V(O.ERR_INVALID_ARGUMENTS, "element id should be string");
9822
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element id should be string");
9823
9823
  }
9824
9824
  function Fr(r) {
9825
9825
  var e;
@@ -9886,7 +9886,7 @@ const Sn = (r, n, e = !1) => {
9886
9886
  i(t());
9887
9887
  }, 0);
9888
9888
  });
9889
- }, tt = (r) => {
9889
+ }, it = (r) => {
9890
9890
  Promise.race([vt(100), r._playPromise || Promise.resolve()]).catch(() => {
9891
9891
  }).then(() => {
9892
9892
  r.srcObject = null, r._playPromise = void 0;
@@ -10238,7 +10238,7 @@ const ge = (ht = class extends pn {
10238
10238
  this.streamManager.publishLocalScreenStreamEnabled = e;
10239
10239
  }
10240
10240
  initInfo(e, t) {
10241
- this.joinTime = Date.now(), this.rtsManager.localJoinTime = this.joinTime, this.setUserInfo(e.userId, e.userId), this.url = t, this.callId = e.sessionId || Ue.createCallid(), this.updatePubId();
10241
+ this.joinTime = Date.now(), this.rtsManager.localJoinTime = this.joinTime, this.setUserInfo(e.userId, e.userId), this.url = t, this.callId = e.sessionId || He.createCallid(), this.updatePubId();
10242
10242
  }
10243
10243
  setVideoProfile(e, t) {
10244
10244
  return w(this, null, function* () {
@@ -10271,7 +10271,7 @@ const ge = (ht = class extends pn {
10271
10271
  facingMode: "environment"
10272
10272
  });
10273
10273
  else
10274
- throw new V(O.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10274
+ throw new V(U.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10275
10275
  }
10276
10276
  setCameraDeviceId(e) {
10277
10277
  this.streamManager.setCameraVideoConstraints({
@@ -10310,7 +10310,7 @@ const ge = (ht = class extends pn {
10310
10310
  });
10311
10311
  }
10312
10312
  resetElement(e) {
10313
- this.previewElements.includes(e) && (tt(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (tt(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
10313
+ this.previewElements.includes(e) && (it(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (it(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
10314
10314
  }
10315
10315
  setPreviewElement(e) {
10316
10316
  const { videoElement: t, screen: i } = e;
@@ -10324,10 +10324,10 @@ const ge = (ht = class extends pn {
10324
10324
  try {
10325
10325
  a = yield oe.getCameraList(), a.length && (yield this.startCameraCapture());
10326
10326
  } catch (c) {
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}`);
10327
+ throw c.code === oe.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(U.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(U.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
10328
10328
  }
10329
10329
  if (!a.length)
10330
- throw new V(O.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
10330
+ throw new V(U.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
10331
10331
  }
10332
10332
  });
10333
10333
  }
@@ -10339,10 +10339,10 @@ const ge = (ht = class extends pn {
10339
10339
  try {
10340
10340
  s = yield oe.getMicList(), s.length && (yield this.startAudioCapture());
10341
10341
  } catch (a) {
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}`);
10342
+ throw a.code === oe.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(U.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(U.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
10343
10343
  }
10344
10344
  if (!s.length)
10345
- throw new V(O.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
10345
+ throw new V(U.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
10346
10346
  }
10347
10347
  });
10348
10348
  }
@@ -10358,7 +10358,7 @@ const ge = (ht = class extends pn {
10358
10358
  return;
10359
10359
  }
10360
10360
  if (![se.AliRtcVideoTrackCamera, se.AliRtcVideoTrackScreen].includes(t))
10361
- throw new V(O.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10361
+ throw new V(U.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10362
10362
  e.forEach((i) => {
10363
10363
  this.setPreviewElement({
10364
10364
  videoElement: i,
@@ -10405,16 +10405,16 @@ const ge = (ht = class extends pn {
10405
10405
  try {
10406
10406
  let s = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
10407
10407
  if (!t)
10408
- throw new V(O.ERR_INVALID_ARGUMENTS, "no video element found", {
10408
+ throw new V(U.ERR_INVALID_ARGUMENTS, "no video element found", {
10409
10409
  videoElement: t
10410
10410
  });
10411
10411
  if (!s) {
10412
- H.info(`[${ht.logName}]`, "preview no stream founded");
10412
+ O.info(`[${ht.logName}]`, "preview no stream founded");
10413
10413
  return;
10414
10414
  }
10415
10415
  return Sn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
10416
10416
  } catch (s) {
10417
- const a = O.ERR_INNER;
10417
+ const a = U.ERR_INNER;
10418
10418
  throw V.fromError(s, a, "preview failed");
10419
10419
  }
10420
10420
  });
@@ -10442,17 +10442,17 @@ const ge = (ht = class extends pn {
10442
10442
  const { videoElement: t, primary: i = !0, screen: s = !0 } = e || {};
10443
10443
  if (!t)
10444
10444
  i && (this.previewElements.forEach((a) => {
10445
- tt(a);
10445
+ it(a);
10446
10446
  }), this.previewElements = []), s && (this.screenPreviewElements.forEach((a) => {
10447
- tt(a);
10447
+ it(a);
10448
10448
  }), this.screenPreviewElements = []);
10449
10449
  else {
10450
10450
  const a = this.previewElements.findIndex((c) => c === t);
10451
10451
  if (a >= 0)
10452
- this.previewElements.splice(a, 1), tt(t);
10452
+ this.previewElements.splice(a, 1), it(t);
10453
10453
  else {
10454
10454
  const c = this.screenPreviewElements.findIndex((o) => o === t);
10455
- c >= 0 && (this.screenPreviewElements.splice(c, 1), tt(t));
10455
+ c >= 0 && (this.screenPreviewElements.splice(c, 1), it(t));
10456
10456
  }
10457
10457
  }
10458
10458
  }
@@ -10467,12 +10467,12 @@ const ge = (ht = class extends pn {
10467
10467
  if (e.video)
10468
10468
  for (let i = 0; i < this.previewElements.length; i++) {
10469
10469
  const s = this.previewElements[i];
10470
- tt(s);
10470
+ it(s);
10471
10471
  }
10472
10472
  else if (e.screen)
10473
10473
  for (let i = 0; i < this.screenPreviewElements.length; i++) {
10474
10474
  const s = this.screenPreviewElements[i];
10475
- tt(s);
10475
+ it(s);
10476
10476
  }
10477
10477
  const t = yield this.streamManager.createLocalStream(e);
10478
10478
  return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
@@ -10562,7 +10562,7 @@ const ge = (ht = class extends pn {
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(`[${ht.logName}]`, "startPublish no stream founded");
10565
+ O.event(`[${ht.logName}]`, "startPublish no stream founded");
10566
10566
  return;
10567
10567
  }
10568
10568
  this.createCallId();
@@ -10573,7 +10573,7 @@ const ge = (ht = class extends pn {
10573
10573
  if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = p, (u = this.parameter.data) != null && u.enablePubDataChannel) {
10574
10574
  this.dataPubState.setState(Z.AliRtcStatePublishing);
10575
10575
  const g = yield this.rtsManager.publishAddDataChannel(this.url);
10576
- g ? (this.dc = g, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(O.ERR_INNER, "publishDataError"));
10576
+ g ? (this.dc = g, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError"));
10577
10577
  }
10578
10578
  s && (this.trackTraceIdMap[k.Audio] = p, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = p), a && (this.trackTraceIdMap[k.VideoLarge] = p, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = p, this.reportScreenProfile());
10579
10579
  const f = {
@@ -10668,7 +10668,7 @@ const ge = (ht = class extends pn {
10668
10668
  return w(this, null, function* () {
10669
10669
  var o;
10670
10670
  if (!e)
10671
- throw new V(O.ERR_INNER, "sync publish to room server failed because no publishInfo");
10671
+ throw new V(U.ERR_INNER, "sync publish to room server failed because no publishInfo");
10672
10672
  let s = e;
10673
10673
  if (this.dc) {
10674
10674
  const c = e, { tracks: u } = c, h = Ft(c, ["tracks"]);
@@ -10690,7 +10690,7 @@ const ge = (ht = class extends pn {
10690
10690
  }
10691
10691
  refreshPushStreamUrl() {
10692
10692
  return w(this, null, function* () {
10693
- const e = new V(O.ERR_INNER, "refresh push stream url error"), t = this.url;
10693
+ const e = new V(U.ERR_INNER, "refresh push stream url error"), t = this.url;
10694
10694
  if (!t)
10695
10695
  throw e;
10696
10696
  const i = yield this.signalingManager.refreshUrl({
@@ -10726,8 +10726,8 @@ const ge = (ht = class extends pn {
10726
10726
  };
10727
10727
  return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), p;
10728
10728
  } catch (h) {
10729
- let p = O.ERR_SDK_PUBLISH_INVAILD;
10730
- if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10729
+ let p = U.ERR_SDK_PUBLISH_INVAILD;
10730
+ if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10731
10731
  return this.publishAdd(e, t, i, s + 1);
10732
10732
  throw V.fromError(h, p, "publish add failed");
10733
10733
  }
@@ -10754,7 +10754,7 @@ const ge = (ht = class extends pn {
10754
10754
  } catch (i) {
10755
10755
  throw V.fromError(
10756
10756
  i,
10757
- O.ERR_INNER,
10757
+ U.ERR_INNER,
10758
10758
  `publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`
10759
10759
  );
10760
10760
  }
@@ -10778,7 +10778,7 @@ const ge = (ht = class extends pn {
10778
10778
  try {
10779
10779
  return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(Z.AliRtcStateNoPublish), e.video && (e.vMsid === k.VideoSmall ? this.videoSmallPubState.setState(Z.AliRtcStateNoPublish) : this.videoPubState.setState(Z.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(Z.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
10780
10780
  } catch (i) {
10781
- throw V.fromError(i, O.ERR_INNER, "publish delete tracks failed");
10781
+ throw V.fromError(i, U.ERR_INNER, "publish delete tracks failed");
10782
10782
  }
10783
10783
  });
10784
10784
  }
@@ -10786,10 +10786,10 @@ const ge = (ht = class extends pn {
10786
10786
  return w(this, null, function* () {
10787
10787
  if (!this._isPublishing)
10788
10788
  throw new V(
10789
- O.ERR_INNER,
10789
+ U.ERR_INNER,
10790
10790
  "publish stop failed, previous localStream is required for publishing stopping"
10791
10791
  );
10792
- H.info(`[${ht.logName}]`, "publishStop", { url: this.url });
10792
+ O.info(`[${ht.logName}]`, "publishStop", { url: this.url });
10793
10793
  const e = (/* @__PURE__ */ new Date()).getTime();
10794
10794
  try {
10795
10795
  const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, a = this.hasScreenTrackInMS;
@@ -10811,7 +10811,7 @@ const ge = (ht = class extends pn {
10811
10811
  };
10812
10812
  return this.syncPublishToRoomServer(c, {}, e), c;
10813
10813
  } catch (t) {
10814
- throw V.fromError(t, O.ERR_INNER, "publish stop failed");
10814
+ throw V.fromError(t, U.ERR_INNER, "publish stop failed");
10815
10815
  }
10816
10816
  });
10817
10817
  }
@@ -10838,7 +10838,7 @@ const ge = (ht = class extends pn {
10838
10838
  }
10839
10839
  return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(Z.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
10840
10840
  } catch (i) {
10841
- throw V.fromError(i, O.ERR_INNER, "unpublish failed");
10841
+ throw V.fromError(i, U.ERR_INNER, "unpublish failed");
10842
10842
  }
10843
10843
  });
10844
10844
  }
@@ -10846,7 +10846,7 @@ const ge = (ht = class extends pn {
10846
10846
  * 事件通知本地的设备使用状态
10847
10847
  */
10848
10848
  reportSelfDeviceStatus() {
10849
- this.emit(Le.Local, this.getDeviceStatus());
10849
+ this.emit(Ne.Local, this.getDeviceStatus());
10850
10850
  }
10851
10851
  /**
10852
10852
  * 从localStream 中获取当前的设备状态
@@ -10997,9 +10997,9 @@ const ge = (ht = class extends pn {
10997
10997
  return w(this, null, function* () {
10998
10998
  var s;
10999
10999
  if (!((s = this.parameter.data) != null && s.enablePubDataChannel))
11000
- throw new V(O.ERR_INNER, "data channel publish is not enabled");
11000
+ throw new V(U.ERR_INNER, "data channel publish is not enabled");
11001
11001
  if (!this.dc)
11002
- throw new V(O.ERR_INNER, "data channel is not ready");
11002
+ throw new V(U.ERR_INNER, "data channel is not ready");
11003
11003
  const t = e.toBuffer(), i = j0(t, 1156);
11004
11004
  i.forEach((a, c) => {
11005
11005
  const o = new Ri(
@@ -11059,10 +11059,10 @@ me([
11059
11059
  D()
11060
11060
  ], ge.prototype, "clear", 1);
11061
11061
  me([
11062
- D(U)
11062
+ D(H)
11063
11063
  ], ge.prototype, "startDefaultCamera", 1);
11064
11064
  me([
11065
- D(U)
11065
+ D(H)
11066
11066
  ], ge.prototype, "startDefaultAudio", 1);
11067
11067
  me([
11068
11068
  D()
@@ -11092,13 +11092,13 @@ me([
11092
11092
  D()
11093
11093
  ], ge.prototype, "stopLocalStream", 1);
11094
11094
  me([
11095
- D(U)
11095
+ D(H)
11096
11096
  ], ge.prototype, "startPublish", 1);
11097
11097
  me([
11098
11098
  D()
11099
11099
  ], ge.prototype, "updateStreams", 1);
11100
11100
  me([
11101
- D(U)
11101
+ D(H)
11102
11102
  ], ge.prototype, "publishUpdate", 1);
11103
11103
  me([
11104
11104
  D(([r]) => [r])
@@ -11113,7 +11113,7 @@ me([
11113
11113
  D(([r, n]) => [JSON.stringify(n)])
11114
11114
  ], ge.prototype, "publishReplace", 1);
11115
11115
  me([
11116
- D(U)
11116
+ D(H)
11117
11117
  ], ge.prototype, "publishDeleteTracks", 1);
11118
11118
  me([
11119
11119
  D()
@@ -11140,7 +11140,7 @@ const $0 = (r) => {
11140
11140
  }), K0 = (r) => {
11141
11141
  const { audio: n, video: e, screen: t } = r;
11142
11142
  if (e && t)
11143
- throw new V(O.ERR_INNER, "create stream error, cannot create video && screen together");
11143
+ throw new V(U.ERR_INNER, "create stream error, cannot create video && screen together");
11144
11144
  return !(!e && !n && !t);
11145
11145
  }, q0 = (r) => r === k.Audio || r === zr.Audio, J0 = (r) => r === k.VideoLarge || r === zr.VideoLarge, G0 = (r) => r === k.VideoSmall, X0 = (r) => r === k.Screen, Y0 = (r) => r === k.Data;
11146
11146
  var Z0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, ec = (r, n, e, t) => {
@@ -11380,7 +11380,7 @@ class bi extends we {
11380
11380
  updateRemoteUserDeviceStatus(e) {
11381
11381
  let t = gn.parseStatus(e);
11382
11382
  const { audioDisable: i, videoDisable: s, screenDisable: a } = t;
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;
11383
+ return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Ne.Remote, i ? ce.MuteAudio : ce.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Ne.Remote, s ? ce.MuteVideo : ce.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Ne.Remote, a ? ce.MuteScreen : ce.UnmuteScreen))) : (this.userStatus = t, this.emit(Ne.Remote, i ? ce.MuteAudio : ce.UnmuteAudio), this.emit(Ne.Remote, s ? ce.MuteVideo : ce.UnmuteVideo), this.emit(Ne.Remote, a ? ce.MuteScreen : ce.UnmuteScreen)), !1;
11384
11384
  }
11385
11385
  }
11386
11386
  /**
@@ -11468,8 +11468,8 @@ class Ut extends we {
11468
11468
  }
11469
11469
  }
11470
11470
  const sc = 30;
11471
- var it;
11472
- const _e = (it = class extends pn {
11471
+ var Me;
11472
+ const _e = (Me = class extends pn {
11473
11473
  constructor(e) {
11474
11474
  var f;
11475
11475
  const {
@@ -11552,27 +11552,27 @@ const _e = (it = class extends pn {
11552
11552
  this.dcMsgWaitingPieces = [], i || (i = Wt.parse(t.body));
11553
11553
  } else
11554
11554
  i = Wt.parse(t.body);
11555
- i || H.event(
11556
- `[${it.logName}]`,
11555
+ i || O.event(
11556
+ `[${Me.logName}]`,
11557
11557
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11558
11558
  );
11559
11559
  } else {
11560
11560
  t.header.frameType === 1 && (this.dcMsgWaitingPieces = []), this.dcMsgWaitingPieces.push(t.body);
11561
11561
  return;
11562
11562
  }
11563
- i && (H.event(
11564
- `[${it.logName}]`,
11563
+ i && (O.event(
11564
+ `[${Me.logName}]`,
11565
11565
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11566
11566
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11567
11567
  });
11568
11568
  m(this, "onDataChannelError", (e) => {
11569
- this.emit("occurError", V.fromError(e, O.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11569
+ this.emit("occurError", V.fromError(e, U.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11570
11570
  });
11571
11571
  m(this, "handleAudioPaused", () => {
11572
11572
  this.emit("remoteAudioPlayError", this.uid, "paused");
11573
11573
  });
11574
- this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
11575
- this.emit(Le.Remote, g, this.userId);
11574
+ this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (g) => {
11575
+ this.emit(Ne.Remote, g, this.userId);
11576
11576
  }), this.signalingManager = o, this.viewMap = (f = a[t]) != null ? f : { cameraViews: [], screenViews: [] }, a[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new Ut(), this.audioSubState.on("change", (g, l, S) => {
11577
11577
  this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
11578
11578
  }), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, S) => {
@@ -11698,7 +11698,7 @@ const _e = (it = class extends pn {
11698
11698
  setViewConfig(e, t) {
11699
11699
  if (t !== se.AliRtcVideoTrackScreen && t !== se.AliRtcVideoTrackCamera)
11700
11700
  throw new V(
11701
- O.ERR_INVALID_ARGUMENTS,
11701
+ U.ERR_INVALID_ARGUMENTS,
11702
11702
  "track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
11703
11703
  );
11704
11704
  e ? Fr(e).forEach((s) => {
@@ -11708,7 +11708,7 @@ const _e = (it = class extends pn {
11708
11708
  clear(e = !0) {
11709
11709
  return w(this, null, function* () {
11710
11710
  var t;
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);
11711
+ this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(Me.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(Ne.Remote);
11712
11712
  });
11713
11713
  }
11714
11714
  updateRemoteUserDeviceStatus(e) {
@@ -11791,8 +11791,8 @@ const _e = (it = class extends pn {
11791
11791
  } catch (p) {
11792
11792
  const d = (/* @__PURE__ */ new Date()).getTime() - s;
11793
11793
  e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe), p && (p.message = `user(${this.uid}) subscribe error, ${(p == null ? void 0 : p.message) || ""}`);
11794
- let f = O.ERR_INNER;
11795
- e.audio && (f = O.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = O.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = O.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = O.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11794
+ let f = U.ERR_INNER;
11795
+ e.audio && (f = U.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = U.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = U.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = U.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11796
11796
  ((h = this.localUser) == null ? void 0 : h.callId) || "",
11797
11797
  this.callId,
11798
11798
  !!e.video && e.vMsid === k.VideoLarge,
@@ -11852,7 +11852,7 @@ const _e = (it = class extends pn {
11852
11852
  vMsid: e.vMsid
11853
11853
  }), o;
11854
11854
  } catch (t) {
11855
- throw V.fromError(t, O.ERR_INNER, "subscribe delete failed");
11855
+ throw V.fromError(t, U.ERR_INNER, "subscribe delete failed");
11856
11856
  }
11857
11857
  });
11858
11858
  }
@@ -11914,7 +11914,7 @@ const _e = (it = class extends pn {
11914
11914
  return this.callId = "", u;
11915
11915
  } catch (u) {
11916
11916
  if (((o = (c = (a = (s = u == null ? void 0 : u.extraInfo) == null ? void 0 : s.parsedData) == null ? void 0 : a.streams) == null ? void 0 : c[0]) == null ? void 0 : o.res_code) !== 404)
11917
- throw V.fromError(u, O.ERR_INNER, "subscribe stop failed");
11917
+ throw V.fromError(u, U.ERR_INNER, "subscribe stop failed");
11918
11918
  }
11919
11919
  });
11920
11920
  }
@@ -11925,7 +11925,7 @@ const _e = (it = class extends pn {
11925
11925
  if (e.mediaStream) {
11926
11926
  a = document.createElement("video");
11927
11927
  const c = () => {
11928
- H.event(`uid: ${this.userId} new mediaStream canplay`), a && a.removeEventListener("canplaythrough", c, !1), a = void 0, clearTimeout(s), i(!0);
11928
+ O.event(`uid: ${this.userId} new mediaStream canplay`), a && a.removeEventListener("canplaythrough", c, !1), a = void 0, clearTimeout(s), i(!0);
11929
11929
  };
11930
11930
  a.addEventListener("canplaythrough", c, !1), (a._playPromise || Promise.resolve()).then(() => {
11931
11931
  a && e.mediaStream && (a.srcObject = e.mediaStream);
@@ -11933,7 +11933,7 @@ const _e = (it = class extends pn {
11933
11933
  } else
11934
11934
  i(!0);
11935
11935
  s = window.setTimeout(() => {
11936
- H.event(`uid: ${this.userId} new mediaStream timeout`), a = void 0, i(!0);
11936
+ O.event(`uid: ${this.userId} new mediaStream timeout`), a = void 0, i(!0);
11937
11937
  }, 3e3);
11938
11938
  }), this.updateSubscribe(le.User)), this.stream = e, this.playAll(!1, t), !this.subscribed && e && (this.subscribed = !0), e.hasAudio && this.isAudioSubscribing && e.enableAudio(), e.hasVideo && this.isVideoSubscribing && e.enableVideo();
11939
11939
  });
@@ -11964,7 +11964,7 @@ const _e = (it = class extends pn {
11964
11964
  } else
11965
11965
  throw new Error("no dc founded");
11966
11966
  }).catch((e) => {
11967
- const t = V.fromError(e, O.ERR_INNER, "subscribe data failed");
11967
+ const t = V.fromError(e, U.ERR_INNER, "subscribe data failed");
11968
11968
  this.emit("remoteSubscribeError", t), this.dataSubState.setState(de.AliRtcStateNoSubscribe);
11969
11969
  }));
11970
11970
  }
@@ -12009,7 +12009,7 @@ const _e = (it = class extends pn {
12009
12009
  var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
12010
12010
  const t = Date.now(), i = {}, s = {};
12011
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) {
12012
- if (H.event(`[${it.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12012
+ if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12013
12013
  const A = this.rtsManager.getStreamByMsid({
12014
12014
  url: this.streamUrl,
12015
12015
  aMsid: this.streamInfo.getAudioInfo().msid || k.Audio
@@ -12037,7 +12037,7 @@ const _e = (it = class extends pn {
12037
12037
  };
12038
12038
  }
12039
12039
  handleAutoPlayFailed() {
12040
- H.event(`[${it.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12040
+ O.event(`[${Me.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12041
12041
  const e = () => {
12042
12042
  this.resumeAudio().then(() => {
12043
12043
  document.removeEventListener("click", e, !1), document.removeEventListener("touchstart", e, !1);
@@ -12057,42 +12057,35 @@ const _e = (it = class extends pn {
12057
12057
  playAudio() {
12058
12058
  return w(this, null, function* () {
12059
12059
  var e, t;
12060
- if (this.audioTrack) {
12061
- if (this.toggleAudio(!this.audioMuted), this.audioElement || (this.audioElement = document.createElement("audio"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
12062
- let i = this.audioElement.srcObject;
12063
- i ? i.getAudioTracks().forEach((s) => {
12064
- i.removeTrack(s);
12065
- }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12066
- }
12067
- if (!oe.BrowserUtil.isMiBrowser && oe.SystenUtil.isIos && parseInt(oe.SystenUtil.systemVersion) <= 13) {
12068
- const i = this.audioElement;
12069
- i.setAttribute("autoplay", "");
12070
- const s = () => {
12071
- i.removeEventListener("playing", s), i.pause(), i.play().catch(() => {
12072
- this.handleAutoPlayFailed();
12073
- });
12074
- };
12075
- this.audioElement.addEventListener("playing", s);
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
- }
12060
+ if (!this.audioTrack) {
12061
+ O.event(`[${Me.logName}]`, this.userId, "audio track is null");
12062
+ return;
12063
+ }
12064
+ if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${Me.logName}]`, this.userId, "create audio element"), this.audioElement = document.createElement("audio"), this.audioElement.setAttribute("autoplay", "autoplay"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
12065
+ let i = this.audioElement.srcObject;
12066
+ i ? i.getAudioTracks().forEach((s) => {
12067
+ i.removeTrack(s);
12068
+ }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12095
12069
  }
12070
+ if (!oe.BrowserUtil.isMicroMessenger && oe.SystenUtil.isIos && parseInt(oe.SystenUtil.systemVersion) <= 13) {
12071
+ O.event(`[${Me.logName}]`, "play audio for iOS 13-");
12072
+ const i = this.audioElement;
12073
+ i.setAttribute("autoplay", "");
12074
+ const s = () => {
12075
+ i.removeEventListener("playing", s), i.pause(), i.play().catch(() => {
12076
+ this.handleAutoPlayFailed();
12077
+ });
12078
+ };
12079
+ this.audioElement.addEventListener("playing", s);
12080
+ } else
12081
+ (() => {
12082
+ var s;
12083
+ O.event(`[${Me.logName}]`, "try play audio"), (s = this.audioElement) == null || s.play().then(() => {
12084
+ O.event(`[${Me.logName}]`, "play audio success");
12085
+ }).catch(() => {
12086
+ this.handleAutoPlayFailed();
12087
+ });
12088
+ })();
12096
12089
  });
12097
12090
  }
12098
12091
  stopPlayAudio() {
@@ -12116,9 +12109,9 @@ const _e = (it = class extends pn {
12116
12109
  }
12117
12110
  stopPlayAll(e = !1) {
12118
12111
  e ? this.viewMap.screenViews.forEach((t) => {
12119
- tt(t);
12112
+ it(t);
12120
12113
  }) : this.viewMap.cameraViews.forEach((t) => {
12121
- tt(t);
12114
+ it(t);
12122
12115
  });
12123
12116
  }
12124
12117
  /**
@@ -12258,7 +12251,7 @@ const _e = (it = class extends pn {
12258
12251
  }, /**
12259
12252
  * @ignore
12260
12253
  */
12261
- m(it, "logName", "RemoteUser"), it);
12254
+ m(Me, "logName", "RemoteUser"), Me);
12262
12255
  De([
12263
12256
  D()
12264
12257
  ], _e.prototype, "clear", 1);
@@ -12269,25 +12262,25 @@ De([
12269
12262
  D()
12270
12263
  ], _e.prototype, "updateRemoteTracks", 1);
12271
12264
  De([
12272
- D(U)
12265
+ D(H)
12273
12266
  ], _e.prototype, "subscribe", 1);
12274
12267
  De([
12275
12268
  D()
12276
12269
  ], _e.prototype, "subscribeProxy", 1);
12277
12270
  De([
12278
- D(U)
12271
+ D(H)
12279
12272
  ], _e.prototype, "subscribeDeleteProxy", 1);
12280
12273
  De([
12281
12274
  D()
12282
12275
  ], _e.prototype, "restore", 1);
12283
12276
  De([
12284
- D(U)
12277
+ D(H)
12285
12278
  ], _e.prototype, "resumeAudio", 1);
12286
12279
  De([
12287
- D(U)
12280
+ D(H)
12288
12281
  ], _e.prototype, "stopSubscribe", 1);
12289
12282
  De([
12290
- D(U)
12283
+ D(H)
12291
12284
  ], _e.prototype, "doStopSubscribe", 1);
12292
12285
  De([
12293
12286
  D()
@@ -12356,8 +12349,8 @@ const wi = ([r]) => {
12356
12349
  const { remoteUser: n, options: e } = r;
12357
12350
  return [`user(${n.userId})`, e];
12358
12351
  }, za = 5;
12359
- var Me;
12360
- const xe = (Me = class extends we {
12352
+ var Le;
12353
+ const xe = (Le = class extends we {
12361
12354
  constructor(e, t, i, s, a) {
12362
12355
  super();
12363
12356
  m(this, "rts");
@@ -12384,11 +12377,11 @@ const xe = (Me = class extends we {
12384
12377
  addRTSListener() {
12385
12378
  this.rts.on("connectStatusChange", (e) => {
12386
12379
  var t, i, s, a;
12387
- if (H.event(`[${Me.logName}]`, "rts connectStatusChange to:", e.status), e.status === ps.CONNECT_STATUS_DISCONNECTED)
12380
+ if (O.event(`[${Le.logName}]`, "rts connectStatusChange to:", e.status), e.status === ps.CONNECT_STATUS_DISCONNECTED)
12388
12381
  this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12389
12382
  else if (e.status === ps.CONNECT_STATUS_CONNECTED) {
12390
12383
  const c = (a = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : a.readyState;
12391
- H.event(`[${Me.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList());
12384
+ O.event(`[${Le.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList());
12392
12385
  try {
12393
12386
  this.emit("connected", this._rtsReconnecting, this._rtsPeerConnectionType);
12394
12387
  } catch (o) {
@@ -12396,7 +12389,7 @@ const xe = (Me = class extends we {
12396
12389
  this.setConnected(!0);
12397
12390
  }
12398
12391
  }), this.rts.on("datachannelStatusChange", (e) => {
12399
- H.event(`[${Me.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
12392
+ O.event(`[${Le.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
12400
12393
  this.dcResolve = t;
12401
12394
  }));
12402
12395
  }), this.rts.on("receivedSEI", (e) => {
@@ -12486,7 +12479,7 @@ const xe = (Me = class extends we {
12486
12479
  let o;
12487
12480
  const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
12488
12481
  if (!u)
12489
- return H.warn(`[${Me.logName}]`, "publishStream is null"), {
12482
+ return O.warn(`[${Le.logName}]`, "publishStream is null"), {
12490
12483
  traceId: "",
12491
12484
  l1ip: o
12492
12485
  };
@@ -12530,7 +12523,7 @@ const xe = (Me = class extends we {
12530
12523
  v
12531
12524
  ), V.fromRtsError(y);
12532
12525
  }
12533
- H.event(`[${Me.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
12526
+ O.event(`[${Le.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
12534
12527
  i,
12535
12528
  e,
12536
12529
  t,
@@ -12608,13 +12601,13 @@ const xe = (Me = class extends we {
12608
12601
  try {
12609
12602
  const A = yield Oa(
12610
12603
  (C) => w(this, null, function* () {
12611
- return C > 0 && H.event(`[${Me.logName}]`, `publishAdd retry times: ${C}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12604
+ return C > 0 && O.event(`[${Le.logName}]`, `publishAdd retry times: ${C}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12612
12605
  Y({
12613
12606
  url: e,
12614
12607
  stream: t,
12615
12608
  updateSourceStream: !1
12616
12609
  }, g)
12617
- ])) : Promise.reject(new V(O.ERR_INNER, "rts not connected"));
12610
+ ])) : Promise.reject(new V(U.ERR_INNER, "rts not connected"));
12618
12611
  }),
12619
12612
  za,
12620
12613
  0,
@@ -12671,7 +12664,7 @@ const xe = (Me = class extends we {
12671
12664
  const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (p = this.publishingTracks) == null ? void 0 : p.find(({ msid: v }) => v === k.VideoLarge)) == null ? void 0 : d.msid, a = (g = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === k.Screen)) == null ? void 0 : g.msid, c = [];
12672
12665
  t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
12673
12666
  const o = [];
12674
- t.audio && i && o.push(i), H.event(Me.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12667
+ t.audio && i && o.push(i), O.event(Le.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12675
12668
  try {
12676
12669
  const [v] = (yield this.rts.publishDeleteTracks([
12677
12670
  {
@@ -12680,7 +12673,7 @@ const xe = (Me = class extends we {
12680
12673
  vMsid: c
12681
12674
  }
12682
12675
  ])) || [];
12683
- return H.event(Me.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12676
+ return O.event(Le.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12684
12677
  } catch (v) {
12685
12678
  throw V.fromRtsError(v);
12686
12679
  }
@@ -12817,7 +12810,7 @@ const xe = (Me = class extends we {
12817
12810
  try {
12818
12811
  return (yield Oa(
12819
12812
  (p) => w(this, null, function* () {
12820
- return yield this.dcConnectingPromise, p > 0 && H.event(`[${Me.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12813
+ return yield this.dcConnectingPromise, p > 0 && O.event(`[${Le.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12821
12814
  }),
12822
12815
  za,
12823
12816
  0,
@@ -12953,7 +12946,7 @@ const xe = (Me = class extends we {
12953
12946
  const { options: o, remoteUser: u } = e;
12954
12947
  if (o.video && o.screen)
12955
12948
  throw new V(
12956
- O.ERR_INNER,
12949
+ U.ERR_INNER,
12957
12950
  "subscribe error, video and screen cannot be subscribed at the same time"
12958
12951
  );
12959
12952
  this.connecting && (yield this.connectingPromise);
@@ -12977,7 +12970,7 @@ const xe = (Me = class extends we {
12977
12970
  if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
12978
12971
  x = Date.now();
12979
12972
  else
12980
- return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (H.error(`[${Me.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
12973
+ return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (O.error(`[${Le.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
12981
12974
  return !0;
12982
12975
  })), Promise.resolve(L);
12983
12976
  };
@@ -13061,36 +13054,36 @@ const xe = (Me = class extends we {
13061
13054
  }, /**
13062
13055
  * @ignore
13063
13056
  */
13064
- m(Me, "logName", "RtsManager"), Me);
13057
+ m(Le, "logName", "RtsManager"), Le);
13065
13058
  be([
13066
- D(U)
13059
+ D(H)
13067
13060
  ], xe.prototype, "startConnect", 1);
13068
13061
  be([
13069
13062
  D()
13070
13063
  ], xe.prototype, "updatePublishingTracks", 1);
13071
13064
  be([
13072
- D(U, U)
13065
+ D(H, H)
13073
13066
  ], xe.prototype, "httpPublish", 1);
13074
13067
  be([
13075
- D(U, U)
13068
+ D(H, H)
13076
13069
  ], xe.prototype, "waitPublishSender", 1);
13077
13070
  be([
13078
- D(([r, n, e]) => [r, JSON.stringify(e)], U)
13071
+ D(([r, n, e]) => [r, JSON.stringify(e)], H)
13079
13072
  ], xe.prototype, "publishAdd", 1);
13080
13073
  be([
13081
- D(U, U)
13074
+ D(H, H)
13082
13075
  ], xe.prototype, "publishDelete", 1);
13083
13076
  be([
13084
13077
  D(([r, n, e]) => [r, JSON.stringify(e)])
13085
13078
  ], xe.prototype, "publishReplace", 1);
13086
13079
  be([
13087
- D(U)
13080
+ D(H)
13088
13081
  ], xe.prototype, "publishStop", 1);
13089
13082
  be([
13090
- D(U)
13083
+ D(H)
13091
13084
  ], xe.prototype, "publishAddDataChannel", 1);
13092
13085
  be([
13093
- D(U)
13086
+ D(H)
13094
13087
  ], xe.prototype, "publishStopDataChannel", 1);
13095
13088
  be([
13096
13089
  D()
@@ -13105,16 +13098,16 @@ be([
13105
13098
  D(wi)
13106
13099
  ], xe.prototype, "subscibeDelete", 1);
13107
13100
  be([
13108
- D(U)
13101
+ D(H)
13109
13102
  ], xe.prototype, "subscibeStop", 1);
13110
13103
  be([
13111
- D(U)
13104
+ D(H)
13112
13105
  ], xe.prototype, "subscribeAddDataChannel", 1);
13113
13106
  be([
13114
- D(U)
13107
+ D(H)
13115
13108
  ], xe.prototype, "subscribeStopDatachannel", 1);
13116
13109
  be([
13117
- D(U)
13110
+ D(H)
13118
13111
  ], xe.prototype, "publish", 1);
13119
13112
  be([
13120
13113
  D(wi)
@@ -13376,12 +13369,12 @@ class Wa extends we {
13376
13369
  return t > -1 ? (e.clear(this), this.plugins.splice(t, 1), !0) : !1;
13377
13370
  }
13378
13371
  }
13379
- var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, et = (r, n, e, t) => {
13372
+ var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, tt = (r, n, e, t) => {
13380
13373
  for (var i = t > 1 ? void 0 : t ? dc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
13381
13374
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
13382
13375
  return t && i && hc(n, e, i), i;
13383
13376
  }, Bt;
13384
- const Ge = (Bt = class extends we {
13377
+ const Xe = (Bt = class extends we {
13385
13378
  // 设置是否发布屏幕流
13386
13379
  constructor(e, t) {
13387
13380
  super();
@@ -13404,7 +13397,7 @@ const Ge = (Bt = class extends we {
13404
13397
  m(this, "_publishLocalScreenStreamEnabled", !0);
13405
13398
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13406
13399
  const i = (s) => w(this, null, function* () {
13407
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.6-beta.0")) {
13400
+ if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.6-beta.2")) {
13408
13401
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13409
13402
  return;
13410
13403
  }
@@ -13570,7 +13563,7 @@ const Ge = (Bt = class extends we {
13570
13563
  const c = yield this.publishStreams;
13571
13564
  try {
13572
13565
  if (!c.audio && !c.video && !c.videoSmall && !c.screen)
13573
- throw H.error(`[${Bt.logName}]`, "no tracks founded"), new V(O.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13566
+ throw O.error(`[${Bt.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13574
13567
  const d = new MediaStream();
13575
13568
  (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield bn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13576
13569
  } catch (d) {
@@ -13615,7 +13608,7 @@ const Ge = (Bt = class extends we {
13615
13608
  * @ignore
13616
13609
  */
13617
13610
  m(Bt, "logName", "LocalStreamManager"), Bt);
13618
- et([
13611
+ tt([
13619
13612
  D(([r]) => {
13620
13613
  const { audio: n, video: e, screen: t, custom: i, skipProfile: s, videoProfile: a, screenProfile: c } = r;
13621
13614
  return [
@@ -13630,38 +13623,38 @@ et([
13630
13623
  }
13631
13624
  ];
13632
13625
  })
13633
- ], Ge.prototype, "createLocalStream", 1);
13634
- et([
13635
- D(U)
13636
- ], Ge.prototype, "stopLocalStream", 1);
13637
- et([
13626
+ ], Xe.prototype, "createLocalStream", 1);
13627
+ tt([
13628
+ D(H)
13629
+ ], Xe.prototype, "stopLocalStream", 1);
13630
+ tt([
13638
13631
  D()
13639
- ], Ge.prototype, "createHTTPPublishStream", 1);
13640
- et([
13632
+ ], Xe.prototype, "createHTTPPublishStream", 1);
13633
+ tt([
13641
13634
  D()
13642
- ], Ge.prototype, "stop", 1);
13643
- et([
13644
- D(U)
13645
- ], Ge.prototype, "setVideoProfile", 1);
13646
- et([
13647
- D(U)
13648
- ], Ge.prototype, "setVideoContentHint", 1);
13649
- et([
13650
- D(U)
13651
- ], Ge.prototype, "setAudioProfile", 1);
13652
- et([
13653
- D(U)
13654
- ], Ge.prototype, "setScreenProfile", 1);
13655
- et([
13656
- D(U)
13657
- ], Ge.prototype, "setScreenContentHint", 1);
13658
- et([
13659
- D(U)
13660
- ], Ge.prototype, "setCameraVideoConstraints", 1);
13661
- et([
13662
- D(U)
13663
- ], Ge.prototype, "setMicAudioConstraints", 1);
13664
- let lc = Ge;
13635
+ ], Xe.prototype, "stop", 1);
13636
+ tt([
13637
+ D(H)
13638
+ ], Xe.prototype, "setVideoProfile", 1);
13639
+ tt([
13640
+ D(H)
13641
+ ], Xe.prototype, "setVideoContentHint", 1);
13642
+ tt([
13643
+ D(H)
13644
+ ], Xe.prototype, "setAudioProfile", 1);
13645
+ tt([
13646
+ D(H)
13647
+ ], Xe.prototype, "setScreenProfile", 1);
13648
+ tt([
13649
+ D(H)
13650
+ ], Xe.prototype, "setScreenContentHint", 1);
13651
+ tt([
13652
+ D(H)
13653
+ ], Xe.prototype, "setCameraVideoConstraints", 1);
13654
+ tt([
13655
+ D(H)
13656
+ ], Xe.prototype, "setMicAudioConstraints", 1);
13657
+ let lc = Xe;
13665
13658
  class fc extends Kt {
13666
13659
  constructor() {
13667
13660
  super("AliRtcScreenStandardize", Ee.AliRtcSdkStreamTypeScreen);
@@ -14325,7 +14318,7 @@ class Ic extends Kt {
14325
14318
  super.clear(e), this.hasVideoTrack = !1, e == null || e.updateDualVideoTrack();
14326
14319
  }
14327
14320
  }
14328
- var Rc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, He = (r, n, e, t) => {
14321
+ var Rc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, je = (r, n, e, t) => {
14329
14322
  for (var i = t > 1 ? void 0 : t ? wc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
14330
14323
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
14331
14324
  return t && i && Rc(n, e, i), i;
@@ -14393,7 +14386,7 @@ class Te extends we {
14393
14386
  }
14394
14387
  addSignalingManagerListener() {
14395
14388
  this.signalingManager.on("onNotifyPublish", (e) => {
14396
- H.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
14389
+ O.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
14397
14390
  this.onRemotePublishStateChange(t);
14398
14391
  });
14399
14392
  }), this.signalingManager.stsManager.on("onTokenUpdate", (e, t) => {
@@ -14616,7 +14609,7 @@ class Te extends we {
14616
14609
  playoutVolume: this.playoutVolume,
14617
14610
  parameter: this.parameter
14618
14611
  });
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) => {
14612
+ return s.on(Ne.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) => {
14620
14613
  this.emit("audioSubscribeStateChanged", a, c, o, u, this.channel || "");
14621
14614
  }), s.on("videoSubscribeStateChanged", (a, c, o, u) => {
14622
14615
  this.emit("videoSubscribeStateChanged", a, c, o, u, this.channel || "");
@@ -14699,19 +14692,19 @@ class Te extends we {
14699
14692
  updateAudioWant(e, t) {
14700
14693
  const i = this.userMap[e];
14701
14694
  if (!i)
14702
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14695
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14703
14696
  i.setWantSubAudio(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ audio: !0 });
14704
14697
  }
14705
14698
  updateVideoWant(e, t) {
14706
14699
  const i = this.userMap[e];
14707
14700
  if (!i)
14708
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14701
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14709
14702
  i.setWantSubVideo(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ video: !0 });
14710
14703
  }
14711
14704
  updateScreenWant(e, t) {
14712
14705
  const i = this.userMap[e];
14713
14706
  if (!i)
14714
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14707
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14715
14708
  i.setWantSubScreen(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ screen: !0 });
14716
14709
  }
14717
14710
  stopIndication() {
@@ -14783,46 +14776,46 @@ class Te extends we {
14783
14776
  * @ignore
14784
14777
  */
14785
14778
  m(Te, "logName", "BizControl");
14786
- He([
14779
+ je([
14787
14780
  D()
14788
14781
  ], Te.prototype, "init", 1);
14789
- He([
14782
+ je([
14790
14783
  D()
14791
14784
  ], Te.prototype, "leave", 1);
14792
- He([
14785
+ je([
14793
14786
  D()
14794
14787
  ], Te.prototype, "clear", 1);
14795
- He([
14796
- D(U)
14788
+ je([
14789
+ D(H)
14797
14790
  ], Te.prototype, "addUser", 1);
14798
- He([
14791
+ je([
14799
14792
  D()
14800
14793
  ], Te.prototype, "removeLeftUser", 1);
14801
- He([
14794
+ je([
14802
14795
  D()
14803
14796
  ], Te.prototype, "updateUsers", 1);
14804
- He([
14805
- D(U)
14797
+ je([
14798
+ D(H)
14806
14799
  ], Te.prototype, "updateAudioWant", 1);
14807
- He([
14808
- D(U)
14800
+ je([
14801
+ D(H)
14809
14802
  ], Te.prototype, "updateVideoWant", 1);
14810
- He([
14811
- D(U)
14803
+ je([
14804
+ D(H)
14812
14805
  ], Te.prototype, "updateScreenWant", 1);
14813
- He([
14806
+ je([
14814
14807
  D()
14815
14808
  ], Te.prototype, "stopIndication", 1);
14816
- He([
14809
+ je([
14817
14810
  D()
14818
14811
  ], Te.prototype, "startIndication", 1);
14819
- He([
14820
- D(U)
14812
+ je([
14813
+ D(H)
14821
14814
  ], Te.prototype, "setEnableDualVideoStream", 1);
14822
- He([
14823
- D(U)
14815
+ je([
14816
+ D(H)
14824
14817
  ], Te.prototype, "setAudioVolume", 1);
14825
- He([
14818
+ je([
14826
14819
  D()
14827
14820
  ], Te.prototype, "enableAudioVolumeIndication", 1);
14828
14821
  const Pr = (r) => w(void 0, null, function* () {
@@ -14863,9 +14856,9 @@ class Dc {
14863
14856
  timestamp: t.timestamp,
14864
14857
  token: t.token,
14865
14858
  nonce: t.nonce ? t.nonce : "",
14866
- requestid: Ue.createCallid(),
14859
+ requestid: He.createCallid(),
14867
14860
  tokensid: !1,
14868
- session: (u = t.sessionId) != null ? u : Ue.createCallid()
14861
+ session: (u = t.sessionId) != null ? u : He.createCallid()
14869
14862
  }, c = Object.keys(a).map((h) => `${h}=${encodeURIComponent(a[h])}`).join("&"), o = `${i}${s}?${c}`;
14870
14863
  return fetch(o, {
14871
14864
  method: "POST",
@@ -14874,9 +14867,9 @@ class Dc {
14874
14867
  },
14875
14868
  body: JSON.stringify(e)
14876
14869
  }).then((h) => h.status !== 200 ? (this.slsReporter.reportTranscodingError(h.status, e.taskid || ""), Promise.reject(
14877
- new V(O.ERR_INNER, `transcoding request failed, status: ${h.status}`)
14870
+ new V(U.ERR_INNER, `transcoding request failed, status: ${h.status}`)
14878
14871
  )) : h).catch((h) => Promise.reject(
14879
- new V(O.ERR_INNER, `transcoding request failed, err: ${h.message}`)
14872
+ new V(U.ERR_INNER, `transcoding request failed, err: ${h.message}`)
14880
14873
  ));
14881
14874
  }
14882
14875
  setAuthInfo(n) {
@@ -14889,7 +14882,7 @@ class Dc {
14889
14882
  return w(this, null, function* () {
14890
14883
  if (!this.authInfo)
14891
14884
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14892
- const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14885
+ const t = yield Pr(n.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14893
14886
  return this.doRequest(i, s);
14894
14887
  });
14895
14888
  }
@@ -14897,7 +14890,7 @@ class Dc {
14897
14890
  return w(this, null, function* () {
14898
14891
  if (!this.authInfo)
14899
14892
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14900
- const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14893
+ const t = Ue.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14901
14894
  return this.doRequest(t, i);
14902
14895
  });
14903
14896
  }
@@ -14905,7 +14898,7 @@ class Dc {
14905
14898
  return w(this, null, function* () {
14906
14899
  if (!this.authInfo)
14907
14900
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14908
- const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14901
+ const t = yield Pr(n.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14909
14902
  return this.doRequest(i, s);
14910
14903
  });
14911
14904
  }
@@ -14913,7 +14906,7 @@ class Dc {
14913
14906
  return w(this, null, function* () {
14914
14907
  if (!this.authInfo)
14915
14908
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14916
- const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14909
+ const t = Ue.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14917
14910
  return this.doRequest(t, i);
14918
14911
  });
14919
14912
  }
@@ -14921,14 +14914,14 @@ class Dc {
14921
14914
  return w(this, null, function* () {
14922
14915
  if (!this.authInfo)
14923
14916
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14924
- const e = yield Pr(n.split("?")[0]), t = Oe.MPU_TASK_TRANSACTION_STOP, i = new Br().toJson(t, this.authInfo, e, n);
14917
+ const e = yield Pr(n.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Br().toJson(t, this.authInfo, e, n);
14925
14918
  return this.doRequest(t, i);
14926
14919
  });
14927
14920
  }
14928
14921
  stopPublishLiveStreamWithTaskId(n) {
14929
14922
  if (!this.authInfo)
14930
14923
  return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14931
- const e = Oe.MPU_TASK_TRANSACTION_STOP, t = new Br().toJson(e, this.authInfo, n);
14924
+ const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Br().toJson(e, this.authInfo, n);
14932
14925
  return this.doRequest(e, t);
14933
14926
  }
14934
14927
  refreshAuthInfo(n) {
@@ -14975,19 +14968,19 @@ class rs {
14975
14968
  */
14976
14969
  static checkAuthInfo(n) {
14977
14970
  if (!n)
14978
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
14971
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
14979
14972
  if (!n.appId)
14980
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
14973
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
14981
14974
  if (!n.channelId)
14982
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
14975
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
14983
14976
  if (!n.userId)
14984
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
14977
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
14985
14978
  if (n.timestamp) {
14986
14979
  if (!rs.checkNumber(n.timestamp))
14987
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
14980
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
14988
14981
  } else
14989
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
14990
- return n.token ? null : new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
14982
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
14983
+ return n.token ? null : new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
14991
14984
  }
14992
14985
  /**
14993
14986
  * 检测是否是MediaStreamTrack类型
@@ -15040,8 +15033,8 @@ class kc {
15040
15033
  }
15041
15034
  toJson(n, e) {
15042
15035
  return {
15043
- x: Je(this.x, n),
15044
- y: Je(this.y, e),
15036
+ x: Ge(this.x, n),
15037
+ y: Ge(this.y, e),
15045
15038
  fonttype: this.fontType,
15046
15039
  fontsize: this.fontSize,
15047
15040
  fontcolor: Zr(this.fontColor),
@@ -15067,10 +15060,10 @@ class An {
15067
15060
  url: this.url,
15068
15061
  alpha: this.alpha,
15069
15062
  display: this.display,
15070
- x: Je(this.x, n),
15071
- y: Je(this.y, e),
15072
- width: Je(this.width, n),
15073
- height: Je(this.height, e),
15063
+ x: Ge(this.x, n),
15064
+ y: Ge(this.y, e),
15065
+ width: Ge(this.width, n),
15066
+ height: Ge(this.height, e),
15074
15067
  zorder: this.zOrder
15075
15068
  };
15076
15069
  }
@@ -15090,8 +15083,8 @@ class Bc {
15090
15083
  toJson(n, e) {
15091
15084
  return {
15092
15085
  text: this.text,
15093
- x: Je(this.x, n),
15094
- y: Je(this.y, e),
15086
+ x: Ge(this.x, n),
15087
+ y: Ge(this.y, e),
15095
15088
  fonttype: this.fontType,
15096
15089
  fontsize: this.fontSize,
15097
15090
  fontcolor: Zr(this.fontColor),
@@ -15117,10 +15110,10 @@ class Mc {
15117
15110
  const s = {
15118
15111
  paneid: n,
15119
15112
  majorpane: 0,
15120
- x: Je(this.x, e),
15121
- y: Je(this.y, t),
15122
- width: Je(this.width, e),
15123
- height: Je(this.height, t),
15113
+ x: Ge(this.x, e),
15114
+ y: Ge(this.y, t),
15115
+ width: Ge(this.width, e),
15116
+ height: Ge(this.height, t),
15124
15117
  zorder: this.zOrder,
15125
15118
  userid: this.userId,
15126
15119
  images: this.images.map((a) => a.toJson(e, t)),
@@ -15237,7 +15230,7 @@ class Ga {
15237
15230
  const fe = (r, n = 1, e = 6e4, t = 0) => {
15238
15231
  let i = r;
15239
15232
  return i || (i = 0), Math.min(e, Math.max(t, Math.round(i * n)));
15240
- }, qe = (r, n, e = 2e7, t = 0) => {
15233
+ }, Je = (r, n, e = 2e7, t = 0) => {
15241
15234
  let i = n;
15242
15235
  (!n || n < 0 || n > 1e4) && (i = 1e3);
15243
15236
  let s = r;
@@ -15303,25 +15296,25 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15303
15296
  var F, M, J, j, ue, X;
15304
15297
  if (!R || !R.timestamp)
15305
15298
  return;
15306
- const T = (F = R._last) != null && F.timestamp ? R.timestamp - R._last.timestamp : 1e3, B = pe(R, "bytesSent"), $ = pe(R, "headerBytesSent"), q = qe(fe(B + $, 8, 2e7), T);
15299
+ const T = (F = R._last) != null && F.timestamp ? R.timestamp - R._last.timestamp : 1e3, B = pe(R, "bytesSent"), $ = pe(R, "headerBytesSent"), q = Je(fe(B + $, 8, 2e7), T);
15307
15300
  o.push(q);
15308
- const G = qe(fe(B, 8, 2e7), T);
15301
+ const G = Je(fe(B, 8, 2e7), T);
15309
15302
  u.push(G);
15310
- const ae = qe(fe($, 8, 2e7), T);
15303
+ const ae = Je(fe($, 8, 2e7), T);
15311
15304
  h.push(ae);
15312
- const Q = pe(R, "packetsSent"), te = qe(Q, T);
15305
+ const Q = pe(R, "packetsSent"), te = Je(Q, T);
15313
15306
  p.push(te);
15314
- const ee = pe(R, "packetsLost"), P = qe(ee, T);
15307
+ const ee = pe(R, "packetsLost"), P = Je(ee, T);
15315
15308
  d.push(P);
15316
15309
  const N = Rt(ee, Q);
15317
15310
  if (f.push(N), a)
15318
15311
  (M = R._source) != null && M.audioLevel && g.push(Xa(R._source.audioLevel)), l.push(0);
15319
15312
  else {
15320
15313
  S.push(Ya(R, "totalEncodeTime")), v.push(wt((J = R._source) == null ? void 0 : J.framesPerSecond, 100)), x.push(wt((j = R._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(wt(R.framesPerSecond, 100)), y.push(wt((ue = R._source) == null ? void 0 : ue.height, 4400)), E.push(wt((X = R._source) == null ? void 0 : X.width, 7700)), I.push(wt(R.frameHeight, 4400)), A.push(wt(R.frameWidth, 7700));
15321
- const Fe = pe(R, "totalPacketSendDelay");
15322
- C.push(fe(Fe, 1 / (ee || 1), 2e3));
15323
- const je = pe(R, "qpSum");
15324
- L.push(fe(je, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
15314
+ const Ve = pe(R, "totalPacketSendDelay");
15315
+ C.push(fe(Ve, 1 / (ee || 1), 2e3));
15316
+ const ze = pe(R, "qpSum");
15317
+ L.push(fe(ze, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
15325
15318
  }
15326
15319
  }), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = p.join(","), c.pl = d.join(","), c.plr = f.join(","), a) {
15327
15320
  const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
@@ -15351,18 +15344,18 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15351
15344
  }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [], R = [], T = [], B = [], $ = [], q = [], G = [], ae = [], Q = [], te = [], ee = [], P = [], N = [], F = [], M = [], J = [];
15352
15345
  try {
15353
15346
  s.forEach((j) => {
15354
- var Ze, Ct;
15347
+ var Qe, Ct;
15355
15348
  if (!j || !j.timestamp)
15356
15349
  return;
15357
- const ue = (Ze = j._last) != null && Ze.timestamp ? j.timestamp - j._last.timestamp : 1e3, X = pe(j, "bytesReceived"), Fe = pe(j, "headerBytesReceived"), je = qe(fe(X + Fe, 8, 2e7), ue);
15358
- o.push(je);
15359
- const Xe = qe(fe(X, 8, 2e7), ue);
15360
- u.push(Xe);
15361
- const Ye = qe(fe(Fe, 8, 2e7), ue);
15362
- h.push(Ye);
15363
- const Se = pe(j, "packetsReceived"), Pe = qe(Se, ue);
15350
+ const ue = (Qe = j._last) != null && Qe.timestamp ? j.timestamp - j._last.timestamp : 1e3, X = pe(j, "bytesReceived"), Ve = pe(j, "headerBytesReceived"), ze = Je(fe(X + Ve, 8, 2e7), ue);
15351
+ o.push(ze);
15352
+ const Ye = Je(fe(X, 8, 2e7), ue);
15353
+ u.push(Ye);
15354
+ const Ze = Je(fe(Ve, 8, 2e7), ue);
15355
+ h.push(Ze);
15356
+ const Se = pe(j, "packetsReceived"), Pe = Je(Se, ue);
15364
15357
  p.push(Pe);
15365
- const nt = pe(j, "packetsLost"), Et = qe(nt, ue);
15358
+ const nt = pe(j, "packetsLost"), Et = Je(nt, ue);
15366
15359
  d.push(Et);
15367
15360
  const Nt = Rt(nt, Se);
15368
15361
  f.push(Nt);
@@ -15379,15 +15372,15 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15379
15372
  E.push(Xa(j.audioLevel));
15380
15373
  const lt = Lc(j, "synthesizedSamplesEvents");
15381
15374
  I.push(lt);
15382
- const Qe = Ya(j, "synthesizedSamplesDuration");
15383
- A.push(Qe);
15384
- const ot = Rt(Qe, ue);
15375
+ const et = Ya(j, "synthesizedSamplesDuration");
15376
+ A.push(et);
15377
+ const ot = Rt(et, ue);
15385
15378
  y.push(ot), C.push(0);
15386
15379
  } else {
15387
15380
  const lt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15388
15381
  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));
15389
- const Qe = pe(j, "totalProcessingDelay");
15390
- $.push(fe(Qe, 1e3 / (j.framesDecoded || 30), 12e4));
15382
+ const et = pe(j, "totalProcessingDelay");
15383
+ $.push(fe(et, 1e3 / (j.framesDecoded || 30), 12e4));
15391
15384
  const ot = pe(j, "nackCount");
15392
15385
  G.push(ot);
15393
15386
  const Di = pe(j, "pliCount");
@@ -15396,12 +15389,12 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15396
15389
  ae.push(fe(oi, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15397
15390
  const ci = pe(j, "totalFreezesDuration");
15398
15391
  te.push(fe(ci, 1e3, 3e4));
15399
- const ze = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15400
- ft && ze ? ee.push(fe(ft, 1e3 / ze, 3e4)) : ee.push(0);
15392
+ const We = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15393
+ ft && We ? ee.push(fe(ft, 1e3 / We, 3e4)) : ee.push(0);
15401
15394
  const ui = pe(j, "jitterBufferTargetDelay");
15402
- ui && ze ? P.push(fe(ui, 1e3 / ze, 3e4)) : P.push(0);
15395
+ ui && We ? P.push(fe(ui, 1e3 / We, 3e4)) : P.push(0);
15403
15396
  const Gt = pe(j, "jitterBufferMinimumDelay");
15404
- Gt && ze ? N.push(fe(Gt, 1e3 / ze, 3e4)) : N.push(0);
15397
+ Gt && We ? N.push(fe(Gt, 1e3 / We, 3e4)) : N.push(0);
15405
15398
  }
15406
15399
  }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = M.join(","), c.alll = v.join(","), c.totalc = x.join(","), a ? (c.er = y.join(","), c.aolevel = E.join(","), c.asrc = C.join(","), c.scnt = I.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = _.join(","), c.rfps = R.join(","), c.rh = T.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = G.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = M.join(","), c.ofimin = M.join(","), c.dfimax = M.join(","), c.dfimin = M.join(","), c.rfimax = M.join(","), c.rfimin = M.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = P.join(","), c.pdm = N.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
15407
15400
  } catch (j) {
@@ -15428,7 +15421,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15428
15421
  if (!f.timestamp)
15429
15422
  return;
15430
15423
  const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15431
- e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(qe(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(qe(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15424
+ e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15432
15425
  });
15433
15426
  const d = {
15434
15427
  ctm: Math.floor(n[0].timestamp || 0),
@@ -15968,7 +15961,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15968
15961
  * @param {any} param 埋点内容
15969
15962
  */
15970
15963
  log(n) {
15971
- n && (n.tm = (/* @__PURE__ */ new Date()).getTime(), H.debug("[ConsoleLogger]", "log", n), this.logClient.sendReport(n));
15964
+ n && (n.tm = (/* @__PURE__ */ new Date()).getTime(), O.debug("[ConsoleLogger]", "log", n), this.logClient.sendReport(n));
15972
15965
  }
15973
15966
  /**
15974
15967
  * 将Object转换成string
@@ -16008,7 +16001,7 @@ const z = (K = class extends we {
16008
16001
  m(this, "_serverCheckAuthInfoTimestamp", null);
16009
16002
  m(this, "_localCheckAuthInfoTimestamp", null);
16010
16003
  const t = Date.now();
16011
- H.init(), this.slsReporter = new Or(this), this.channelProfile = St.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
16004
+ O.init(), this.slsReporter = new Or(this), this.channelProfile = St.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
16012
16005
  this.channelProfile,
16013
16006
  this.clientRole,
16014
16007
  this.slsReporter,
@@ -16022,7 +16015,7 @@ const z = (K = class extends we {
16022
16015
  return yi;
16023
16016
  }
16024
16017
  static setLogLevel(e) {
16025
- H.setLogLevel(e);
16018
+ O.setLogLevel(e);
16026
16019
  }
16027
16020
  /**
16028
16021
  * @brief 获取AliRtcEngine实例
@@ -16034,7 +16027,7 @@ const z = (K = class extends we {
16034
16027
  }
16035
16028
  destroy() {
16036
16029
  return w(this, null, function* () {
16037
- K._instance = void 0, yield this.leaveChannel(), yield this.bizControl.clear(), H.destroy();
16030
+ K._instance = void 0, yield this.leaveChannel(), yield this.bizControl.clear(), O.destroy();
16038
16031
  });
16039
16032
  }
16040
16033
  /**
@@ -16071,24 +16064,24 @@ const z = (K = class extends we {
16071
16064
  */
16072
16065
  addPublisherListeners() {
16073
16066
  var e, t, i, s, a, c, o, u, h, p;
16074
- (e = this.publisher) == null || e.on(Le.Local, (d) => {
16075
- H.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16067
+ (e = this.publisher) == null || e.on(Ne.Local, (d) => {
16068
+ O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16076
16069
  }), (t = this.publisher) == null || t.on(kt.VideoTrackEnded, () => {
16077
- H.event("[Publisher] VideoTrack Ended"), this.emit(
16070
+ O.event("[Publisher] VideoTrack Ended"), this.emit(
16078
16071
  "localDeviceException",
16079
16072
  ut.AliEngineLocalDeviceTypeCamera,
16080
16073
  ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16081
16074
  ""
16082
16075
  );
16083
16076
  }), (i = this.publisher) == null || i.on(kt.ScreenTrackEnded, () => {
16084
- H.event("[Publisher] ScreenTrack Ended"), this.emit(
16077
+ O.event("[Publisher] ScreenTrack Ended"), this.emit(
16085
16078
  "localDeviceException",
16086
16079
  ut.AliEngineLocalDeviceTypeDisplay,
16087
16080
  ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16088
16081
  ""
16089
16082
  );
16090
16083
  }), (s = this.publisher) == null || s.on(kt.AudioTrackEnded, () => {
16091
- H.event("[Publisher] AudioTrack Ended"), this.emit(
16084
+ O.event("[Publisher] AudioTrack Ended"), this.emit(
16092
16085
  "localDeviceException",
16093
16086
  ut.AliEngineLocalDeviceTypeMic,
16094
16087
  ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
@@ -16117,7 +16110,7 @@ const z = (K = class extends we {
16117
16110
  });
16118
16111
  }
16119
16112
  occurError(e, t) {
16120
- H.event(`[${K.logName}]`, "Occur Error", e, t), this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16113
+ O.event(`[${K.logName}]`, "Occur Error", e, t), this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16121
16114
  }
16122
16115
  /**
16123
16116
  * 监听 UM 事件
@@ -16129,14 +16122,14 @@ const z = (K = class extends we {
16129
16122
  i.updateSubscribe(le.Reconnect);
16130
16123
  }));
16131
16124
  }), this.bizControl.rtsManager.on("disconnected", () => w(this, null, function* () {
16132
- H.event(`[${K.logName}]`, "RTS Disconnected"), (yield Ue.isNetworkAvailable()) ? this.onNetworkRecovery() : this.onNetworkError();
16125
+ O.event(`[${K.logName}]`, "RTS Disconnected"), (yield He.isNetworkAvailable()) ? this.onNetworkRecovery() : this.onNetworkError();
16133
16126
  })), this.bizControl.rtsManager.on("subscribeexceeds", () => w(this, null, function* () {
16134
16127
  yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList();
16135
16128
  })), this.bizControl.rtsManager.on("seimessage", (e, t, i) => {
16136
16129
  const s = this.remoteUsers.find((a) => a.streamUrl === e);
16137
16130
  s && this.emit("mediaExtensionMsgReceived", s.userId, i, t);
16138
- }), this.bizControl.on(Le.Remote, (e, t) => {
16139
- H.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
16131
+ }), this.bizControl.on(Ne.Remote, (e, t) => {
16132
+ O.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
16140
16133
  }), this.bizControl.on("remoteTrackAvailableChange", (e, t, i) => {
16141
16134
  this.emit("remoteTrackAvailableNotify", e, t, i);
16142
16135
  }), this.bizControl.on("audioSubscribeStateChanged", (e, t, i, s, a) => {
@@ -16187,45 +16180,45 @@ const z = (K = class extends we {
16187
16180
  */
16188
16181
  addSignalingManagerListeners() {
16189
16182
  this.signalingManager.on("onKeepAliveRsp", () => {
16190
- this.networkError && (H.event("[Signaling] Receive KeepAlive Response", `networkError: ${this.networkError}`), this.onNetworkRecovery());
16183
+ this.networkError && (O.event("[Signaling] Receive KeepAlive Response", `networkError: ${this.networkError}`), this.onNetworkRecovery());
16191
16184
  }), this.signalingManager.on("onNotifyJoin", (e) => {
16192
- H.event("[Signaling] Notify Join ", e), this.handleUsersJoin(e), e.forEach((t) => {
16185
+ O.event("[Signaling] Notify Join ", e), this.handleUsersJoin(e), e.forEach((t) => {
16193
16186
  this.emit("remoteUserOnLineNotify", t.userid, 0);
16194
16187
  });
16195
16188
  }), this.signalingManager.on("onNotifyStatus", (e) => {
16196
- H.event("[Signaling] Notify Status ", e), e.forEach((t) => {
16189
+ O.event("[Signaling] Notify Status ", e), e.forEach((t) => {
16197
16190
  this.bizControl.updateRemoteUserDeviceStatus(t);
16198
16191
  });
16199
16192
  }), this.signalingManager.on("onNotifyLeave", (e) => {
16200
- H.event("[Signaling] Notify Leave ", e), e.forEach((t) => {
16193
+ O.event("[Signaling] Notify Leave ", e), e.forEach((t) => {
16201
16194
  this.emit("remoteUserOffLineNotify", t.userid, t.leavecode), this.bizControl.removeLeftUser(t);
16202
16195
  });
16203
16196
  }), this.signalingManager.on("onBye", (e, t) => {
16204
- H.event("[Signaling] Bye ", e, t), this.slsReporter.reportError({
16197
+ O.event("[Signaling] Bye ", e, t), this.slsReporter.reportError({
16205
16198
  message: `reason: ${e}, description: ${t}`
16206
16199
  }), this.emit("bye", e), this.leaveChannel(), this.slsReporter.reportBye(e);
16207
16200
  }), this.signalingManager.on("onConnectFail", (e) => {
16208
- H.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = he.AliRtcConnectionStatusFailed, this.emit(
16201
+ O.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = he.AliRtcConnectionStatusFailed, this.emit(
16209
16202
  "connectionStatusChange",
16210
16203
  he.AliRtcConnectionStatusFailed,
16211
16204
  Ht.AliRtcConnectionChangedNetworkInterrupted
16212
16205
  );
16213
16206
  }), this.signalingManager.on("onNetworkError", (e) => {
16214
- this.slsReporter.reportWarning("signaling network error"), H.event("[Signaling] Network error ", e), this.onNetworkError();
16207
+ this.slsReporter.reportWarning("signaling network error"), O.event("[Signaling] Network error ", e), this.onNetworkError();
16215
16208
  }), this.signalingManager.on("onAuthInvalid", () => {
16216
- H.event("[Signaling] Auth Invalid");
16209
+ O.event("[Signaling] Auth Invalid");
16217
16210
  }), this.signalingManager.on("onReconnectStart", () => {
16218
- H.event("[Signaling] Reconnect Start "), this.connectState = he.AliRtcConnectionStatusReconnecting, this.emit(
16211
+ O.event("[Signaling] Reconnect Start "), this.connectState = he.AliRtcConnectionStatusReconnecting, this.emit(
16219
16212
  "connectionStatusChange",
16220
16213
  he.AliRtcConnectionStatusReconnecting,
16221
16214
  Ht.AliRtcConnectionSignalingConnecting
16222
16215
  );
16223
16216
  }), this.signalingManager.on("onReconnectSuccess", (e) => {
16224
- H.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
16217
+ O.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
16225
16218
  }), this.signalingManager.on("onReconnectFail", (e) => {
16226
- this.slsReporter.reportWarning("signaling reconnect fail: ${err.code}"), H.event("[Signaling] Reconnect Failed ", e), e.code === 403 && this.emit("authInfoExpired");
16219
+ this.slsReporter.reportWarning("signaling reconnect fail: ${err.code}"), O.event("[Signaling] Reconnect Failed ", e), e.code === 403 && this.emit("authInfoExpired");
16227
16220
  }), this.signalingManager.on("onError", (e) => {
16228
- this.slsReporter.reportWarning("signaling error: ${err.message}"), H.event("[Signaling] Error ", e), this.onError(e);
16221
+ this.slsReporter.reportWarning("signaling error: ${err.message}"), O.event("[Signaling] Error ", e), this.onError(e);
16229
16222
  });
16230
16223
  }
16231
16224
  backToUnpublishStatus() {
@@ -16242,7 +16235,7 @@ const z = (K = class extends we {
16242
16235
  const i = t.userid;
16243
16236
  if (i) {
16244
16237
  const s = this.bizControl.addUser(i, t.displayname, le.Join);
16245
- H.event(`[${K.logName}]`, ce.UserJoined, s);
16238
+ O.event(`[${K.logName}]`, ce.UserJoined, s);
16246
16239
  }
16247
16240
  });
16248
16241
  }
@@ -16252,10 +16245,10 @@ const z = (K = class extends we {
16252
16245
  * @returns {void}
16253
16246
  */
16254
16247
  onLocalDeviceStatusChange(e) {
16255
- H.event(`[${K.logName}]`, Le.Local, e), this.signalingManager.reportStatus(e).then(() => {
16256
- H.debug("[signaling] reportStatus suc");
16248
+ O.event(`[${K.logName}]`, Ne.Local, e), this.signalingManager.reportStatus(e).then(() => {
16249
+ O.debug("[signaling] reportStatus suc");
16257
16250
  }).catch((t) => {
16258
- H.error("[signaling] reportStatus failed", t);
16251
+ O.error("[signaling] reportStatus failed", t);
16259
16252
  });
16260
16253
  }
16261
16254
  resumePublishForNetworkRecovery() {
@@ -16290,7 +16283,7 @@ const z = (K = class extends we {
16290
16283
  onNetworkRecovery(e) {
16291
16284
  return w(this, null, function* () {
16292
16285
  var t;
16293
- H.event(
16286
+ O.event(
16294
16287
  K.logName,
16295
16288
  "onNetworkRecovery",
16296
16289
  `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`,
@@ -16306,12 +16299,12 @@ const z = (K = class extends we {
16306
16299
  return w(this, null, function* () {
16307
16300
  if (e != null && e.length) {
16308
16301
  const { joinList: t, leaveList: i, presentList: s } = this.bizControl.updateUsers(e);
16309
- H.info(`[${K.logName}]`, "resumeSubList", {
16302
+ O.info(`[${K.logName}]`, "resumeSubList", {
16310
16303
  joinList: t,
16311
16304
  leaveList: i,
16312
16305
  presentList: s
16313
16306
  }), this.handleUsersJoin(t), i.forEach((a) => {
16314
- H.event(K.logName, ce.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16307
+ O.event(K.logName, ce.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16315
16308
  });
16316
16309
  for (let a = 0; a < s.length; a++) {
16317
16310
  const c = s[a], o = c.userid, u = this.bizControl.getRemoteUser(o);
@@ -16331,7 +16324,7 @@ const z = (K = class extends we {
16331
16324
  return w(this, null, function* () {
16332
16325
  const t = this.bizControl.getRemoteUser(e);
16333
16326
  if (!t)
16334
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16327
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16335
16328
  t.restore(), t.updateSubscribe(le.Retry);
16336
16329
  });
16337
16330
  }
@@ -16353,7 +16346,7 @@ const z = (K = class extends we {
16353
16346
  * @returns {void}
16354
16347
  */
16355
16348
  onError(e) {
16356
- this.slsReporter.reportError(e), H.event(K.logName, ce.Error, e);
16349
+ this.slsReporter.reportError(e), O.event(K.logName, ce.Error, e);
16357
16350
  }
16358
16351
  setEnableDualVideoStream(e, t) {
16359
16352
  this.bizControl.setEnableDualVideoStream(e, t);
@@ -16364,7 +16357,7 @@ const z = (K = class extends we {
16364
16357
  // @ts-ignore
16365
16358
  hadPushStream(e) {
16366
16359
  if (!(this.publisher && e))
16367
- throw new V(O.ERR_INNER, "stream is not publishing");
16360
+ throw new V(U.ERR_INNER, "stream is not publishing");
16368
16361
  }
16369
16362
  /**
16370
16363
  * 获取当前使用的麦克风 deviceId
@@ -16380,7 +16373,7 @@ const z = (K = class extends we {
16380
16373
  he.AliRtcConnectionStatusDisconnected,
16381
16374
  he.AliRtcConnectionStatusFailed
16382
16375
  ].includes(this.connectState))
16383
- throw new V(O.ERR_INNER, "cannot set channel profile in call");
16376
+ throw new V(U.ERR_INNER, "cannot set channel profile in call");
16384
16377
  this.channelProfile = e, this.channelProfile === St.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16385
16378
  }
16386
16379
  startAndPublishDefaultDevices(e) {
@@ -16394,9 +16387,9 @@ const z = (K = class extends we {
16394
16387
  try {
16395
16388
  yield (c = this.publisher) == null ? void 0 : c.startDefaultCamera(this._audioOnlyMode);
16396
16389
  } catch (d) {
16397
- H.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16390
+ O.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16398
16391
  new V(
16399
- O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16392
+ U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16400
16393
  `auto start video failed, ${d.message || ""}`
16401
16394
  )
16402
16395
  );
@@ -16404,9 +16397,9 @@ const z = (K = class extends we {
16404
16397
  try {
16405
16398
  yield (o = this.publisher) == null ? void 0 : o.startDefaultAudio();
16406
16399
  } catch (d) {
16407
- H.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16400
+ O.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16408
16401
  new V(
16409
- O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16402
+ U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16410
16403
  `auto start audio failed, ${d.message || ""}`
16411
16404
  )
16412
16405
  );
@@ -16418,7 +16411,7 @@ const z = (K = class extends we {
16418
16411
  yield (p = this.publisher) == null ? void 0 : p.startPublish(!1, e);
16419
16412
  } catch (d) {
16420
16413
  const f = [];
16421
- a != null && a.audio && f.push(O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16414
+ a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16422
16415
  this.occurError(new V(g, `auto publish stream failed, ${d.message || ""}`));
16423
16416
  });
16424
16417
  }
@@ -16432,7 +16425,7 @@ const z = (K = class extends we {
16432
16425
  return;
16433
16426
  if (!Object.values(Dt).includes(e))
16434
16427
  throw new V(
16435
- O.ERR_INVALID_ARGUMENTS,
16428
+ U.ERR_INVALID_ARGUMENTS,
16436
16429
  `set client role error, role value(${e}) is invalid`
16437
16430
  );
16438
16431
  if (this.clientRole === e)
@@ -16452,12 +16445,12 @@ const z = (K = class extends we {
16452
16445
  }
16453
16446
  setAudioOnlyMode(e) {
16454
16447
  if (this.isInCall())
16455
- throw new V(O.ERR_INNER, "can not change audioOnly mode in call");
16448
+ throw new V(U.ERR_INNER, "can not change audioOnly mode in call");
16456
16449
  this._audioOnlyMode = e;
16457
16450
  }
16458
16451
  setAudioRedEnabled(e) {
16459
16452
  if (this.isInCall())
16460
- throw new V(O.ERR_INNER, "can not change audioRedEnabled in call");
16453
+ throw new V(U.ERR_INNER, "can not change audioRedEnabled in call");
16461
16454
  this.bizControl.setAudioRedEnabled(e);
16462
16455
  }
16463
16456
  /**
@@ -16492,7 +16485,7 @@ const z = (K = class extends we {
16492
16485
  token: h.token
16493
16486
  };
16494
16487
  } catch (h) {
16495
- throw new V(O.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16488
+ throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16496
16489
  }
16497
16490
  else
16498
16491
  i = e;
@@ -16504,7 +16497,7 @@ const z = (K = class extends we {
16504
16497
  if (he.AliRtcConnectionStatusInit === this.connectState || he.AliRtcConnectionStatusDisconnected === this.connectState || he.AliRtcConnectionStatusFailed === this.connectState) {
16505
16498
  if (this.connectState = he.AliRtcConnectionStatusConnecting, c)
16506
16499
  throw this.connectState = he.AliRtcConnectionStatusFailed, this.slsReporter.reportJoin(c.code, a, ""), this.slsReporter.reportJoinResult(c), c;
16507
- i.sessionId = Ue.createCallid("web"), H.setSessionID(i.appId, i.sessionId), this.slsReporter.start(i);
16500
+ i.sessionId = He.createCallid("web"), O.setSessionID(i.appId, i.sessionId), this.slsReporter.start(i);
16508
16501
  try {
16509
16502
  const h = yield this.signalingManager.join(
16510
16503
  i,
@@ -16521,7 +16514,7 @@ const z = (K = class extends we {
16521
16514
  h.updateSubscribe(le.Join);
16522
16515
  });
16523
16516
  } else {
16524
- const h = new V(O.ERR_JOIN_ALREADY_JOINED, "already joined");
16517
+ const h = new V(U.ERR_JOIN_ALREADY_JOINED, "already joined");
16525
16518
  throw this.connectState === he.AliRtcConnectionStatusConnecting && (h.message = "Repeated operation during login"), this.slsReporter.reportJoin(h.code, a, ""), h;
16526
16519
  }
16527
16520
  });
@@ -16544,7 +16537,7 @@ const z = (K = class extends we {
16544
16537
  }
16545
16538
  else
16546
16539
  this.slsReporter.reportLeave(0, 0, "");
16547
- this.networkError = !1, this.connectState = he.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(), this.liveTranscoding.clear(), this.slsReporter.stop(), this.signalingManager.reset(), H.reportEnd();
16540
+ this.networkError = !1, this.connectState = he.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(), this.liveTranscoding.clear(), this.slsReporter.stop(), this.signalingManager.reset(), O.reportEnd();
16548
16541
  });
16549
16542
  }
16550
16543
  /**
@@ -16569,7 +16562,7 @@ const z = (K = class extends we {
16569
16562
  token: h.token
16570
16563
  };
16571
16564
  } catch (h) {
16572
- throw new V(O.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16565
+ throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16573
16566
  }
16574
16567
  else
16575
16568
  t = e;
@@ -16619,7 +16612,7 @@ const z = (K = class extends we {
16619
16612
  subscribeRemoteAudioStream(e, t) {
16620
16613
  if (t && !this.bizControl.isWantSubAudio)
16621
16614
  throw new V(
16622
- O.ERR_INVALID_ARGUMENTS,
16615
+ U.ERR_INVALID_ARGUMENTS,
16623
16616
  "subscribeAllRemoteAudioStreams(true) must be called first"
16624
16617
  );
16625
16618
  this.bizControl.updateAudioWant(e, t);
@@ -16627,13 +16620,13 @@ const z = (K = class extends we {
16627
16620
  resumeRemoteAudioStream(e) {
16628
16621
  const t = this.bizControl.getRemoteUser(e);
16629
16622
  if (!t)
16630
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16623
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16631
16624
  t.resumeAudio();
16632
16625
  }
16633
16626
  stopRemoteAudioPlay(e) {
16634
16627
  const t = this.bizControl.getRemoteUser(e);
16635
16628
  if (!t)
16636
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16629
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16637
16630
  t.stopPlayAudio();
16638
16631
  }
16639
16632
  publishLocalVideoStream(e) {
@@ -16668,7 +16661,7 @@ const z = (K = class extends we {
16668
16661
  subscribeRemoteMediaStream(e, t, i, s) {
16669
16662
  const a = this.bizControl.getRemoteUser(e);
16670
16663
  if (!a)
16671
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16664
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16672
16665
  i && (t === se.AliRtcVideoTrackScreen || t === se.AliRtcVideoTrackBoth) ? a.setWantSubScreen(!0) : a.setWantSubScreen(!1), i && (t === se.AliRtcVideoTrackCamera || t === se.AliRtcVideoTrackBoth) ? a.setWantSubVideo(!0) : a.setWantSubVideo(!1), a.setWantSubAudio(s), a.updateSubscribe(le.User);
16673
16666
  }
16674
16667
  resumeRemoteMediaStream(e, t) {
@@ -16788,7 +16781,7 @@ const z = (K = class extends we {
16788
16781
  }
16789
16782
  setAudioShareVolume(e) {
16790
16783
  if (typeof e != "number")
16791
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16784
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16792
16785
  this.bizControl.setAudioVolume({
16793
16786
  screen: Math.max(0, Math.min(e, 400)) / 100
16794
16787
  });
@@ -16803,7 +16796,7 @@ const z = (K = class extends we {
16803
16796
  muteRemoteAudioPlaying(e, t = !1) {
16804
16797
  const i = this.bizControl.getRemoteUser(e);
16805
16798
  if (!i)
16806
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16799
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16807
16800
  i.setAudioMuted(t);
16808
16801
  }
16809
16802
  muteAllRemoteAudioPlaying(e = !1) {
@@ -16843,22 +16836,22 @@ const z = (K = class extends we {
16843
16836
  }
16844
16837
  setRecordingVolume(e) {
16845
16838
  if (typeof e != "number")
16846
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16839
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16847
16840
  this.bizControl.setAudioVolume({
16848
16841
  audio: Math.max(0, Math.min(e, 400)) / 100
16849
16842
  });
16850
16843
  }
16851
16844
  setPlayoutVolume(e) {
16852
16845
  if (typeof e != "number")
16853
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16846
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16854
16847
  this.bizControl.setPlayoutVolume(Math.max(0, Math.min(e, 100)) / 100);
16855
16848
  }
16856
16849
  setRemoteAudioVolume(e, t) {
16857
16850
  const i = this.bizControl.getRemoteUser(e);
16858
16851
  if (!i)
16859
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16852
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16860
16853
  if (typeof t != "number")
16861
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16854
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16862
16855
  i.setPlayoutVolume(Math.max(0, Math.min(t, 100)) / 100);
16863
16856
  }
16864
16857
  setAudioProfile(e) {
@@ -16880,7 +16873,7 @@ const z = (K = class extends we {
16880
16873
  return w(this, null, function* () {
16881
16874
  var i, s, a;
16882
16875
  if (this._audioOnlyMode)
16883
- throw new V(O.ERR_INNER, "Cannot set local view in audio only mode");
16876
+ throw new V(U.ERR_INNER, "Cannot set local view in audio only mode");
16884
16877
  (i = this.bizControl) == null || i.setLocalViewConfig(e, t), t === se.AliRtcVideoTrackCamera && ((s = this.publisher) != null && s.hasCamera) ? yield this.startPreview() : t === se.AliRtcVideoTrackScreen && ((a = this.publisher) != null && a.hasScreenShare) && (yield this.startPreviewScreen());
16885
16878
  });
16886
16879
  }
@@ -16913,7 +16906,7 @@ const z = (K = class extends we {
16913
16906
  return w(this, null, function* () {
16914
16907
  var t, i, s, a, c, o, u, h, p, d, f;
16915
16908
  if (this._audioOnlyMode)
16916
- throw new V(O.ERR_INNER, "Cannot enable local video in audio only mode");
16909
+ throw new V(U.ERR_INNER, "Cannot enable local video in audio only mode");
16917
16910
  e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (p = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || p.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
16918
16911
  });
16919
16912
  }
@@ -16947,7 +16940,7 @@ const z = (K = class extends we {
16947
16940
  return w(this, null, function* () {
16948
16941
  var s, a, c, o, u, h, p, d, f, g, l, S, v;
16949
16942
  if (this._audioOnlyMode)
16950
- throw new V(O.ERR_INNER, "Cannot switch camera in audio only mode");
16943
+ throw new V(U.ERR_INNER, "Cannot switch camera in audio only mode");
16951
16944
  const i = {};
16952
16945
  if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ai.CAMERA_FRONT : ai.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((a = this.publisher) == null ? void 0 : a.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
16953
16946
  (u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (S = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || S.stop());
@@ -16970,7 +16963,7 @@ const z = (K = class extends we {
16970
16963
  return w(this, null, function* () {
16971
16964
  var e, t;
16972
16965
  if (this._audioOnlyMode)
16973
- throw new V(O.ERR_INNER, "Cannot start preview camera in audio only mode");
16966
+ throw new V(U.ERR_INNER, "Cannot start preview camera in audio only mode");
16974
16967
  (e = this.publisher) != null && e.hasCamera || (yield this.enableLocalVideo(!0)), yield (t = this.publisher) == null ? void 0 : t.previewAll({
16975
16968
  screen: !1
16976
16969
  });
@@ -16980,7 +16973,7 @@ const z = (K = class extends we {
16980
16973
  return w(this, null, function* () {
16981
16974
  var t, i;
16982
16975
  if (this._audioOnlyMode)
16983
- throw new V(O.ERR_INNER, "Cannot start preview screen share in audio only mode");
16976
+ throw new V(U.ERR_INNER, "Cannot start preview screen share in audio only mode");
16984
16977
  (t = this.publisher) != null && t.hasScreenShare || (yield this.startScreenShare(e)), yield (i = this.publisher) == null ? void 0 : i.previewAll({
16985
16978
  primary: !1
16986
16979
  });
@@ -17073,7 +17066,7 @@ const z = (K = class extends we {
17073
17066
  return w(this, null, function* () {
17074
17067
  var s;
17075
17068
  if (!this.publisher || !this.isPublishing)
17076
- throw new V(O.ERR_INNER, "you should publish first");
17069
+ throw new V(U.ERR_INNER, "you should publish first");
17077
17070
  return this.slsReporter.reportSEIMessage(i, e.byteLength, t, 0, !1), (s = this.publisher) == null ? void 0 : s.sendSEI(e, t, i);
17078
17071
  });
17079
17072
  }
@@ -17214,70 +17207,70 @@ W([
17214
17207
  D()
17215
17208
  ], z.prototype, "resumeSubList", 1);
17216
17209
  W([
17217
- D(U)
17210
+ D(H)
17218
17211
  ], z.prototype, "retrySubscribe", 1);
17219
17212
  W([
17220
- D(U)
17213
+ D(H)
17221
17214
  ], z.prototype, "setEnableDualVideoStream", 1);
17222
17215
  W([
17223
- D(U)
17216
+ D(H)
17224
17217
  ], z.prototype, "setChannelProfile", 1);
17225
17218
  W([
17226
- D(U)
17219
+ D(H)
17227
17220
  ], z.prototype, "setClientRole", 1);
17228
17221
  W([
17229
- D(U)
17222
+ D(H)
17230
17223
  ], z.prototype, "setAudioOnlyMode", 1);
17231
17224
  W([
17232
17225
  D()
17233
17226
  ], z.prototype, "clearCheckAuthInfoTimer", 1);
17234
17227
  W([
17235
- D(U)
17228
+ D(H)
17236
17229
  ], z.prototype, "joinChannel", 1);
17237
17230
  W([
17238
- D(U)
17231
+ D(H)
17239
17232
  ], z.prototype, "leaveChannel", 1);
17240
17233
  W([
17241
- D(U)
17234
+ D(H)
17242
17235
  ], z.prototype, "refreshAuthInfo", 1);
17243
17236
  W([
17244
- D(U)
17237
+ D(H)
17245
17238
  ], z.prototype, "publishLocalAudioStream", 1);
17246
17239
  W([
17247
- D(U)
17240
+ D(H)
17248
17241
  ], z.prototype, "setDefaultSubscribeAllRemoteAudioStreams", 1);
17249
17242
  W([
17250
- D(U)
17243
+ D(H)
17251
17244
  ], z.prototype, "subscribeAllRemoteAudioStreams", 1);
17252
17245
  W([
17253
- D(U)
17246
+ D(H)
17254
17247
  ], z.prototype, "subscribeRemoteAudioStream", 1);
17255
17248
  W([
17256
- D(U)
17249
+ D(H)
17257
17250
  ], z.prototype, "resumeRemoteAudioStream", 1);
17258
17251
  W([
17259
- D(U)
17252
+ D(H)
17260
17253
  ], z.prototype, "stopRemoteAudioPlay", 1);
17261
17254
  W([
17262
- D(U)
17255
+ D(H)
17263
17256
  ], z.prototype, "publishLocalVideoStream", 1);
17264
17257
  W([
17265
- D(U)
17258
+ D(H)
17266
17259
  ], z.prototype, "setRemoteDefaultVideoStreamType", 1);
17267
17260
  W([
17268
- D(U)
17261
+ D(H)
17269
17262
  ], z.prototype, "setRemoteUserVideoStreamType", 1);
17270
17263
  W([
17271
- D(U)
17264
+ D(H)
17272
17265
  ], z.prototype, "setDefaultSubscribeAllRemoteVideoStreams", 1);
17273
17266
  W([
17274
- D(U)
17267
+ D(H)
17275
17268
  ], z.prototype, "subscribeAllRemoteVideoStreams", 1);
17276
17269
  W([
17277
- D(U)
17270
+ D(H)
17278
17271
  ], z.prototype, "subscribeRemoteMediaStream", 1);
17279
17272
  W([
17280
- D(U)
17273
+ D(H)
17281
17274
  ], z.prototype, "resumeRemoteMediaStream", 1);
17282
17275
  W([
17283
17276
  D(([r]) => [`${r == null ? void 0 : r.audio}`])
@@ -17286,76 +17279,76 @@ W([
17286
17279
  D()
17287
17280
  ], z.prototype, "stopScreenShare", 1);
17288
17281
  W([
17289
- D(U)
17282
+ D(H)
17290
17283
  ], z.prototype, "setScreenShareConfiguration", 1);
17291
17284
  W([
17292
- D(U)
17285
+ D(H)
17293
17286
  ], z.prototype, "setScreenShareContentHint", 1);
17294
17287
  W([
17295
17288
  D()
17296
17289
  ], z.prototype, "publishLocalScreenShareStream", 1);
17297
17290
  W([
17298
- D(U)
17291
+ D(H)
17299
17292
  ], z.prototype, "setAudioShareVolume", 1);
17300
17293
  W([
17301
- D(U)
17294
+ D(H)
17302
17295
  ], z.prototype, "enableAudioVolumeIndication", 1);
17303
17296
  W([
17304
- D(U)
17297
+ D(H)
17305
17298
  ], z.prototype, "muteLocalMic", 1);
17306
17299
  W([
17307
- D(U)
17300
+ D(H)
17308
17301
  ], z.prototype, "muteRemoteAudioPlaying", 1);
17309
17302
  W([
17310
- D(U)
17303
+ D(H)
17311
17304
  ], z.prototype, "muteAllRemoteAudioPlaying", 1);
17312
17305
  W([
17313
- D(U)
17306
+ D(H)
17314
17307
  ], z.prototype, "startAudioCapture", 1);
17315
17308
  W([
17316
17309
  D()
17317
17310
  ], z.prototype, "stopAudioCapture", 1);
17318
17311
  W([
17319
- D(U)
17312
+ D(H)
17320
17313
  ], z.prototype, "switchMicrophone", 1);
17321
17314
  W([
17322
- D(U)
17315
+ D(H)
17323
17316
  ], z.prototype, "setRecordingVolume", 1);
17324
17317
  W([
17325
- D(U)
17318
+ D(H)
17326
17319
  ], z.prototype, "setPlayoutVolume", 1);
17327
17320
  W([
17328
- D(U)
17321
+ D(H)
17329
17322
  ], z.prototype, "setRemoteAudioVolume", 1);
17330
17323
  W([
17331
- D(U)
17324
+ D(H)
17332
17325
  ], z.prototype, "setAudioProfile", 1);
17333
17326
  W([
17334
- D(U)
17327
+ D(H)
17335
17328
  ], z.prototype, "getAudioTrack", 1);
17336
17329
  W([
17337
- D(U)
17330
+ D(H)
17338
17331
  ], z.prototype, "setLocalViewConfig", 1);
17339
17332
  W([
17340
- D(U)
17333
+ D(H)
17341
17334
  ], z.prototype, "setCameraCapturerConfiguration", 1);
17342
17335
  W([
17343
- D(U)
17336
+ D(H)
17344
17337
  ], z.prototype, "setCameraCapturerContentHint", 1);
17345
17338
  W([
17346
- D(U)
17339
+ D(H)
17347
17340
  ], z.prototype, "enableLocalVideo", 1);
17348
17341
  W([
17349
- D(U)
17342
+ D(H)
17350
17343
  ], z.prototype, "muteLocalCamera", 1);
17351
17344
  W([
17352
- D(U)
17345
+ D(H)
17353
17346
  ], z.prototype, "muteLocalScreen", 1);
17354
17347
  W([
17355
- D(U)
17348
+ D(H)
17356
17349
  ], z.prototype, "setRemoteViewConfig", 1);
17357
17350
  W([
17358
- D(U)
17351
+ D(H)
17359
17352
  ], z.prototype, "switchCamera", 1);
17360
17353
  W([
17361
17354
  D()
@@ -17385,7 +17378,7 @@ W([
17385
17378
  D()
17386
17379
  ], z.prototype, "stopPublishLiveStreamWithTaskId", 1);
17387
17380
  W([
17388
- D(U)
17381
+ D(H)
17389
17382
  ], z.prototype, "setEnableMediaExtensionMsg", 1);
17390
17383
  W([
17391
17384
  D(([r, n, e]) => [r.byteLength, n, e])
@@ -17394,25 +17387,25 @@ W([
17394
17387
  D(([r, n]) => [r.name || "", n])
17395
17388
  ], z.prototype, "enablePlugin", 1);
17396
17389
  W([
17397
- D(U)
17390
+ D(H)
17398
17391
  ], z.prototype, "removePlugin", 1);
17399
17392
  W([
17400
- D(U)
17393
+ D(H)
17401
17394
  ], z.prototype, "setPluginOption", 1);
17402
17395
  W([
17403
- D(U)
17396
+ D(H)
17404
17397
  ], z.prototype, "getPluginOption", 1);
17405
17398
  W([
17406
- D(U)
17399
+ D(H)
17407
17400
  ], z.prototype, "setBeautyEffect", 1);
17408
17401
  W([
17409
- D(U)
17402
+ D(H)
17410
17403
  ], z.prototype, "enableBackgroundExchange", 1);
17411
17404
  W([
17412
- D(U)
17405
+ D(H)
17413
17406
  ], z.prototype, "enableBackgroundBlur", 1);
17414
17407
  W([
17415
- D(U)
17408
+ D(H)
17416
17409
  ], z.prototype, "setParameter", 1);
17417
17410
  W([
17418
17411
  D(([r]) => {
@@ -17421,7 +17414,7 @@ W([
17421
17414
  })
17422
17415
  ], z.prototype, "sendDataChannelMessage", 1);
17423
17416
  W([
17424
- D(U)
17417
+ D(H)
17425
17418
  ], z, "setLogLevel", 1);
17426
17419
  let _n = z;
17427
17420
  var Za;
@@ -17440,7 +17433,7 @@ export {
17440
17433
  vn as AliRtcDataMsgType,
17441
17434
  ye as AliRtcEngineLocalDeviceExceptionType,
17442
17435
  ut as AliRtcEngineLocalDeviceType,
17443
- O as AliRtcErrorCode,
17436
+ U as AliRtcErrorCode,
17444
17437
  Xr as AliRtcLiveTranscodingAudioSampleRate,
17445
17438
  hn as AliRtcLiveTranscodingCropMode,
17446
17439
  fn as AliRtcLiveTranscodingEncodeParam,