aliyun-rtc-sdk 6.14.4-beta.4 → 6.14.4-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliyun-rtc-sdk.es.js +190 -153
- package/dist/aliyun-rtc-sdk.umd.js +9 -9
- package/dist/types/index.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var jn = Object.defineProperty, zn = Object.defineProperties;
|
|
2
2
|
var Wn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var li = Object.getOwnPropertySymbols, $n = Object.getPrototypeOf, xs = Object.prototype.hasOwnProperty, Ss = Object.prototype.propertyIsEnumerable, Kn = Reflect.get;
|
|
4
|
-
var Bi = (r, a, e) => a in r ? jn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e,
|
|
4
|
+
var Bi = (r, a, e) => a in r ? jn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, J = (r, a) => {
|
|
5
5
|
for (var e in a || (a = {}))
|
|
6
6
|
xs.call(a, e) && Bi(r, e, a[e]);
|
|
7
7
|
if (li)
|
|
@@ -9,7 +9,7 @@ var Bi = (r, a, e) => a in r ? jn(r, a, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
Ss.call(a, e) && Bi(r, e, a[e]);
|
|
10
10
|
return r;
|
|
11
11
|
}, ut = (r, a) => zn(r, Wn(a));
|
|
12
|
-
var
|
|
12
|
+
var Dt = (r, a) => {
|
|
13
13
|
var e = {};
|
|
14
14
|
for (var t in r)
|
|
15
15
|
xs.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
|
|
@@ -38,7 +38,7 @@ var w = (r, a, e) => new Promise((t, i) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { AliRTS as le, EConnectStatus as Li, EDatachannelStatus as vs } from "aliyun-rts-sdk";
|
|
40
40
|
import De from "eventemitter3";
|
|
41
|
-
var qn = Object.defineProperty, Jn = (r, a, e) => a in r ? qn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e,
|
|
41
|
+
var qn = Object.defineProperty, Jn = (r, a, e) => a in r ? qn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, Tt = (r, a, e) => (Jn(r, typeof a != "symbol" ? a + "" : a, e), e), Mi = { exports: {} }, Fi = { exports: {} }, Vi, bs;
|
|
42
42
|
function Fe() {
|
|
43
43
|
if (bs)
|
|
44
44
|
return Vi;
|
|
@@ -1508,7 +1508,7 @@ function ao() {
|
|
|
1508
1508
|
var q = "";
|
|
1509
1509
|
try {
|
|
1510
1510
|
q = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
|
|
1511
|
-
} catch (
|
|
1511
|
+
} catch (G) {
|
|
1512
1512
|
q = "";
|
|
1513
1513
|
}
|
|
1514
1514
|
var X = e.checkSameOrigin(E, q);
|
|
@@ -1536,9 +1536,9 @@ function ao() {
|
|
|
1536
1536
|
var M = m[0].headers.get("uber-trace-id");
|
|
1537
1537
|
M ? R = M.split(":")[0] : (M = l.getUberTraceId($), m[0].headers.append("uber-trace-id", M["uber-trace-id"]), R = M.traceId), L = l.pageview;
|
|
1538
1538
|
}
|
|
1539
|
-
} catch (
|
|
1539
|
+
} catch (G) {
|
|
1540
1540
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
1541
|
-
` +
|
|
1541
|
+
` + G);
|
|
1542
1542
|
}
|
|
1543
1543
|
else
|
|
1544
1544
|
switch (f.headers = f.headers ? f.headers : {}, B) {
|
|
@@ -1565,17 +1565,17 @@ function ao() {
|
|
|
1565
1565
|
L = l.getPageviewId()["EagleEye-SessionID"];
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
return p.apply(a, m).then(function(
|
|
1568
|
+
return p.apply(a, m).then(function(G) {
|
|
1569
1569
|
if (!l || !l.api)
|
|
1570
|
-
return
|
|
1570
|
+
return G;
|
|
1571
1571
|
try {
|
|
1572
|
-
if (!
|
|
1573
|
-
return
|
|
1574
|
-
var j =
|
|
1572
|
+
if (!G || typeof G.clone != "function")
|
|
1573
|
+
return G;
|
|
1574
|
+
var j = G.clone(), ce = j.headers;
|
|
1575
1575
|
if (ce && typeof ce.get == "function") {
|
|
1576
1576
|
var Z = ce.get("content-type");
|
|
1577
1577
|
if (Z && !/(text)|(json)/.test(Z))
|
|
1578
|
-
return
|
|
1578
|
+
return G;
|
|
1579
1579
|
if (!R) {
|
|
1580
1580
|
var Ve = e.parseFetchHeaders(ce);
|
|
1581
1581
|
typeof Ve == "object" && Ve["eagleeye-traceid"] && (R = Ve["eagleeye-traceid"], I = "response");
|
|
@@ -1592,18 +1592,18 @@ function ao() {
|
|
|
1592
1592
|
src: j.url,
|
|
1593
1593
|
res_type: "api"
|
|
1594
1594
|
}));
|
|
1595
|
-
}),
|
|
1595
|
+
}), G;
|
|
1596
1596
|
} catch (Qe) {
|
|
1597
|
-
return e.warn("[ARMS] fetch response error :", Qe),
|
|
1597
|
+
return e.warn("[ARMS] fetch response error :", Qe), G;
|
|
1598
1598
|
}
|
|
1599
|
-
}).catch(function(
|
|
1599
|
+
}).catch(function(G) {
|
|
1600
1600
|
if (!l || !l.api)
|
|
1601
|
-
throw
|
|
1601
|
+
throw G;
|
|
1602
1602
|
var j = S();
|
|
1603
|
-
throw l.api(b, !1, j,
|
|
1603
|
+
throw l.api(b, !1, j, G.name || "Error", G.message, x, R, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: E,
|
|
1605
1605
|
res_type: "api"
|
|
1606
|
-
}),
|
|
1606
|
+
}), G;
|
|
1607
1607
|
});
|
|
1608
1608
|
}, a[n].toString = e.createFakeToString(n);
|
|
1609
1609
|
}
|
|
@@ -1635,8 +1635,8 @@ function ao() {
|
|
|
1635
1635
|
P = x.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", P]), B = x.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = x.getConfig("pid"), A.apply(l, ["EagleEye-pAppName", $]);
|
|
1636
1636
|
break;
|
|
1637
1637
|
case "b3":
|
|
1638
|
-
var
|
|
1639
|
-
A.apply(l, ["X-B3-TraceId",
|
|
1638
|
+
var G = x.getB3TraceId(Q);
|
|
1639
|
+
A.apply(l, ["X-B3-TraceId", G["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", G["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", G["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", G["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), P = G["X-B3-TraceId"], B = x.getPageviewId()["EagleEye-SessionID"];
|
|
1640
1640
|
break;
|
|
1641
1641
|
case "tracing":
|
|
1642
1642
|
default:
|
|
@@ -2146,14 +2146,14 @@ let bo = 1;
|
|
|
2146
2146
|
class qr {
|
|
2147
2147
|
constructor(a) {
|
|
2148
2148
|
var e, t;
|
|
2149
|
-
|
|
2149
|
+
Tt(this, "armsLogger"), Tt(this, "isReady", !1), Tt(this, "isDestroyed", !1), Tt(this, "options"), Tt(this, "queue", []), Tt(this, "marker"), Tt(this, "helper", {
|
|
2150
2150
|
MediaboxWrapperQueue(i) {
|
|
2151
2151
|
return new Js(i);
|
|
2152
2152
|
},
|
|
2153
2153
|
MediaboxWrapperInitiative(i) {
|
|
2154
2154
|
return new Js(i);
|
|
2155
2155
|
}
|
|
2156
|
-
}), this.options = ut(
|
|
2156
|
+
}), this.options = ut(J({}, a), {
|
|
2157
2157
|
region: a.deferRegionSet ? void 0 : (e = a.region) != null ? e : "cn",
|
|
2158
2158
|
env: (t = a.env) != null ? t : "prod"
|
|
2159
2159
|
}), this.marker = `-${bo++}-`, this.initArmsLogger();
|
|
@@ -2210,7 +2210,7 @@ class qr {
|
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
2212
|
updateOptions(a) {
|
|
2213
|
-
this.options =
|
|
2213
|
+
this.options = J(J({}, this.options), a);
|
|
2214
2214
|
}
|
|
2215
2215
|
setReady() {
|
|
2216
2216
|
this.initArmsLogger(!0), this.isReady = !0, this.queue.length && this.queue.forEach((a) => {
|
|
@@ -2264,7 +2264,7 @@ function rt(r, a, e) {
|
|
|
2264
2264
|
return Eo(t);
|
|
2265
2265
|
}
|
|
2266
2266
|
var vi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(vi || {});
|
|
2267
|
-
const yi = "6.14.4-beta.
|
|
2267
|
+
const yi = "6.14.4-beta.6", Xs = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
@@ -3862,18 +3862,18 @@ function dn() {
|
|
|
3862
3862
|
]);
|
|
3863
3863
|
},
|
|
3864
3864
|
_doProcessBlock: function(m, l) {
|
|
3865
|
-
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], L = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, M = A.low, F = R.high, N = R.low,
|
|
3866
|
-
var Re, tt,
|
|
3865
|
+
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], L = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, M = A.low, F = R.high, N = R.low, G = L, j = C, ce = I, Z = P, Ve = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, Ct = ee, Ht = k, Rt = M, Yt = F, It = N, Be = 0; Be < 80; Be++) {
|
|
3866
|
+
var Re, tt, wt = d[Be];
|
|
3867
3867
|
if (Be < 16)
|
|
3868
|
-
tt =
|
|
3868
|
+
tt = wt.high = m[l + Be * 2] | 0, Re = wt.low = m[l + Be * 2 + 1] | 0;
|
|
3869
3869
|
else {
|
|
3870
3870
|
var gt = d[Be - 15], it = gt.high, ct = gt.low, ki = (it >>> 1 | ct << 31) ^ (it >>> 8 | ct << 24) ^ it >>> 7, ui = (ct >>> 1 | it << 31) ^ (ct >>> 8 | it << 24) ^ (ct >>> 7 | it << 25), hi = d[Be - 2], We = hi.high, mt = hi.low, di = (We >>> 19 | mt << 13) ^ (We << 3 | mt >>> 29) ^ We >>> 6, Zt = (mt >>> 19 | We << 13) ^ (mt << 3 | We >>> 29) ^ (mt >>> 6 | We << 26), us = d[Be - 7], Pn = us.high, kn = us.low, hs = d[Be - 16], Bn = hs.high, ds = hs.low;
|
|
3871
|
-
Re = ui + kn, tt = ki + Pn + (Re >>> 0 < ui >>> 0 ? 1 : 0), Re = Re + Zt, tt = tt + di + (Re >>> 0 < Zt >>> 0 ? 1 : 0), Re = Re + ds, tt = tt + Bn + (Re >>> 0 < ds >>> 0 ? 1 : 0),
|
|
3871
|
+
Re = ui + kn, tt = ki + Pn + (Re >>> 0 < ui >>> 0 ? 1 : 0), Re = Re + Zt, tt = tt + di + (Re >>> 0 < Zt >>> 0 ? 1 : 0), Re = Re + ds, tt = tt + Bn + (Re >>> 0 < ds >>> 0 ? 1 : 0), wt.high = tt, wt.low = Re;
|
|
3872
3872
|
}
|
|
3873
|
-
var Nn = Se & ot ^ ~Se & Ht, ls = ke &
|
|
3874
|
-
Yt = Ht,
|
|
3873
|
+
var Nn = Se & ot ^ ~Se & Ht, ls = ke & Ct ^ ~ke & Rt, Ln = G & ce ^ G & Ve ^ ce & Ve, Mn = j & Z ^ j & ze ^ Z & ze, Fn = (G >>> 28 | j << 4) ^ (G << 30 | j >>> 2) ^ (G << 25 | j >>> 7), fs = (j >>> 28 | G << 4) ^ (j << 30 | G >>> 2) ^ (j << 25 | G >>> 7), Vn = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), On = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ps = p[Be], Un = ps.high, gs = ps.low, $e = It + On, xt = Yt + Vn + ($e >>> 0 < It >>> 0 ? 1 : 0), $e = $e + ls, xt = xt + Nn + ($e >>> 0 < ls >>> 0 ? 1 : 0), $e = $e + gs, xt = xt + Un + ($e >>> 0 < gs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ms = fs + Mn, Hn = Fn + Ln + (ms >>> 0 < fs >>> 0 ? 1 : 0);
|
|
3874
|
+
Yt = Ht, It = Rt, Ht = ot, Rt = Ct, ot = Se, Ct = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Ve, et = ze, Ve = ce, ze = Z, ce = G, Z = j, j = $e + ms | 0, G = xt + Hn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
|
|
3875
3875
|
}
|
|
3876
|
-
C = v.low = C + j, v.high = L +
|
|
3876
|
+
C = v.low = C + j, v.high = L + G + (C >>> 0 < j >>> 0 ? 1 : 0), P = S.low = P + Z, S.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + Ct, y.high = te + ot + (ee >>> 0 < Ct >>> 0 ? 1 : 0), M = A.low = M + Rt, A.high = k + Ht + (M >>> 0 < Rt >>> 0 ? 1 : 0), N = R.low = N + It, R.high = F + Yt + (N >>> 0 < It >>> 0 ? 1 : 0);
|
|
3877
3877
|
},
|
|
3878
3878
|
_doFinalize: function() {
|
|
3879
3879
|
var m = this._data, l = m.words, x = this._nDataBytes * 8, v = m.sigBytes * 8;
|
|
@@ -4003,8 +4003,8 @@ function Ho() {
|
|
|
4003
4003
|
F.high = N.high, F.low = N.low;
|
|
4004
4004
|
for (var L = 0; L < 5; L++)
|
|
4005
4005
|
for (var P = 0; P < 5; P++) {
|
|
4006
|
-
var Q = L + 5 * P, A = S[Q],
|
|
4007
|
-
A.high =
|
|
4006
|
+
var Q = L + 5 * P, A = S[Q], G = m[Q], j = m[(L + 1) % 5 + 5 * P], ce = m[(L + 2) % 5 + 5 * P];
|
|
4007
|
+
A.high = G.high ^ ~j.high & ce.high, A.low = G.low ^ ~j.low & ce.low;
|
|
4008
4008
|
}
|
|
4009
4009
|
var A = S[0], Z = f[R];
|
|
4010
4010
|
A.high ^= Z.high, A.low ^= Z.low;
|
|
@@ -4382,11 +4382,11 @@ function jo() {
|
|
|
4382
4382
|
var L = A + R, C = y[L];
|
|
4383
4383
|
y[L] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
4384
4384
|
}
|
|
4385
|
-
var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, M, F, N,
|
|
4386
|
-
F = Q = I[0], N = te = I[1],
|
|
4385
|
+
var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, M, F, N, G, j, ce;
|
|
4386
|
+
F = Q = I[0], N = te = I[1], G = ee = I[2], j = k = I[3], ce = M = I[4];
|
|
4387
4387
|
for (var Z, R = 0; R < 80; R += 1)
|
|
4388
|
-
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + M | 0, Q = M, M = k, k = _(ee, 10), ee = te, te = Z, Z = F + y[A + q[R]] | 0, R < 16 ? Z += E(N,
|
|
4389
|
-
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + M + F | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te +
|
|
4388
|
+
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + M | 0, Q = M, M = k, k = _(ee, 10), ee = te, te = Z, Z = F + y[A + q[R]] | 0, R < 16 ? Z += E(N, G, j) + B[0] : R < 32 ? Z += b(N, G, j) + B[1] : R < 48 ? Z += S(N, G, j) + B[2] : R < 64 ? Z += v(N, G, j) + B[3] : Z += x(N, G, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, F = ce, ce = j, j = _(G, 10), G = N, N = Z;
|
|
4389
|
+
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + M + F | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + G | 0, I[0] = Z;
|
|
4390
4390
|
},
|
|
4391
4391
|
_doFinalize: function() {
|
|
4392
4392
|
var y = this._data, A = y.words, R = this._nDataBytes * 8, L = y.sigBytes * 8;
|
|
@@ -4571,7 +4571,7 @@ function zo() {
|
|
|
4571
4571
|
}(lr)), lr.exports;
|
|
4572
4572
|
}
|
|
4573
4573
|
var fr = { exports: {} }, ga;
|
|
4574
|
-
function
|
|
4574
|
+
function yt() {
|
|
4575
4575
|
return ga || (ga = 1, function(r, a) {
|
|
4576
4576
|
(function(e, t, i) {
|
|
4577
4577
|
r.exports = t(ne(), hn(), Yr());
|
|
@@ -4637,7 +4637,7 @@ var pr = { exports: {} }, ma;
|
|
|
4637
4637
|
function ye() {
|
|
4638
4638
|
return ma || (ma = 1, function(r, a) {
|
|
4639
4639
|
(function(e, t, i) {
|
|
4640
|
-
r.exports = t(ne(),
|
|
4640
|
+
r.exports = t(ne(), yt());
|
|
4641
4641
|
})(ie, function(e) {
|
|
4642
4642
|
e.lib.Cipher || function(t) {
|
|
4643
4643
|
var i = e, s = i.lib, n = s.Base, c = s.WordArray, o = s.BufferedBlockAlgorithm, u = i.enc;
|
|
@@ -5446,7 +5446,7 @@ var Rr = { exports: {} }, wa;
|
|
|
5446
5446
|
function t0() {
|
|
5447
5447
|
return wa || (wa = 1, function(r, a) {
|
|
5448
5448
|
(function(e, t, i) {
|
|
5449
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
5449
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
5450
5450
|
})(ie, function(e) {
|
|
5451
5451
|
return function() {
|
|
5452
5452
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [];
|
|
@@ -5506,7 +5506,7 @@ var Ir = { exports: {} }, Da;
|
|
|
5506
5506
|
function i0() {
|
|
5507
5507
|
return Da || (Da = 1, function(r, a) {
|
|
5508
5508
|
(function(e, t, i) {
|
|
5509
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
5509
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
5510
5510
|
})(ie, function(e) {
|
|
5511
5511
|
return function() {
|
|
5512
5512
|
var t = e, i = t.lib, s = i.WordArray, n = i.BlockCipher, c = t.algo, o = [
|
|
@@ -6226,7 +6226,7 @@ var wr = { exports: {} }, Ta;
|
|
|
6226
6226
|
function r0() {
|
|
6227
6227
|
return Ta || (Ta = 1, function(r, a) {
|
|
6228
6228
|
(function(e, t, i) {
|
|
6229
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
6229
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
6230
6230
|
})(ie, function(e) {
|
|
6231
6231
|
return function() {
|
|
6232
6232
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = n.RC4 = s.extend({
|
|
@@ -6280,7 +6280,7 @@ var Dr = { exports: {} }, Pa;
|
|
|
6280
6280
|
function s0() {
|
|
6281
6281
|
return Pa || (Pa = 1, function(r, a) {
|
|
6282
6282
|
(function(e, t, i) {
|
|
6283
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
6283
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
6284
6284
|
})(ie, function(e) {
|
|
6285
6285
|
return function() {
|
|
6286
6286
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.Rabbit = s.extend({
|
|
@@ -6346,7 +6346,7 @@ var Tr = { exports: {} }, ka;
|
|
|
6346
6346
|
function a0() {
|
|
6347
6347
|
return ka || (ka = 1, function(r, a) {
|
|
6348
6348
|
(function(e, t, i) {
|
|
6349
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
6349
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
6350
6350
|
})(ie, function(e) {
|
|
6351
6351
|
return function() {
|
|
6352
6352
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.RabbitLegacy = s.extend({
|
|
@@ -6410,7 +6410,7 @@ var Pr = { exports: {} }, Ba;
|
|
|
6410
6410
|
function n0() {
|
|
6411
6411
|
return Ba || (Ba = 1, function(r, a) {
|
|
6412
6412
|
(function(e, t, i) {
|
|
6413
|
-
r.exports = t(ne(), Ot(), Ut(),
|
|
6413
|
+
r.exports = t(ne(), Ot(), Ut(), yt(), ye());
|
|
6414
6414
|
})(ie, function(e) {
|
|
6415
6415
|
return function() {
|
|
6416
6416
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo;
|
|
@@ -7530,7 +7530,7 @@ function n0() {
|
|
|
7530
7530
|
}
|
|
7531
7531
|
(function(r, a) {
|
|
7532
7532
|
(function(e, t, i) {
|
|
7533
|
-
r.exports = t(ne(), Ci(), Mo(), Fo(), Ot(), Vo(), Ut(), hn(), Xr(), Oo(), dn(), Uo(), Ho(), jo(), Yr(), zo(),
|
|
7533
|
+
r.exports = t(ne(), Ci(), Mo(), Fo(), Ot(), Vo(), Ut(), hn(), Xr(), Oo(), dn(), Uo(), Ho(), jo(), Yr(), zo(), yt(), ye(), Wo(), $o(), Ko(), qo(), Jo(), Go(), Xo(), Yo(), Zo(), Qo(), e0(), t0(), i0(), r0(), s0(), a0(), n0());
|
|
7534
7534
|
})(ie, function(e) {
|
|
7535
7535
|
return e;
|
|
7536
7536
|
});
|
|
@@ -8207,7 +8207,7 @@ class w0 {
|
|
|
8207
8207
|
a ? this.sendLogBeforeUnload(t) : (this.tracker.sendBatchLogsImmediate(t), this.endReported = !0), this.reset();
|
|
8208
8208
|
}
|
|
8209
8209
|
getLogParams(a, e) {
|
|
8210
|
-
return
|
|
8210
|
+
return J({
|
|
8211
8211
|
appid: `${window.location.host}`,
|
|
8212
8212
|
// 其他端是应用的包id,不是rtcsdk的appId
|
|
8213
8213
|
appid_list: this.appId,
|
|
@@ -8496,7 +8496,7 @@ class Fr {
|
|
|
8496
8496
|
return n;
|
|
8497
8497
|
}
|
|
8498
8498
|
}
|
|
8499
|
-
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}),
|
|
8499
|
+
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Nt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Nt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}), Wt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Wt || {}), ss = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(ss || {}), Xt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Xt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Y = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Y || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(he || {}), we = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(we || {}), oi = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(oi || {});
|
|
8500
8500
|
const Oa = 12, Ua = 5e3, $t = class $t extends De {
|
|
8501
8501
|
constructor(e) {
|
|
8502
8502
|
super();
|
|
@@ -8696,7 +8696,7 @@ class N0 {
|
|
|
8696
8696
|
"reconnect"
|
|
8697
8697
|
/* RECONNECT */
|
|
8698
8698
|
);
|
|
8699
|
-
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Xs, e.data =
|
|
8699
|
+
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Xs, e.data = J(J({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
|
|
8700
8700
|
}
|
|
8701
8701
|
createRefreshUrlPackage() {
|
|
8702
8702
|
let a = this.createBaseSendPackage(
|
|
@@ -8846,7 +8846,7 @@ const L0 = 3e4, qe = class qe extends De {
|
|
|
8846
8846
|
* 发送推流消息
|
|
8847
8847
|
*/
|
|
8848
8848
|
publish(e) {
|
|
8849
|
-
const o = e, { l1ip: t } = o, i =
|
|
8849
|
+
const o = e, { l1ip: t } = o, i = Dt(o, ["l1ip"]);
|
|
8850
8850
|
let s = this.packageCreater.createPublishPackage();
|
|
8851
8851
|
s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
|
|
8852
8852
|
const { tracks: n, resume: c } = i;
|
|
@@ -8872,7 +8872,7 @@ const L0 = 3e4, qe = class qe extends De {
|
|
|
8872
8872
|
*/
|
|
8873
8873
|
refreshUrl(e) {
|
|
8874
8874
|
const t = this.packageCreater.createRefreshUrlPackage();
|
|
8875
|
-
t.data =
|
|
8875
|
+
t.data = J(ut(J({}, t.data), {
|
|
8876
8876
|
sessionid: t.header.sessionid
|
|
8877
8877
|
}), e), this.sendPackage(t);
|
|
8878
8878
|
}
|
|
@@ -9266,7 +9266,7 @@ const wi = (Ne = class extends De {
|
|
|
9266
9266
|
return new Promise((t, i) => {
|
|
9267
9267
|
var s;
|
|
9268
9268
|
this.messageCenter ? (this.messageCenter.once("onPublishResult", (n, c, o) => {
|
|
9269
|
-
O.info(`[${Ne.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(ut(
|
|
9269
|
+
O.info(`[${Ne.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(ut(J({}, this.reconnectData), {
|
|
9270
9270
|
publish: {
|
|
9271
9271
|
users: [e]
|
|
9272
9272
|
}
|
|
@@ -9539,7 +9539,7 @@ class ns extends De {
|
|
|
9539
9539
|
return w(this, null, function* () {
|
|
9540
9540
|
var t;
|
|
9541
9541
|
try {
|
|
9542
|
-
this.authInfo && (this.authInfo =
|
|
9542
|
+
this.authInfo && (this.authInfo = J(J({}, this.authInfo), e), (t = this.signaling) == null || t.refreshAuthInfo(this.authInfo), this.stsManager.refreshAuthInfo(this.authInfo));
|
|
9543
9543
|
} catch (i) {
|
|
9544
9544
|
throw i;
|
|
9545
9545
|
}
|
|
@@ -9647,17 +9647,17 @@ W0([
|
|
|
9647
9647
|
], ns.prototype, "publish", 1);
|
|
9648
9648
|
function Kt() {
|
|
9649
9649
|
}
|
|
9650
|
-
const
|
|
9650
|
+
const Lt = class Lt {
|
|
9651
9651
|
static getInstance() {
|
|
9652
9652
|
var a;
|
|
9653
|
-
return
|
|
9653
|
+
return Lt.instance || (Lt.instance = new AudioContext()), (a = Lt.instance.resume()) == null || a.then(Kt, Kt).catch(Kt), Lt.instance;
|
|
9654
9654
|
}
|
|
9655
9655
|
};
|
|
9656
|
-
g(
|
|
9657
|
-
let
|
|
9656
|
+
g(Lt, "instance");
|
|
9657
|
+
let Ft = Lt;
|
|
9658
9658
|
const _i = () => {
|
|
9659
9659
|
var a;
|
|
9660
|
-
const r =
|
|
9660
|
+
const r = Ft.getInstance();
|
|
9661
9661
|
r.state !== "running" && r.state !== "closed" && ((a = r.resume()) == null || a.then(Kt, Kt).catch(Kt)), window.removeEventListener("mousedown", _i), window.removeEventListener("touchstart", _i);
|
|
9662
9662
|
};
|
|
9663
9663
|
window.addEventListener("mousedown", _i);
|
|
@@ -9694,7 +9694,7 @@ class K0 extends De {
|
|
|
9694
9694
|
g(this, "stream");
|
|
9695
9695
|
g(this, "sourceNode");
|
|
9696
9696
|
g(this, "analyser");
|
|
9697
|
-
this.audioContext =
|
|
9697
|
+
this.audioContext = Ft.getInstance(), this.stream = new MediaStream();
|
|
9698
9698
|
}
|
|
9699
9699
|
getLevel() {
|
|
9700
9700
|
return this.analyser ? this.analyser.getLevel() : 0;
|
|
@@ -9949,7 +9949,7 @@ class Di {
|
|
|
9949
9949
|
return new Di(s, n, t, i);
|
|
9950
9950
|
}
|
|
9951
9951
|
}
|
|
9952
|
-
const
|
|
9952
|
+
const Pt = 5;
|
|
9953
9953
|
class xi {
|
|
9954
9954
|
constructor(a, e, t) {
|
|
9955
9955
|
g(this, "_byteArray");
|
|
@@ -9959,19 +9959,19 @@ class xi {
|
|
|
9959
9959
|
}
|
|
9960
9960
|
}
|
|
9961
9961
|
write(a, e) {
|
|
9962
|
-
const t = this._byteArray, i = new ArrayBuffer(
|
|
9962
|
+
const t = this._byteArray, i = new ArrayBuffer(Pt), s = new DataView(i);
|
|
9963
9963
|
s.setUint8(0, a), s.setUint32(1, e.byteLength);
|
|
9964
|
-
const n = new Uint8Array(t.byteLength +
|
|
9965
|
-
n.set(t, 0), n.set(new Uint8Array(i), t.byteLength), n.set(new Uint8Array(e), t.byteLength +
|
|
9964
|
+
const n = new Uint8Array(t.byteLength + Pt + e.byteLength);
|
|
9965
|
+
n.set(t, 0), n.set(new Uint8Array(i), t.byteLength), n.set(new Uint8Array(e), t.byteLength + Pt), this._byteArray = n;
|
|
9966
9966
|
}
|
|
9967
9967
|
static parse(a) {
|
|
9968
9968
|
const e = {}, t = new DataView(a);
|
|
9969
9969
|
let i = 0;
|
|
9970
9970
|
for (; i < a.byteLength; ) {
|
|
9971
9971
|
const s = t.getUint8(i), n = t.getUint32(i + 1);
|
|
9972
|
-
if (i +
|
|
9973
|
-
const c = a.slice(i +
|
|
9974
|
-
e[s] = c, i +=
|
|
9972
|
+
if (i + Pt + n <= a.byteLength) {
|
|
9973
|
+
const c = a.slice(i + Pt, i + Pt + n);
|
|
9974
|
+
e[s] = c, i += Pt + n;
|
|
9975
9975
|
} else
|
|
9976
9976
|
break;
|
|
9977
9977
|
}
|
|
@@ -10736,8 +10736,8 @@ const ge = (lt = class extends bn {
|
|
|
10736
10736
|
throw new V(U.ERR_INNER, "sync publish to room server failed because no publishInfo");
|
|
10737
10737
|
let s = e;
|
|
10738
10738
|
if (this.dc) {
|
|
10739
|
-
const c = e, { tracks: u } = c, h =
|
|
10740
|
-
s = ut(
|
|
10739
|
+
const c = e, { tracks: u } = c, h = Dt(c, ["tracks"]);
|
|
10740
|
+
s = ut(J({}, h), {
|
|
10741
10741
|
tracks: [
|
|
10742
10742
|
...u,
|
|
10743
10743
|
{
|
|
@@ -10982,7 +10982,7 @@ const ge = (lt = class extends bn {
|
|
|
10982
10982
|
let c;
|
|
10983
10983
|
if (((e = this.candidateDataCache) == null ? void 0 : e.length) > 0) {
|
|
10984
10984
|
const t = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, { _last: h } = t;
|
|
10985
|
-
c =
|
|
10985
|
+
c = Dt(t, ["_last"]);
|
|
10986
10986
|
}
|
|
10987
10987
|
((i = this.candidateDataCache) == null ? void 0 : i.length) >= qa && this.reportNetwork(), n && (n._last = c, this.candidateDataCache.push(n));
|
|
10988
10988
|
let o = Object.keys(this.monitorDataCache).filter((u) => {
|
|
@@ -11005,7 +11005,7 @@ const ge = (lt = class extends bn {
|
|
|
11005
11005
|
let x;
|
|
11006
11006
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
11007
11007
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
11008
|
-
x =
|
|
11008
|
+
x = Dt(v, ["_last"]);
|
|
11009
11009
|
}
|
|
11010
11010
|
(l == null ? void 0 : l.length) >= qa && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
11011
11011
|
});
|
|
@@ -11190,7 +11190,7 @@ me([
|
|
|
11190
11190
|
D(([r, a, e]) => [r.length, a, e])
|
|
11191
11191
|
], ge.prototype, "sendSEI", 1);
|
|
11192
11192
|
let tc = ge;
|
|
11193
|
-
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}),
|
|
11193
|
+
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), Vt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Vt || {});
|
|
11194
11194
|
const ic = (r) => {
|
|
11195
11195
|
const a = new MediaStream();
|
|
11196
11196
|
return a.addTrack(r), a;
|
|
@@ -11692,7 +11692,7 @@ const Ce = (Le = class extends bn {
|
|
|
11692
11692
|
else {
|
|
11693
11693
|
const t = this.audioElement.srcObject;
|
|
11694
11694
|
if (t) {
|
|
11695
|
-
const i =
|
|
11695
|
+
const i = Ft.getInstance();
|
|
11696
11696
|
i.addEventListener("statechange", this.handleAudioContextSuspended);
|
|
11697
11697
|
const s = i.createMediaStreamSource(t);
|
|
11698
11698
|
this.audioElement.muted = !0, this.playoutGainNode = i.createGain(), s.connect(this.playoutGainNode), this.playoutGainNode.gain.value = e, this.playoutGainNode.connect(i.destination);
|
|
@@ -11782,7 +11782,7 @@ const Ce = (Le = class extends bn {
|
|
|
11782
11782
|
clear(e = !0) {
|
|
11783
11783
|
return w(this, null, function* () {
|
|
11784
11784
|
var t;
|
|
11785
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ni(Le.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0,
|
|
11785
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ni(Le.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, Ft.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Me.Remote);
|
|
11786
11786
|
});
|
|
11787
11787
|
}
|
|
11788
11788
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -11940,7 +11940,7 @@ const Ce = (Le = class extends bn {
|
|
|
11940
11940
|
}
|
|
11941
11941
|
resumeAudio() {
|
|
11942
11942
|
return w(this, null, function* () {
|
|
11943
|
-
const e =
|
|
11943
|
+
const e = Ft.getInstance();
|
|
11944
11944
|
return e.state !== "running" && e.resume(), this.audioElement ? this.audioElement.play() : this.playAudio();
|
|
11945
11945
|
});
|
|
11946
11946
|
}
|
|
@@ -12310,7 +12310,7 @@ const Ce = (Le = class extends bn {
|
|
|
12310
12310
|
let u;
|
|
12311
12311
|
if ((o == null ? void 0 : o.length) > 0) {
|
|
12312
12312
|
const h = o[o.length - 1] || {}, { _last: f } = h;
|
|
12313
|
-
u =
|
|
12313
|
+
u = Dt(h, ["_last"]);
|
|
12314
12314
|
}
|
|
12315
12315
|
(o == null ? void 0 : o.length) >= gc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, n && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
|
|
12316
12316
|
});
|
|
@@ -12703,7 +12703,7 @@ const xe = (Ae = class extends De {
|
|
|
12703
12703
|
const A = yield Wa(
|
|
12704
12704
|
(R) => w(this, null, function* () {
|
|
12705
12705
|
return R > 0 && O.event(`[${Ae.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
|
|
12706
|
-
|
|
12706
|
+
J({
|
|
12707
12707
|
url: e,
|
|
12708
12708
|
stream: t,
|
|
12709
12709
|
updateSourceStream: !1
|
|
@@ -12881,7 +12881,7 @@ const xe = (Ae = class extends De {
|
|
|
12881
12881
|
subscribeAdd(e) {
|
|
12882
12882
|
return w(this, null, function* () {
|
|
12883
12883
|
var n, c, o, u;
|
|
12884
|
-
const { remoteUser: t, options: i } = e, s = ut(
|
|
12884
|
+
const { remoteUser: t, options: i } = e, s = ut(J({
|
|
12885
12885
|
url: t.streamUrl,
|
|
12886
12886
|
subAudio: !!i.audio,
|
|
12887
12887
|
subVideo: !!(i.screen || i.video)
|
|
@@ -12909,7 +12909,7 @@ const xe = (Ae = class extends De {
|
|
|
12909
12909
|
subscribeDelete(e) {
|
|
12910
12910
|
return w(this, null, function* () {
|
|
12911
12911
|
var n, c, o, u;
|
|
12912
|
-
const { remoteUser: t, options: i } = e, s = ut(
|
|
12912
|
+
const { remoteUser: t, options: i } = e, s = ut(J({
|
|
12913
12913
|
url: t.streamUrl,
|
|
12914
12914
|
subAudio: !!i.audio,
|
|
12915
12915
|
subVideo: !!(i.screen || i.video)
|
|
@@ -13236,10 +13236,10 @@ class Nr {
|
|
|
13236
13236
|
g(this, "profileMap", /* @__PURE__ */ new Map());
|
|
13237
13237
|
g(this, "audioProfile");
|
|
13238
13238
|
g(this, "contentHint");
|
|
13239
|
-
this.defaultProfile =
|
|
13239
|
+
this.defaultProfile = J({}, a);
|
|
13240
13240
|
}
|
|
13241
13241
|
updateProfile(a, e) {
|
|
13242
|
-
e && this.profileMap.set(a,
|
|
13242
|
+
e && this.profileMap.set(a, J(J(J({}, this.defaultProfile), this.profileMap.get(a) || {}), e)), this.profile = a;
|
|
13243
13243
|
}
|
|
13244
13244
|
get videoProfile() {
|
|
13245
13245
|
return this.profile;
|
|
@@ -13269,7 +13269,7 @@ class Nr {
|
|
|
13269
13269
|
} catch (s) {
|
|
13270
13270
|
}
|
|
13271
13271
|
if (e) {
|
|
13272
|
-
const s =
|
|
13272
|
+
const s = J({}, i);
|
|
13273
13273
|
i.maxSendFrameRate && (s.frameRate = i.maxSendFrameRate), e == null || e.VideoProfileMap.set(this.profile, s), yield e.setVideoProfile(this.profile);
|
|
13274
13274
|
}
|
|
13275
13275
|
}
|
|
@@ -13496,8 +13496,8 @@ var Ec = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, st = (r, a
|
|
|
13496
13496
|
for (var i = t > 1 ? void 0 : t ? _c(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
13497
13497
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
13498
13498
|
return t && i && Ec(a, e, i), i;
|
|
13499
|
-
},
|
|
13500
|
-
const Ze = (
|
|
13499
|
+
}, At;
|
|
13500
|
+
const Ze = (At = class extends De {
|
|
13501
13501
|
// 设置是否发布屏幕流
|
|
13502
13502
|
constructor(e, t) {
|
|
13503
13503
|
super();
|
|
@@ -13520,7 +13520,7 @@ const Ze = (Vt = class extends De {
|
|
|
13520
13520
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13521
13521
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13522
13522
|
const i = (s) => w(this, null, function* () {
|
|
13523
|
-
if (O.info(`[${
|
|
13523
|
+
if (O.info(`[${At.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4-beta.6")) {
|
|
13524
13524
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13525
13525
|
return;
|
|
13526
13526
|
}
|
|
@@ -13534,15 +13534,15 @@ const Ze = (Vt = class extends De {
|
|
|
13534
13534
|
this.cameraStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13535
13535
|
yield this.stopLocalStream({
|
|
13536
13536
|
video: !0
|
|
13537
|
-
}), this.emit("trackended",
|
|
13537
|
+
}), this.emit("trackended", Vt.VideoTrackEnded);
|
|
13538
13538
|
})), this.cameraStreamInfo.on("audiotrackended", () => w(this, null, function* () {
|
|
13539
13539
|
yield this.stopLocalStream({
|
|
13540
13540
|
audio: !0
|
|
13541
|
-
}), this.emit("trackended",
|
|
13541
|
+
}), this.emit("trackended", Vt.AudioTrackEnded);
|
|
13542
13542
|
})), this.screenStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13543
13543
|
yield this.stopLocalStream({
|
|
13544
13544
|
screen: !0
|
|
13545
|
-
}), this.emit("trackended",
|
|
13545
|
+
}), this.emit("trackended", Vt.ScreenTrackEnded);
|
|
13546
13546
|
})), this.pluginManager.on("added", i), this.pluginManager.on("removed", (s) => w(this, null, function* () {
|
|
13547
13547
|
this.cameraStreamInfo.removePlugin(s) && (yield this.cameraStreamInfo.process(this.streamInfos)), this.screenStreamInfo.removePlugin(s) && (yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
13548
13548
|
})), this.pluginManager.on("updated", () => w(this, null, function* () {
|
|
@@ -13635,7 +13635,7 @@ const Ze = (Vt = class extends De {
|
|
|
13635
13635
|
const u = rc(e);
|
|
13636
13636
|
let h;
|
|
13637
13637
|
if (u) {
|
|
13638
|
-
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c =
|
|
13638
|
+
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = J({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = J(J({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = J({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = J(J({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
13639
13639
|
const d = Date.now();
|
|
13640
13640
|
try {
|
|
13641
13641
|
h = yield le.createStream({
|
|
@@ -13645,6 +13645,12 @@ const Ze = (Vt = class extends De {
|
|
|
13645
13645
|
custom: !!i,
|
|
13646
13646
|
mediaStream: i,
|
|
13647
13647
|
skipProfile: !0
|
|
13648
|
+
}), O.info(`[${At.logName}]`, "createLocalStream", {
|
|
13649
|
+
audio: o,
|
|
13650
|
+
video: c,
|
|
13651
|
+
screen: t,
|
|
13652
|
+
custom: !!i,
|
|
13653
|
+
time: Date.now() - d
|
|
13648
13654
|
}), o && !i && this.slsReporter.reportAudio(null, Date.now() - d, ((p = h == null ? void 0 : h.audioTrack) == null ? void 0 : p.label) || ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d);
|
|
13649
13655
|
} catch (f) {
|
|
13650
13656
|
throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
|
|
@@ -13686,7 +13692,7 @@ const Ze = (Vt = class extends De {
|
|
|
13686
13692
|
const c = this.publishStreams;
|
|
13687
13693
|
try {
|
|
13688
13694
|
if (!c.audio && !c.video && !c.videoSmall && !c.screen)
|
|
13689
|
-
throw O.error(`[${
|
|
13695
|
+
throw O.error(`[${At.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
13690
13696
|
const d = new MediaStream();
|
|
13691
13697
|
(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, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield yn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
13692
13698
|
} catch (d) {
|
|
@@ -13721,16 +13727,16 @@ const Ze = (Vt = class extends De {
|
|
|
13721
13727
|
}
|
|
13722
13728
|
setCameraVideoConstraints(e) {
|
|
13723
13729
|
var t;
|
|
13724
|
-
this.cameraStreamInfo.cameraVideoConstraints =
|
|
13730
|
+
this.cameraStreamInfo.cameraVideoConstraints = J(J({}, (t = this.cameraStreamInfo.cameraVideoConstraints) != null ? t : {}), e);
|
|
13725
13731
|
}
|
|
13726
13732
|
setMicAudioConstraints(e) {
|
|
13727
13733
|
var t;
|
|
13728
|
-
this.cameraStreamInfo.micAudioConstraints =
|
|
13734
|
+
this.cameraStreamInfo.micAudioConstraints = J(J({}, (t = this.cameraStreamInfo.micAudioConstraints) != null ? t : {}), e);
|
|
13729
13735
|
}
|
|
13730
13736
|
}, /**
|
|
13731
13737
|
* @ignore
|
|
13732
13738
|
*/
|
|
13733
|
-
g(
|
|
13739
|
+
g(At, "logName", "LocalStreamManager"), At);
|
|
13734
13740
|
st([
|
|
13735
13741
|
D(([r]) => {
|
|
13736
13742
|
const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: c } = r;
|
|
@@ -14373,7 +14379,7 @@ class en extends os {
|
|
|
14373
14379
|
);
|
|
14374
14380
|
}
|
|
14375
14381
|
updateOptions(e) {
|
|
14376
|
-
super.updateOptions(e), this.worker && this.worker.postMessage(
|
|
14382
|
+
super.updateOptions(e), this.worker && this.worker.postMessage(J({
|
|
14377
14383
|
type: "updateOptions"
|
|
14378
14384
|
}, e));
|
|
14379
14385
|
}
|
|
@@ -14490,7 +14496,19 @@ class Pe extends De {
|
|
|
14490
14496
|
}
|
|
14491
14497
|
addSignalingManagerListener() {
|
|
14492
14498
|
this.signalingManager.on("onNotifyPublish", (e) => {
|
|
14493
|
-
|
|
14499
|
+
e.forEach((t) => {
|
|
14500
|
+
var i;
|
|
14501
|
+
(i = t == null ? void 0 : t.tracks) == null || i.forEach((s) => {
|
|
14502
|
+
var n;
|
|
14503
|
+
if (s.msid === T.Audio && s.userdata)
|
|
14504
|
+
try {
|
|
14505
|
+
const c = JSON.parse(s.userdata);
|
|
14506
|
+
c.agent_instance && ((n = this.slsReporter) == null || n.setCustomFields({ ageniid: c.agent_instance }));
|
|
14507
|
+
} catch (c) {
|
|
14508
|
+
console.error("Failed to parse userdata:", c);
|
|
14509
|
+
}
|
|
14510
|
+
});
|
|
14511
|
+
}), this.slsReporter.reportConnectionLatencyEvent(Je.RECV_NOTIFY_PUBLISH, "", "", ""), O.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
|
|
14494
14512
|
this.onRemotePublishStateChange(t);
|
|
14495
14513
|
});
|
|
14496
14514
|
}), this.signalingManager.stsManager.on("onTokenUpdate", (e, t) => {
|
|
@@ -14866,7 +14884,7 @@ class Pe extends De {
|
|
|
14866
14884
|
});
|
|
14867
14885
|
}
|
|
14868
14886
|
refreshAuthInfo(e) {
|
|
14869
|
-
this.authInfo && (this.authInfo =
|
|
14887
|
+
this.authInfo && (this.authInfo = J(J({}, this.authInfo), e)), e.userId && this.self.refreshUserInfo(e.userId);
|
|
14870
14888
|
}
|
|
14871
14889
|
setEnableMediaExtensionMsg(e) {
|
|
14872
14890
|
this.rtsManager.setEncodedInsertableStreams(e);
|
|
@@ -14879,7 +14897,7 @@ class Pe extends De {
|
|
|
14879
14897
|
const t = JSON.parse(e);
|
|
14880
14898
|
Object.keys(t).forEach((c) => {
|
|
14881
14899
|
const o = this.parameter[c], u = t[c];
|
|
14882
|
-
typeof o == "object" && typeof u == "object" ? this.parameter[c] =
|
|
14900
|
+
typeof o == "object" && typeof u == "object" ? this.parameter[c] = J(J({}, o), u) : this.parameter[c] = u;
|
|
14883
14901
|
}), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Cc()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0);
|
|
14884
14902
|
}
|
|
14885
14903
|
getParameter() {
|
|
@@ -15042,7 +15060,7 @@ class Uc {
|
|
|
15042
15060
|
return this.doRequest(e, t);
|
|
15043
15061
|
}
|
|
15044
15062
|
refreshAuthInfo(a) {
|
|
15045
|
-
this.authInfo && this.setAuthInfo(
|
|
15063
|
+
this.authInfo && this.setAuthInfo(J(J({}, this.authInfo), a));
|
|
15046
15064
|
}
|
|
15047
15065
|
}
|
|
15048
15066
|
class cs {
|
|
@@ -15239,21 +15257,21 @@ class $c {
|
|
|
15239
15257
|
return this.sourceType && ii[this.sourceType] ? s.sourcetype = ii[this.sourceType] : s.sourcetype = ii[ni.LiveTranscodingCamera], this.segmentType && i === is.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = Ei.LiveTranscodingNoBody, s;
|
|
15240
15258
|
}
|
|
15241
15259
|
}
|
|
15242
|
-
const
|
|
15260
|
+
const Mt = class Mt {
|
|
15243
15261
|
constructor() {
|
|
15244
15262
|
// 使用 static 声明实例
|
|
15245
15263
|
g(this, "ntpClock");
|
|
15246
15264
|
this.ntpClock = new le.Clock();
|
|
15247
15265
|
}
|
|
15248
15266
|
static getInstance() {
|
|
15249
|
-
return
|
|
15267
|
+
return Mt.instance || (Mt.instance = new Mt()), Mt.instance;
|
|
15250
15268
|
}
|
|
15251
15269
|
now() {
|
|
15252
15270
|
return this.ntpClock.now();
|
|
15253
15271
|
}
|
|
15254
15272
|
};
|
|
15255
|
-
g(
|
|
15256
|
-
let Wr =
|
|
15273
|
+
g(Mt, "instance");
|
|
15274
|
+
let Wr = Mt;
|
|
15257
15275
|
const wn = () => Wr.getInstance(), { BrowserUtil: Mr, SystenUtil: tn } = le;
|
|
15258
15276
|
class rn {
|
|
15259
15277
|
constructor() {
|
|
@@ -15288,7 +15306,7 @@ class rn {
|
|
|
15288
15306
|
const i = Zr(t);
|
|
15289
15307
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
|
|
15290
15308
|
var c, o;
|
|
15291
|
-
(o = this.tracker) == null || o.send(
|
|
15309
|
+
(o = this.tracker) == null || o.send(J(ut(J({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${n}` }), s));
|
|
15292
15310
|
}), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
|
|
15293
15311
|
}
|
|
15294
15312
|
}
|
|
@@ -15314,7 +15332,7 @@ class rn {
|
|
|
15314
15332
|
let e;
|
|
15315
15333
|
try {
|
|
15316
15334
|
e = JSON.parse(
|
|
15317
|
-
JSON.stringify(
|
|
15335
|
+
JSON.stringify(J(ut(J({
|
|
15318
15336
|
bt: Mr.browserName || "unknown",
|
|
15319
15337
|
ntptm: this.ntpClock.now(),
|
|
15320
15338
|
// NTP时间
|
|
@@ -15374,7 +15392,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15374
15392
|
(!a || a < 0 || a > 1e4) && (i = 1e3);
|
|
15375
15393
|
let s = r;
|
|
15376
15394
|
return s || (s = 0), Math.min(e, Math.max(t, Math.round(s / (i / 1e3))));
|
|
15377
|
-
},
|
|
15395
|
+
}, kt = (r, a) => {
|
|
15378
15396
|
if (a === 0 || !a)
|
|
15379
15397
|
return "0.00";
|
|
15380
15398
|
let e = r;
|
|
@@ -15386,12 +15404,13 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15386
15404
|
}, Kc = (r, a) => {
|
|
15387
15405
|
var e, t, i;
|
|
15388
15406
|
return (((e = r == null ? void 0 : r._source) == null ? void 0 : e[a]) || 0) - (((i = (t = r == null ? void 0 : r._last) == null ? void 0 : t._source) == null ? void 0 : i[a]) || 0);
|
|
15389
|
-
}, an = (r, a) => fe(pe(r, a), 1e3, 1e4),
|
|
15407
|
+
}, an = (r, a) => fe(pe(r, a), 1e3, 1e4), Bt = (r, a = 2e7) => fe(r, 1, a), si = class si {
|
|
15390
15408
|
constructor(a) {
|
|
15391
15409
|
g(this, "engine");
|
|
15392
15410
|
g(this, "logClient");
|
|
15393
15411
|
g(this, "authInfo");
|
|
15394
15412
|
g(this, "ntpClock");
|
|
15413
|
+
g(this, "customFields", {});
|
|
15395
15414
|
this.logClient = new rn(), this.engine = a, this.ntpClock = wn();
|
|
15396
15415
|
}
|
|
15397
15416
|
static getLogClient() {
|
|
@@ -15407,6 +15426,21 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15407
15426
|
stat_log_id: `${a}-70017`
|
|
15408
15427
|
});
|
|
15409
15428
|
}
|
|
15429
|
+
/**
|
|
15430
|
+
* 设置通用字段
|
|
15431
|
+
* @param fields 字段键值对
|
|
15432
|
+
*/
|
|
15433
|
+
setCustomFields(a) {
|
|
15434
|
+
this.customFields = J(J({}, this.customFields), a);
|
|
15435
|
+
}
|
|
15436
|
+
/**
|
|
15437
|
+
* 获取通用字段
|
|
15438
|
+
* @param key 字段键
|
|
15439
|
+
* @returns 字段值或undefined
|
|
15440
|
+
*/
|
|
15441
|
+
getCustomField(a) {
|
|
15442
|
+
return this.customFields[a];
|
|
15443
|
+
}
|
|
15410
15444
|
/**
|
|
15411
15445
|
* 开始建立连接
|
|
15412
15446
|
* @param authInfo
|
|
@@ -15433,7 +15467,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15433
15467
|
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [];
|
|
15434
15468
|
try {
|
|
15435
15469
|
if (s.forEach((I) => {
|
|
15436
|
-
var F, N,
|
|
15470
|
+
var F, N, G, j, ce, Z;
|
|
15437
15471
|
if (!I || !I.timestamp)
|
|
15438
15472
|
return;
|
|
15439
15473
|
const P = (F = I._last) != null && F.timestamp ? I.timestamp - I._last.timestamp : 1e3, B = pe(I, "bytesSent"), $ = pe(I, "headerBytesSent"), q = Ge(fe(B + $, 8, 2e7), P);
|
|
@@ -15446,11 +15480,11 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15446
15480
|
p.push(te);
|
|
15447
15481
|
const ee = pe(I, "packetsLost"), k = Ge(ee, P);
|
|
15448
15482
|
d.push(k);
|
|
15449
|
-
const M =
|
|
15483
|
+
const M = kt(ee, Q);
|
|
15450
15484
|
if (f.push(M), n)
|
|
15451
15485
|
(N = I._source) != null && N.audioLevel && m.push(sn(I._source.audioLevel)), l.push(0);
|
|
15452
15486
|
else {
|
|
15453
|
-
x.push(an(I, "totalEncodeTime")), v.push(
|
|
15487
|
+
x.push(an(I, "totalEncodeTime")), v.push(Bt((G = I._source) == null ? void 0 : G.framesPerSecond, 100)), S.push(Bt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(Bt(I.framesPerSecond, 100)), E.push(Bt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(Bt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(Bt(I.frameHeight, 4400)), A.push(Bt(I.frameWidth, 7700));
|
|
15454
15488
|
const Ve = pe(I, "totalPacketSendDelay");
|
|
15455
15489
|
R.push(fe(Ve, 1 / (ee || 1), 2e3));
|
|
15456
15490
|
const ze = pe(I, "qpSum");
|
|
@@ -15467,7 +15501,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15467
15501
|
evetid: 10070,
|
|
15468
15502
|
traceid: e,
|
|
15469
15503
|
calid: a,
|
|
15470
|
-
args: this.data2String(
|
|
15504
|
+
args: this.data2String(J({
|
|
15471
15505
|
calid: a,
|
|
15472
15506
|
tckid: t,
|
|
15473
15507
|
traceid: e
|
|
@@ -15481,10 +15515,10 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15481
15515
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15482
15516
|
src: s[0].ssrc || "",
|
|
15483
15517
|
codec: s[0]._codec || ""
|
|
15484
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], M = [], F = [], N = [],
|
|
15518
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], M = [], F = [], N = [], G = [];
|
|
15485
15519
|
try {
|
|
15486
15520
|
s.forEach((j) => {
|
|
15487
|
-
var tt,
|
|
15521
|
+
var tt, wt;
|
|
15488
15522
|
if (!j || !j.timestamp)
|
|
15489
15523
|
return;
|
|
15490
15524
|
const ce = (tt = j._last) != null && tt.timestamp ? j.timestamp - j._last.timestamp : 1e3, Z = pe(j, "bytesReceived"), Ve = pe(j, "headerBytesReceived"), ze = Ge(fe(Z + Ve, 8, 2e7), ce);
|
|
@@ -15495,29 +15529,29 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15495
15529
|
h.push(et);
|
|
15496
15530
|
const Se = pe(j, "packetsReceived"), ke = Ge(Se, ce);
|
|
15497
15531
|
p.push(ke);
|
|
15498
|
-
const ot = pe(j, "packetsLost"),
|
|
15499
|
-
d.push(
|
|
15500
|
-
const Ht =
|
|
15532
|
+
const ot = pe(j, "packetsLost"), Ct = Ge(ot, ce);
|
|
15533
|
+
d.push(Ct);
|
|
15534
|
+
const Ht = kt(ot, Se);
|
|
15501
15535
|
f.push(Ht);
|
|
15502
|
-
const
|
|
15536
|
+
const Rt = pe(j, "jitterBufferDelay"), Yt = pe(j, "jitterBufferEmittedCount");
|
|
15503
15537
|
if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
|
|
15504
|
-
const gt = fe(
|
|
15538
|
+
const gt = fe(Rt, 1e3 / Yt, 1e4);
|
|
15505
15539
|
m.push(gt);
|
|
15506
15540
|
} else
|
|
15507
15541
|
m.push(0);
|
|
15508
|
-
const
|
|
15509
|
-
b.push(
|
|
15542
|
+
const It = pe(j, "fecPacketsReceived");
|
|
15543
|
+
b.push(kt(It, Se));
|
|
15510
15544
|
const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
|
|
15511
|
-
if (x.push(
|
|
15545
|
+
if (x.push(kt(Se - Be, Re)), v.push(kt(ot, Re)), l.push(kt(Be, Re)), S.push(Re), N.push(0), G.push(""), n) {
|
|
15512
15546
|
_.push(sn(j.audioLevel));
|
|
15513
15547
|
const gt = Kc(j, "synthesizedSamplesEvents");
|
|
15514
15548
|
y.push(gt);
|
|
15515
15549
|
const it = an(j, "synthesizedSamplesDuration");
|
|
15516
15550
|
A.push(it);
|
|
15517
|
-
const ct =
|
|
15551
|
+
const ct = kt(it, ce);
|
|
15518
15552
|
E.push(ct), R.push(0);
|
|
15519
15553
|
} else {
|
|
15520
|
-
const gt = (
|
|
15554
|
+
const gt = (wt = j._last) != null && wt.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
|
|
15521
15555
|
L.push(fe(gt, 1e3 / (j.framesDecoded || 30), 500)), C.push(fe(j.framesPerSecond, 1, 100)), I.push(pe(j, "framesReceived")), F.push(pe(j, "framesRendered")), P.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
|
|
15522
15556
|
const it = pe(j, "totalProcessingDelay");
|
|
15523
15557
|
$.push(fe(it, 1e3 / (j.framesDecoded || 30), 12e4));
|
|
@@ -15536,7 +15570,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15536
15570
|
const Zt = pe(j, "jitterBufferMinimumDelay");
|
|
15537
15571
|
Zt && We ? M.push(fe(Zt, 1e3 / We, 3e4)) : M.push(0);
|
|
15538
15572
|
}
|
|
15539
|
-
}), 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 = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt =
|
|
15573
|
+
}), 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 = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = G.join(","), c.ns = X.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = M.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
|
|
15540
15574
|
} catch (j) {
|
|
15541
15575
|
}
|
|
15542
15576
|
this.log({
|
|
@@ -15544,7 +15578,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15544
15578
|
traceid: t,
|
|
15545
15579
|
rmtid: e,
|
|
15546
15580
|
calid: a,
|
|
15547
|
-
args: this.data2String(
|
|
15581
|
+
args: this.data2String(J({
|
|
15548
15582
|
calid: a,
|
|
15549
15583
|
rmtid: e,
|
|
15550
15584
|
tckid: i,
|
|
@@ -15576,14 +15610,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15576
15610
|
};
|
|
15577
15611
|
this.log({
|
|
15578
15612
|
evetid: 10071,
|
|
15579
|
-
args: this.data2String(
|
|
15613
|
+
args: this.data2String(J({
|
|
15580
15614
|
asb: t.join(","),
|
|
15581
15615
|
abms: n.join(","),
|
|
15582
15616
|
vbms: c.join(",")
|
|
15583
15617
|
}, d))
|
|
15584
15618
|
}), this.log({
|
|
15585
15619
|
evetid: 10081,
|
|
15586
|
-
args: this.data2String(
|
|
15620
|
+
args: this.data2String(J({}, d))
|
|
15587
15621
|
});
|
|
15588
15622
|
}
|
|
15589
15623
|
/**
|
|
@@ -15632,7 +15666,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15632
15666
|
reportJoinConnection(a) {
|
|
15633
15667
|
this.log({
|
|
15634
15668
|
evetid: 20002,
|
|
15635
|
-
args: this.data2String(
|
|
15669
|
+
args: this.data2String(J({
|
|
15636
15670
|
transretrynum: 0,
|
|
15637
15671
|
ldnstc: 0,
|
|
15638
15672
|
tcptc: 0,
|
|
@@ -15765,7 +15799,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15765
15799
|
evetid: 10050,
|
|
15766
15800
|
calid: a,
|
|
15767
15801
|
rmtid: e,
|
|
15768
|
-
args: this.data2String(
|
|
15802
|
+
args: this.data2String(J({
|
|
15769
15803
|
calid: a,
|
|
15770
15804
|
rmtid: e,
|
|
15771
15805
|
isvl: t ? 1 : 0,
|
|
@@ -15789,7 +15823,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15789
15823
|
evetid: a ? 10054 : 10051,
|
|
15790
15824
|
calid: e,
|
|
15791
15825
|
rmtid: t,
|
|
15792
|
-
args: this.data2String(
|
|
15826
|
+
args: this.data2String(J({
|
|
15793
15827
|
calid: e,
|
|
15794
15828
|
rmtid: t,
|
|
15795
15829
|
tckid: i,
|
|
@@ -15806,14 +15840,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15806
15840
|
evetid: a ? 10055 : 10052,
|
|
15807
15841
|
calid: e,
|
|
15808
15842
|
rmtid: t,
|
|
15809
|
-
args: this.data2String(
|
|
15843
|
+
args: this.data2String(J({
|
|
15810
15844
|
calid: e,
|
|
15811
15845
|
rmtid: t,
|
|
15812
15846
|
tckid: i
|
|
15813
15847
|
}, s))
|
|
15814
15848
|
}), this.log({
|
|
15815
15849
|
evetid: a ? 10058 : 10057,
|
|
15816
|
-
args: this.data2String(
|
|
15850
|
+
args: this.data2String(J({
|
|
15817
15851
|
calid: e,
|
|
15818
15852
|
rmtid: t,
|
|
15819
15853
|
tckid: i
|
|
@@ -16041,7 +16075,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16041
16075
|
reportPublishProfile(a, e) {
|
|
16042
16076
|
this.log({
|
|
16043
16077
|
evetid: 10201,
|
|
16044
|
-
args: this.data2String(
|
|
16078
|
+
args: this.data2String(J({
|
|
16045
16079
|
tckid: a
|
|
16046
16080
|
}, e))
|
|
16047
16081
|
});
|
|
@@ -16104,19 +16138,22 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16104
16138
|
* @param tckid
|
|
16105
16139
|
*/
|
|
16106
16140
|
reportConnectionLatencyEvent(a, e, t, i, s, n, c = !1) {
|
|
16141
|
+
const o = {
|
|
16142
|
+
ageniid: this.getCustomField("ageniid")
|
|
16143
|
+
}, u = J({
|
|
16144
|
+
tm: s || Date.now(),
|
|
16145
|
+
ntptm: n || this.ntpClock.now(),
|
|
16146
|
+
stage: a,
|
|
16147
|
+
status: e,
|
|
16148
|
+
calid: t,
|
|
16149
|
+
tckid: i,
|
|
16150
|
+
cltp: 1,
|
|
16151
|
+
// AI场景profile:0,非ai场景;1,真人;2,机器人。
|
|
16152
|
+
http: c ? 1 : 0
|
|
16153
|
+
}, o);
|
|
16107
16154
|
this.log({
|
|
16108
16155
|
evetid: 12001,
|
|
16109
|
-
args: this.data2String(
|
|
16110
|
-
tm: s || Date.now(),
|
|
16111
|
-
ntptm: n || this.ntpClock.now(),
|
|
16112
|
-
stage: a,
|
|
16113
|
-
status: e,
|
|
16114
|
-
calid: t,
|
|
16115
|
-
tckid: i,
|
|
16116
|
-
cltp: 1,
|
|
16117
|
-
// AI场景profile:0,非ai场景;1,真人;2,机器人。
|
|
16118
|
-
http: c ? 1 : 0
|
|
16119
|
-
})
|
|
16156
|
+
args: this.data2String(u)
|
|
16120
16157
|
});
|
|
16121
16158
|
}
|
|
16122
16159
|
/**
|
|
@@ -16165,7 +16202,7 @@ const z = (K = class extends De {
|
|
|
16165
16202
|
g(this, "_serverCheckAuthInfoTimestamp", null);
|
|
16166
16203
|
g(this, "_localCheckAuthInfoTimestamp", null);
|
|
16167
16204
|
const t = Date.now();
|
|
16168
|
-
O.init(), this.slsReporter = new $r(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole =
|
|
16205
|
+
O.init(), this.slsReporter = new $r(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole = Nt.AliRtcSdkLive, this.liveTranscoding = new Uc(this.slsReporter), this.signalingManager = new ns(
|
|
16169
16206
|
this.channelProfile,
|
|
16170
16207
|
this.clientRole,
|
|
16171
16208
|
this.slsReporter,
|
|
@@ -16233,7 +16270,7 @@ const z = (K = class extends De {
|
|
|
16233
16270
|
return e ? e.isPublishing : !1;
|
|
16234
16271
|
}
|
|
16235
16272
|
get currentRoleCanPublish() {
|
|
16236
|
-
return this.channelProfile === bt.AliRtcSdkCommunication || this.clientRole ===
|
|
16273
|
+
return this.channelProfile === bt.AliRtcSdkCommunication || this.clientRole === Nt.AliRtcSdkInteractive;
|
|
16237
16274
|
}
|
|
16238
16275
|
/**
|
|
16239
16276
|
* 监听 Publisher 事件
|
|
@@ -16242,21 +16279,21 @@ const z = (K = class extends De {
|
|
|
16242
16279
|
var e, t, i, s, n, c, o, u, h, p;
|
|
16243
16280
|
(e = this.publisher) == null || e.on(Me.Local, (d) => {
|
|
16244
16281
|
O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
|
|
16245
|
-
}), (t = this.publisher) == null || t.on(
|
|
16282
|
+
}), (t = this.publisher) == null || t.on(Vt.VideoTrackEnded, () => {
|
|
16246
16283
|
O.event("[Publisher] VideoTrack Ended"), this.emit(
|
|
16247
16284
|
"localDeviceException",
|
|
16248
16285
|
dt.AliEngineLocalDeviceTypeCamera,
|
|
16249
16286
|
_e.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
|
|
16250
16287
|
""
|
|
16251
16288
|
);
|
|
16252
|
-
}), (i = this.publisher) == null || i.on(
|
|
16289
|
+
}), (i = this.publisher) == null || i.on(Vt.ScreenTrackEnded, () => {
|
|
16253
16290
|
O.event("[Publisher] ScreenTrack Ended"), this.emit(
|
|
16254
16291
|
"localDeviceException",
|
|
16255
16292
|
dt.AliEngineLocalDeviceTypeDisplay,
|
|
16256
16293
|
_e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
16257
16294
|
""
|
|
16258
16295
|
);
|
|
16259
|
-
}), (s = this.publisher) == null || s.on(
|
|
16296
|
+
}), (s = this.publisher) == null || s.on(Vt.AudioTrackEnded, () => {
|
|
16260
16297
|
O.event("[Publisher] AudioTrack Ended"), this.emit(
|
|
16261
16298
|
"localDeviceException",
|
|
16262
16299
|
dt.AliEngineLocalDeviceTypeMic,
|
|
@@ -16550,7 +16587,7 @@ const z = (K = class extends De {
|
|
|
16550
16587
|
ue.AliRtcConnectionStatusFailed
|
|
16551
16588
|
].includes(this.connectState))
|
|
16552
16589
|
throw new V(U.ERR_INNER, "cannot set channel profile in call");
|
|
16553
|
-
this.channelProfile = e, this.channelProfile === bt.AliRtcSdkCommunication && (this.clientRole =
|
|
16590
|
+
this.channelProfile = e, this.channelProfile === bt.AliRtcSdkCommunication && (this.clientRole = Nt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
|
|
16554
16591
|
}
|
|
16555
16592
|
startAndPublishDefaultDevices(e) {
|
|
16556
16593
|
return w(this, null, function* () {
|
|
@@ -16599,14 +16636,14 @@ const z = (K = class extends De {
|
|
|
16599
16636
|
try {
|
|
16600
16637
|
if (this.channelProfile === bt.AliRtcSdkCommunication)
|
|
16601
16638
|
return;
|
|
16602
|
-
if (!Object.values(
|
|
16639
|
+
if (!Object.values(Nt).includes(e))
|
|
16603
16640
|
throw new V(
|
|
16604
16641
|
U.ERR_INVALID_ARGUMENTS,
|
|
16605
16642
|
`set client role error, role value(${e}) is invalid`
|
|
16606
16643
|
);
|
|
16607
16644
|
if (this.clientRole === e)
|
|
16608
16645
|
return;
|
|
16609
|
-
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole ===
|
|
16646
|
+
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Nt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(nt.ROLE_CHANGE)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
|
|
16610
16647
|
} catch (s) {
|
|
16611
16648
|
throw s.code === 403 && this.emit("authInfoExpired"), s;
|
|
16612
16649
|
}
|
|
@@ -17076,7 +17113,7 @@ const z = (K = class extends De {
|
|
|
17076
17113
|
setCameraCapturerConfiguration(e) {
|
|
17077
17114
|
return w(this, null, function* () {
|
|
17078
17115
|
var h, p, d;
|
|
17079
|
-
const u = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = u, c =
|
|
17116
|
+
const u = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = u, c = Dt(u, ["cameraDirection", "deviceId", "bitrate", "maxSendFrameRate"]), o = J({}, c);
|
|
17080
17117
|
s && (o.maxBitrate = s), n && (o.maxSendFrameRate = n), Object.keys(o).length > 0 && (yield (h = this.publisher) == null ? void 0 : h.setVideoProfile(o)), t !== void 0 && ((p = this.publisher) == null || p.setCameraDirection(t)), i && ((d = this.publisher) == null || d.setCameraDeviceId(i));
|
|
17081
17118
|
});
|
|
17082
17119
|
}
|
|
@@ -17374,7 +17411,7 @@ g(K, "getCameraList", () => w(K, null, function* () {
|
|
|
17374
17411
|
return (yield le.getMicList()).filter((t) => t.deviceId);
|
|
17375
17412
|
})), g(K, "getSpeakerList", () => w(K, null, function* () {
|
|
17376
17413
|
return (yield le.getSpeakerList()).filter((t) => t.deviceId);
|
|
17377
|
-
})), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole",
|
|
17414
|
+
})), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole", Nt), g(K, "AliRtcVideoStreamType", we), g(K, "AliRtcVideoTrack", se), g(K, "AliRtcAudioTrack", Xt), g(K, "AliRtcPublishState", Y), g(K, "AliRtcSubscribeState", he), g(K, "AliRtcRawDataStreamType", be), g(K, "AliRtcLogLevel", fn), g(K, "AliRtcEngineLocalDeviceType", dt), g(K, "AliRtcEngineLocalDeviceExceptionType", _e), g(K, "AliRtcConnectionStatus", ue), g(K, "AliRtcConnectionStatusChangeReason", Wt), g(K, "AliRtcPlugin", Gt), g(K, "AliRtcPluginTrackType", Ri), g(K, "AliRtcLiveTranscodingParam", Fr), g(K, "AliRtcLiveTranscodingEncodeParam", vn), g(K, "AliRtcLiveTranscodingMixParam", Hc), g(K, "AliRtcLiveTranscodingSingleParam", jc), g(K, "AliRtcTranscodingClockWidget", zc), g(K, "AliRtcTranscodingImage", In), g(K, "AliRtcTranscodingText", Wc), g(K, "AliRtcTranscodingUser", $c), g(K, "AliRtcLiveTranscodingMixMode", bi), g(K, "AliRtcLiveTranscodingStreamType", pn), g(K, "AliRtcLiveTranscodingSourceType", ni), g(K, "AliRtcLiveTranscodingTaskProfile", gn), g(K, "AliRtcLiveTranscodingAudioSampleRate", ts), g(K, "AliRtcLiveTranscodingSegmentType", Ei), g(K, "AliRtcLiveTranscodingFontType", Ii), g(K, "AliRtcLiveTranscodingCropMode", mn), g(K, "AliRtcLiveTranscodingMediaProcessMode", is), g(K, "AliRtcLiveTranscodingState", xn), g(K, "AliRtcLiveTranscodingErrorCode", ht), g(K, "AliRtcTrascodingPublishTaskStatus", Sn), g(K, "AliRtcDataChannelMsg", qt), g(K, "AliRtcDataMsgType", An), g(K, "Plugin", Gt), K);
|
|
17378
17415
|
W([
|
|
17379
17416
|
D()
|
|
17380
17417
|
], z.prototype, "destroy", 1);
|
|
@@ -17645,7 +17682,7 @@ export {
|
|
|
17645
17682
|
be as AliRtcRawDataStreamType,
|
|
17646
17683
|
lc as AliRtcRemoteUserInfo,
|
|
17647
17684
|
bt as AliRtcSdkChannelProfile,
|
|
17648
|
-
|
|
17685
|
+
Nt as AliRtcSdkClientRole,
|
|
17649
17686
|
he as AliRtcSubscribeState,
|
|
17650
17687
|
zc as AliRtcTranscodingClockWidget,
|
|
17651
17688
|
In as AliRtcTranscodingImage,
|