aliyun-rtc-sdk 6.14.4-beta.5 → 6.14.4
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 +112 -81
- package/dist/aliyun-rtc-sdk.umd.js +8 -8
- 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)
|
|
@@ -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:
|
|
@@ -2153,7 +2153,7 @@ class qr {
|
|
|
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
|
|
2267
|
+
const yi = "6.14.4", Xs = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
@@ -3862,7 +3862,7 @@ 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,
|
|
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
3866
|
var Re, tt, wt = d[Be];
|
|
3867
3867
|
if (Be < 16)
|
|
3868
3868
|
tt = wt.high = m[l + Be * 2] | 0, Re = wt.low = m[l + Be * 2 + 1] | 0;
|
|
@@ -3870,10 +3870,10 @@ function dn() {
|
|
|
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
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 & Ct ^ ~ke & Rt, Ln =
|
|
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 =
|
|
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;
|
|
@@ -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,
|
|
@@ -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(
|
|
@@ -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
|
}
|
|
@@ -10737,7 +10737,7 @@ const ge = (lt = class extends bn {
|
|
|
10737
10737
|
let s = e;
|
|
10738
10738
|
if (this.dc) {
|
|
10739
10739
|
const c = e, { tracks: u } = c, h = Dt(c, ["tracks"]);
|
|
10740
|
-
s = ut(
|
|
10740
|
+
s = ut(J({}, h), {
|
|
10741
10741
|
tracks: [
|
|
10742
10742
|
...u,
|
|
10743
10743
|
{
|
|
@@ -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
|
}
|
|
@@ -13520,7 +13520,7 @@ const Ze = (At = 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(`[${At.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4
|
|
13523
|
+
if (O.info(`[${At.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4")) {
|
|
13524
13524
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13525
13525
|
return;
|
|
13526
13526
|
}
|
|
@@ -13635,7 +13635,7 @@ const Ze = (At = 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({
|
|
@@ -13727,11 +13727,11 @@ const Ze = (At = class extends De {
|
|
|
13727
13727
|
}
|
|
13728
13728
|
setCameraVideoConstraints(e) {
|
|
13729
13729
|
var t;
|
|
13730
|
-
this.cameraStreamInfo.cameraVideoConstraints =
|
|
13730
|
+
this.cameraStreamInfo.cameraVideoConstraints = J(J({}, (t = this.cameraStreamInfo.cameraVideoConstraints) != null ? t : {}), e);
|
|
13731
13731
|
}
|
|
13732
13732
|
setMicAudioConstraints(e) {
|
|
13733
13733
|
var t;
|
|
13734
|
-
this.cameraStreamInfo.micAudioConstraints =
|
|
13734
|
+
this.cameraStreamInfo.micAudioConstraints = J(J({}, (t = this.cameraStreamInfo.micAudioConstraints) != null ? t : {}), e);
|
|
13735
13735
|
}
|
|
13736
13736
|
}, /**
|
|
13737
13737
|
* @ignore
|
|
@@ -14379,7 +14379,7 @@ class en extends os {
|
|
|
14379
14379
|
);
|
|
14380
14380
|
}
|
|
14381
14381
|
updateOptions(e) {
|
|
14382
|
-
super.updateOptions(e), this.worker && this.worker.postMessage(
|
|
14382
|
+
super.updateOptions(e), this.worker && this.worker.postMessage(J({
|
|
14383
14383
|
type: "updateOptions"
|
|
14384
14384
|
}, e));
|
|
14385
14385
|
}
|
|
@@ -14496,7 +14496,19 @@ class Pe extends De {
|
|
|
14496
14496
|
}
|
|
14497
14497
|
addSignalingManagerListener() {
|
|
14498
14498
|
this.signalingManager.on("onNotifyPublish", (e) => {
|
|
14499
|
-
|
|
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) => {
|
|
14500
14512
|
this.onRemotePublishStateChange(t);
|
|
14501
14513
|
});
|
|
14502
14514
|
}), this.signalingManager.stsManager.on("onTokenUpdate", (e, t) => {
|
|
@@ -14872,7 +14884,7 @@ class Pe extends De {
|
|
|
14872
14884
|
});
|
|
14873
14885
|
}
|
|
14874
14886
|
refreshAuthInfo(e) {
|
|
14875
|
-
this.authInfo && (this.authInfo =
|
|
14887
|
+
this.authInfo && (this.authInfo = J(J({}, this.authInfo), e)), e.userId && this.self.refreshUserInfo(e.userId);
|
|
14876
14888
|
}
|
|
14877
14889
|
setEnableMediaExtensionMsg(e) {
|
|
14878
14890
|
this.rtsManager.setEncodedInsertableStreams(e);
|
|
@@ -14885,7 +14897,7 @@ class Pe extends De {
|
|
|
14885
14897
|
const t = JSON.parse(e);
|
|
14886
14898
|
Object.keys(t).forEach((c) => {
|
|
14887
14899
|
const o = this.parameter[c], u = t[c];
|
|
14888
|
-
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;
|
|
14889
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);
|
|
14890
14902
|
}
|
|
14891
14903
|
getParameter() {
|
|
@@ -15048,7 +15060,7 @@ class Uc {
|
|
|
15048
15060
|
return this.doRequest(e, t);
|
|
15049
15061
|
}
|
|
15050
15062
|
refreshAuthInfo(a) {
|
|
15051
|
-
this.authInfo && this.setAuthInfo(
|
|
15063
|
+
this.authInfo && this.setAuthInfo(J(J({}, this.authInfo), a));
|
|
15052
15064
|
}
|
|
15053
15065
|
}
|
|
15054
15066
|
class cs {
|
|
@@ -15294,7 +15306,7 @@ class rn {
|
|
|
15294
15306
|
const i = Zr(t);
|
|
15295
15307
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
|
|
15296
15308
|
var c, o;
|
|
15297
|
-
(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));
|
|
15298
15310
|
}), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
|
|
15299
15311
|
}
|
|
15300
15312
|
}
|
|
@@ -15320,7 +15332,7 @@ class rn {
|
|
|
15320
15332
|
let e;
|
|
15321
15333
|
try {
|
|
15322
15334
|
e = JSON.parse(
|
|
15323
|
-
JSON.stringify(
|
|
15335
|
+
JSON.stringify(J(ut(J({
|
|
15324
15336
|
bt: Mr.browserName || "unknown",
|
|
15325
15337
|
ntptm: this.ntpClock.now(),
|
|
15326
15338
|
// NTP时间
|
|
@@ -15398,6 +15410,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15398
15410
|
g(this, "logClient");
|
|
15399
15411
|
g(this, "authInfo");
|
|
15400
15412
|
g(this, "ntpClock");
|
|
15413
|
+
g(this, "customFields", {});
|
|
15401
15414
|
this.logClient = new rn(), this.engine = a, this.ntpClock = wn();
|
|
15402
15415
|
}
|
|
15403
15416
|
static getLogClient() {
|
|
@@ -15413,6 +15426,21 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15413
15426
|
stat_log_id: `${a}-70017`
|
|
15414
15427
|
});
|
|
15415
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
|
+
}
|
|
15416
15444
|
/**
|
|
15417
15445
|
* 开始建立连接
|
|
15418
15446
|
* @param authInfo
|
|
@@ -15439,7 +15467,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15439
15467
|
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [];
|
|
15440
15468
|
try {
|
|
15441
15469
|
if (s.forEach((I) => {
|
|
15442
|
-
var F, N,
|
|
15470
|
+
var F, N, G, j, ce, Z;
|
|
15443
15471
|
if (!I || !I.timestamp)
|
|
15444
15472
|
return;
|
|
15445
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);
|
|
@@ -15456,7 +15484,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15456
15484
|
if (f.push(M), n)
|
|
15457
15485
|
(N = I._source) != null && N.audioLevel && m.push(sn(I._source.audioLevel)), l.push(0);
|
|
15458
15486
|
else {
|
|
15459
|
-
x.push(an(I, "totalEncodeTime")), v.push(Bt((
|
|
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));
|
|
15460
15488
|
const Ve = pe(I, "totalPacketSendDelay");
|
|
15461
15489
|
R.push(fe(Ve, 1 / (ee || 1), 2e3));
|
|
15462
15490
|
const ze = pe(I, "qpSum");
|
|
@@ -15473,7 +15501,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15473
15501
|
evetid: 10070,
|
|
15474
15502
|
traceid: e,
|
|
15475
15503
|
calid: a,
|
|
15476
|
-
args: this.data2String(
|
|
15504
|
+
args: this.data2String(J({
|
|
15477
15505
|
calid: a,
|
|
15478
15506
|
tckid: t,
|
|
15479
15507
|
traceid: e
|
|
@@ -15487,7 +15515,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15487
15515
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15488
15516
|
src: s[0].ssrc || "",
|
|
15489
15517
|
codec: s[0]._codec || ""
|
|
15490
|
-
}, 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 = [];
|
|
15491
15519
|
try {
|
|
15492
15520
|
s.forEach((j) => {
|
|
15493
15521
|
var tt, wt;
|
|
@@ -15514,7 +15542,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15514
15542
|
const It = pe(j, "fecPacketsReceived");
|
|
15515
15543
|
b.push(kt(It, Se));
|
|
15516
15544
|
const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
|
|
15517
|
-
if (x.push(kt(Se - Be, Re)), v.push(kt(ot, Re)), l.push(kt(Be, Re)), S.push(Re), N.push(0),
|
|
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) {
|
|
15518
15546
|
_.push(sn(j.audioLevel));
|
|
15519
15547
|
const gt = Kc(j, "synthesizedSamplesEvents");
|
|
15520
15548
|
y.push(gt);
|
|
@@ -15542,7 +15570,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15542
15570
|
const Zt = pe(j, "jitterBufferMinimumDelay");
|
|
15543
15571
|
Zt && We ? M.push(fe(Zt, 1e3 / We, 3e4)) : M.push(0);
|
|
15544
15572
|
}
|
|
15545
|
-
}), 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(","));
|
|
15546
15574
|
} catch (j) {
|
|
15547
15575
|
}
|
|
15548
15576
|
this.log({
|
|
@@ -15550,7 +15578,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15550
15578
|
traceid: t,
|
|
15551
15579
|
rmtid: e,
|
|
15552
15580
|
calid: a,
|
|
15553
|
-
args: this.data2String(
|
|
15581
|
+
args: this.data2String(J({
|
|
15554
15582
|
calid: a,
|
|
15555
15583
|
rmtid: e,
|
|
15556
15584
|
tckid: i,
|
|
@@ -15582,14 +15610,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15582
15610
|
};
|
|
15583
15611
|
this.log({
|
|
15584
15612
|
evetid: 10071,
|
|
15585
|
-
args: this.data2String(
|
|
15613
|
+
args: this.data2String(J({
|
|
15586
15614
|
asb: t.join(","),
|
|
15587
15615
|
abms: n.join(","),
|
|
15588
15616
|
vbms: c.join(",")
|
|
15589
15617
|
}, d))
|
|
15590
15618
|
}), this.log({
|
|
15591
15619
|
evetid: 10081,
|
|
15592
|
-
args: this.data2String(
|
|
15620
|
+
args: this.data2String(J({}, d))
|
|
15593
15621
|
});
|
|
15594
15622
|
}
|
|
15595
15623
|
/**
|
|
@@ -15638,7 +15666,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15638
15666
|
reportJoinConnection(a) {
|
|
15639
15667
|
this.log({
|
|
15640
15668
|
evetid: 20002,
|
|
15641
|
-
args: this.data2String(
|
|
15669
|
+
args: this.data2String(J({
|
|
15642
15670
|
transretrynum: 0,
|
|
15643
15671
|
ldnstc: 0,
|
|
15644
15672
|
tcptc: 0,
|
|
@@ -15771,7 +15799,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15771
15799
|
evetid: 10050,
|
|
15772
15800
|
calid: a,
|
|
15773
15801
|
rmtid: e,
|
|
15774
|
-
args: this.data2String(
|
|
15802
|
+
args: this.data2String(J({
|
|
15775
15803
|
calid: a,
|
|
15776
15804
|
rmtid: e,
|
|
15777
15805
|
isvl: t ? 1 : 0,
|
|
@@ -15795,7 +15823,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15795
15823
|
evetid: a ? 10054 : 10051,
|
|
15796
15824
|
calid: e,
|
|
15797
15825
|
rmtid: t,
|
|
15798
|
-
args: this.data2String(
|
|
15826
|
+
args: this.data2String(J({
|
|
15799
15827
|
calid: e,
|
|
15800
15828
|
rmtid: t,
|
|
15801
15829
|
tckid: i,
|
|
@@ -15812,14 +15840,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15812
15840
|
evetid: a ? 10055 : 10052,
|
|
15813
15841
|
calid: e,
|
|
15814
15842
|
rmtid: t,
|
|
15815
|
-
args: this.data2String(
|
|
15843
|
+
args: this.data2String(J({
|
|
15816
15844
|
calid: e,
|
|
15817
15845
|
rmtid: t,
|
|
15818
15846
|
tckid: i
|
|
15819
15847
|
}, s))
|
|
15820
15848
|
}), this.log({
|
|
15821
15849
|
evetid: a ? 10058 : 10057,
|
|
15822
|
-
args: this.data2String(
|
|
15850
|
+
args: this.data2String(J({
|
|
15823
15851
|
calid: e,
|
|
15824
15852
|
rmtid: t,
|
|
15825
15853
|
tckid: i
|
|
@@ -16047,7 +16075,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16047
16075
|
reportPublishProfile(a, e) {
|
|
16048
16076
|
this.log({
|
|
16049
16077
|
evetid: 10201,
|
|
16050
|
-
args: this.data2String(
|
|
16078
|
+
args: this.data2String(J({
|
|
16051
16079
|
tckid: a
|
|
16052
16080
|
}, e))
|
|
16053
16081
|
});
|
|
@@ -16110,19 +16138,22 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16110
16138
|
* @param tckid
|
|
16111
16139
|
*/
|
|
16112
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);
|
|
16113
16154
|
this.log({
|
|
16114
16155
|
evetid: 12001,
|
|
16115
|
-
args: this.data2String(
|
|
16116
|
-
tm: s || Date.now(),
|
|
16117
|
-
ntptm: n || this.ntpClock.now(),
|
|
16118
|
-
stage: a,
|
|
16119
|
-
status: e,
|
|
16120
|
-
calid: t,
|
|
16121
|
-
tckid: i,
|
|
16122
|
-
cltp: 1,
|
|
16123
|
-
// AI场景profile:0,非ai场景;1,真人;2,机器人。
|
|
16124
|
-
http: c ? 1 : 0
|
|
16125
|
-
})
|
|
16156
|
+
args: this.data2String(u)
|
|
16126
16157
|
});
|
|
16127
16158
|
}
|
|
16128
16159
|
/**
|
|
@@ -17082,7 +17113,7 @@ const z = (K = class extends De {
|
|
|
17082
17113
|
setCameraCapturerConfiguration(e) {
|
|
17083
17114
|
return w(this, null, function* () {
|
|
17084
17115
|
var h, p, d;
|
|
17085
|
-
const u = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = u, c = Dt(u, ["cameraDirection", "deviceId", "bitrate", "maxSendFrameRate"]), o =
|
|
17116
|
+
const u = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = u, c = Dt(u, ["cameraDirection", "deviceId", "bitrate", "maxSendFrameRate"]), o = J({}, c);
|
|
17086
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));
|
|
17087
17118
|
});
|
|
17088
17119
|
}
|