@volcengine/vepusher 2.0.4-rc.10 → 2.0.4-rc.12
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/index.es.d.ts +2 -2
- package/dist/index.es.js +154 -146
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -335,7 +335,7 @@ function va({ width: i, height: e }) {
|
|
|
335
335
|
);
|
|
336
336
|
return t.width = i, t.height = e, t.style.width = "100%", t.style.height = "100%", { context: r, canvas: t };
|
|
337
337
|
}
|
|
338
|
-
class
|
|
338
|
+
class Mn {
|
|
339
339
|
constructor(e) {
|
|
340
340
|
S(this, "target");
|
|
341
341
|
S(this, "_eventDict", /* @__PURE__ */ new Map());
|
|
@@ -411,11 +411,11 @@ function Ou() {
|
|
|
411
411
|
function Un() {
|
|
412
412
|
return !!(navigator != null && navigator.mediaDevices);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Pu() {
|
|
415
415
|
var i;
|
|
416
416
|
return Un() && !!((i = navigator == null ? void 0 : navigator.mediaDevices) != null && i.getUserMedia);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Mu() {
|
|
419
419
|
return !!Promise.withResolvers;
|
|
420
420
|
}
|
|
421
421
|
function Lu() {
|
|
@@ -436,12 +436,12 @@ function Bu(i) {
|
|
|
436
436
|
function Vu() {
|
|
437
437
|
return !!Un() && typeof navigator.mediaDevices.ondevicechange < "u" && typeof navigator.mediaDevices.addEventListener == "function";
|
|
438
438
|
}
|
|
439
|
-
const
|
|
439
|
+
const Me = {
|
|
440
440
|
permissionQuery: Ou,
|
|
441
441
|
mediaDevices: Un,
|
|
442
442
|
settingResolutionInGetDisplayMedia: Lu,
|
|
443
|
-
promiseWithResolvers:
|
|
444
|
-
getUserMedia:
|
|
443
|
+
promiseWithResolvers: Mu,
|
|
444
|
+
getUserMedia: Pu,
|
|
445
445
|
isolateEnumerateDevices: Gu,
|
|
446
446
|
supportIdealParamsInGetDisplayMedia: Uu,
|
|
447
447
|
canvasCaptureMediaStreamTrack: Nu,
|
|
@@ -449,7 +449,7 @@ const Pe = {
|
|
|
449
449
|
ondevicechange: Vu
|
|
450
450
|
};
|
|
451
451
|
function Fu() {
|
|
452
|
-
if (
|
|
452
|
+
if (Me.promiseWithResolvers())
|
|
453
453
|
return Promise.withResolvers();
|
|
454
454
|
let i, e;
|
|
455
455
|
const t = new Promise((r, n) => {
|
|
@@ -519,7 +519,7 @@ class li {
|
|
|
519
519
|
timeout: 2e3,
|
|
520
520
|
message: new L(U.PLAY_FAILED, "load media timeout")
|
|
521
521
|
});
|
|
522
|
-
this._readyLock = n, this._releaseReadyLock = s, this._throwReadyLock = a, this._element = new
|
|
522
|
+
this._readyLock = n, this._releaseReadyLock = s, this._throwReadyLock = a, this._element = new Mn(r), this._bindPlayerEvent(this._element), this._referenceTracks = [...t];
|
|
523
523
|
}
|
|
524
524
|
addReferenceTrack(e) {
|
|
525
525
|
this._referenceTracks.push(e);
|
|
@@ -712,7 +712,7 @@ class wa {
|
|
|
712
712
|
const { context: s, canvas: a } = va({ width: t, height: r });
|
|
713
713
|
this._context = s, this._canvas = a;
|
|
714
714
|
const o = Ku({ url: e.url, width: t, height: r });
|
|
715
|
-
this._image = new
|
|
715
|
+
this._image = new Mn(o);
|
|
716
716
|
const { promise: d, resolve: c, reject: u } = Sa({
|
|
717
717
|
timeout: 2e3,
|
|
718
718
|
message: new L(U.PLAY_FAILED, "load image timeout")
|
|
@@ -788,7 +788,7 @@ class Nn extends Gn {
|
|
|
788
788
|
S(this, "id", gt());
|
|
789
789
|
S(this, "_track");
|
|
790
790
|
S(this, "_element");
|
|
791
|
-
t instanceof MediaStreamTrack ? (this._track = new
|
|
791
|
+
t instanceof MediaStreamTrack ? (this._track = new Mn(t), this._bindTrackEvent(this._track)) : t instanceof li ? (this._element = t, t.addReferenceTrack(this)) : t instanceof wa && (this._element = t);
|
|
792
792
|
}
|
|
793
793
|
_bindTrackEvent(t) {
|
|
794
794
|
t.on("ended", this._handleTrackEnded.bind(this)), t.on("mute", () => {
|
|
@@ -986,7 +986,7 @@ class td extends Gn {
|
|
|
986
986
|
t.length > 0 && this._refreshDevices(t);
|
|
987
987
|
}
|
|
988
988
|
_initDeviceChanged() {
|
|
989
|
-
if (Te.info("_initDeviceChanged", "invoked"), !
|
|
989
|
+
if (Te.info("_initDeviceChanged", "invoked"), !Me.ondevicechange()) {
|
|
990
990
|
Te.error(
|
|
991
991
|
"_initDeviceChanged",
|
|
992
992
|
"no supported, use timer instead"
|
|
@@ -995,14 +995,14 @@ class td extends Gn {
|
|
|
995
995
|
}, ed);
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
|
-
|
|
998
|
+
Me.ondevicechange() && navigator.mediaDevices.addEventListener("devicechange", () => {
|
|
999
999
|
Te.info("devicechange"), setTimeout(() => {
|
|
1000
1000
|
this._handleDeviceChanged();
|
|
1001
1001
|
}, Yu);
|
|
1002
1002
|
});
|
|
1003
1003
|
}
|
|
1004
1004
|
async _initPermissionChanged() {
|
|
1005
|
-
if (!
|
|
1005
|
+
if (!Me.permissionQuery()) {
|
|
1006
1006
|
Te.error(
|
|
1007
1007
|
"_initPermissionChanged",
|
|
1008
1008
|
"permission query not supported, silent return"
|
|
@@ -1037,7 +1037,7 @@ class td extends Gn {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
async _refreshDevices(t) {
|
|
1040
|
-
if (!
|
|
1040
|
+
if (!Me.mediaDevices())
|
|
1041
1041
|
throw new L(
|
|
1042
1042
|
U.NOT_SUPPORTED,
|
|
1043
1043
|
"mediaDevices is not supported"
|
|
@@ -1048,7 +1048,7 @@ class td extends Gn {
|
|
|
1048
1048
|
"kinds expect to containt values"
|
|
1049
1049
|
);
|
|
1050
1050
|
let r;
|
|
1051
|
-
if (!
|
|
1051
|
+
if (!Me.isolateEnumerateDevices()) {
|
|
1052
1052
|
const a = {};
|
|
1053
1053
|
t.forEach((o) => {
|
|
1054
1054
|
a[o] = !0;
|
|
@@ -1072,7 +1072,7 @@ class td extends Gn {
|
|
|
1072
1072
|
r = r || !this._permissions[n];
|
|
1073
1073
|
}), !r)
|
|
1074
1074
|
return { grant: !0 };
|
|
1075
|
-
if (!
|
|
1075
|
+
if (!Me.getUserMedia())
|
|
1076
1076
|
return {
|
|
1077
1077
|
grant: !1,
|
|
1078
1078
|
reason: new L(
|
|
@@ -1449,7 +1449,7 @@ async function ld(i, e) {
|
|
|
1449
1449
|
async function pd(i, e, t) {
|
|
1450
1450
|
const { video: r, audio: n } = i;
|
|
1451
1451
|
let s = r === !0 ? {} : r;
|
|
1452
|
-
e != null && e.displaySurface && (s.displaySurface = e.displaySurface, delete e.displaySurface),
|
|
1452
|
+
e != null && e.displaySurface && (s.displaySurface = e.displaySurface, delete e.displaySurface), Me.settingResolutionInGetDisplayMedia() || (s = !0), !Me.supportIdealParamsInGetDisplayMedia() && typeof s != "boolean" && (s.width && typeof s.width == "number" && (s.width = {
|
|
1453
1453
|
max: s.width
|
|
1454
1454
|
}), s.height && typeof s.height == "number" && (s.height = {
|
|
1455
1455
|
max: s.height
|
|
@@ -1621,7 +1621,7 @@ const Dd = (i) => (e, t) => (i.set(e, t), t), As = Number.MAX_SAFE_INTEGER === v
|
|
|
1621
1621
|
for (; t.has(n); )
|
|
1622
1622
|
n = Math.floor(Math.random() * As);
|
|
1623
1623
|
return i(t, n);
|
|
1624
|
-
}, za = /* @__PURE__ */ new WeakMap(), Id = Dd(za), Xe = xd(Id, za), Od = (i) => i.method !== void 0 && i.method === "call",
|
|
1624
|
+
}, za = /* @__PURE__ */ new WeakMap(), Id = Dd(za), Xe = xd(Id, za), Od = (i) => i.method !== void 0 && i.method === "call", Pd = (i) => typeof i.id == "number" && typeof i.result == "boolean", Md = (i) => {
|
|
1625
1625
|
const e = /* @__PURE__ */ new Map([[0, () => {
|
|
1626
1626
|
}]]), t = /* @__PURE__ */ new Map([[0, () => {
|
|
1627
1627
|
}]]), r = /* @__PURE__ */ new Map(), n = new Worker(i);
|
|
@@ -1647,7 +1647,7 @@ const Dd = (i) => (e, t) => (i.set(e, t), t), As = Number.MAX_SAFE_INTEGER === v
|
|
|
1647
1647
|
throw new Error("The timer is in an undefined state.");
|
|
1648
1648
|
} else typeof h == "function" && (h(), t.delete(u));
|
|
1649
1649
|
}
|
|
1650
|
-
} else if (
|
|
1650
|
+
} else if (Pd(c)) {
|
|
1651
1651
|
const { id: u } = c, l = r.get(u);
|
|
1652
1652
|
if (l === void 0)
|
|
1653
1653
|
throw new Error("The timer is in an undefined state.");
|
|
@@ -1724,7 +1724,7 @@ const Dd = (i) => (e, t) => (i.set(e, t), t), As = Number.MAX_SAFE_INTEGER === v
|
|
|
1724
1724
|
const r = new Blob([e], { type: "application/javascript; charset=utf-8" }), n = URL.createObjectURL(r);
|
|
1725
1725
|
return t = i(n), setTimeout(() => URL.revokeObjectURL(n)), t;
|
|
1726
1726
|
};
|
|
1727
|
-
}, Ud = `(()=>{"use strict";const e=new Map,t=new Map,r=t=>{const r=e.get(t);return void 0!==r&&(clearTimeout(r),e.delete(t),!0)},s=e=>{const r=t.get(e);return void 0!==r&&(clearTimeout(r),t.delete(e),!0)},o=(e,t)=>{const r=performance.now(),s=e+t-r-performance.timeOrigin;return{expected:r+s,remainingDelay:s}},i=(e,t,r,s)=>{const o=r-performance.now();o>0?e.set(t,setTimeout(i,o,e,t,r,s)):(e.delete(t),postMessage({id:null,method:"call",params:{timerId:t,timerType:s}}))};addEventListener("message",(({data:n})=>{try{if("clear"===n.method){const{id:e,params:{timerId:t,timerType:o}}=n;if("interval"===o)postMessage({id:e,result:r(t)});else{if("timeout"!==o)throw new Error('The given type "'.concat(o,'" is not supported'));postMessage({id:e,result:s(t)})}}else{if("set"!==n.method)throw new Error('The given method "'.concat(n.method,'" is not supported'));{const{params:{delay:r,now:s,timerId:a,timerType:m}}=n;if("interval"===m)((t,r,s)=>{const{expected:n,remainingDelay:a}=o(t,s);e.set(r,setTimeout(i,a,e,r,n,"interval"))})(r,a,s);else{if("timeout"!==m)throw new Error('The given type "'.concat(m,'" is not supported'));((e,r,s)=>{const{expected:n,remainingDelay:a}=o(e,s);t.set(r,setTimeout(i,a,t,r,n,"timeout"))})(r,a,s)}}}}catch(e){postMessage({error:{message:e.message},id:n.id,result:null})}}))})();`, Aa = Ld(
|
|
1727
|
+
}, Ud = `(()=>{"use strict";const e=new Map,t=new Map,r=t=>{const r=e.get(t);return void 0!==r&&(clearTimeout(r),e.delete(t),!0)},s=e=>{const r=t.get(e);return void 0!==r&&(clearTimeout(r),t.delete(e),!0)},o=(e,t)=>{const r=performance.now(),s=e+t-r-performance.timeOrigin;return{expected:r+s,remainingDelay:s}},i=(e,t,r,s)=>{const o=r-performance.now();o>0?e.set(t,setTimeout(i,o,e,t,r,s)):(e.delete(t),postMessage({id:null,method:"call",params:{timerId:t,timerType:s}}))};addEventListener("message",(({data:n})=>{try{if("clear"===n.method){const{id:e,params:{timerId:t,timerType:o}}=n;if("interval"===o)postMessage({id:e,result:r(t)});else{if("timeout"!==o)throw new Error('The given type "'.concat(o,'" is not supported'));postMessage({id:e,result:s(t)})}}else{if("set"!==n.method)throw new Error('The given method "'.concat(n.method,'" is not supported'));{const{params:{delay:r,now:s,timerId:a,timerType:m}}=n;if("interval"===m)((t,r,s)=>{const{expected:n,remainingDelay:a}=o(t,s);e.set(r,setTimeout(i,a,e,r,n,"interval"))})(r,a,s);else{if("timeout"!==m)throw new Error('The given type "'.concat(m,'" is not supported'));((e,r,s)=>{const{expected:n,remainingDelay:a}=o(e,s);t.set(r,setTimeout(i,a,t,r,n,"timeout"))})(r,a,s)}}}}catch(e){postMessage({error:{message:e.message},id:n.id,result:null})}}))})();`, Aa = Ld(Md, Ud), Gd = (i) => Aa().clearTimeout(i), Nd = (...i) => Aa().setTimeout(...i), Bd = (i) => i.method !== void 0 && i.method === "call", Vd = (i) => typeof i.id == "number" && typeof i.result == "boolean", Fd = (i) => {
|
|
1728
1728
|
const e = /* @__PURE__ */ new Map([
|
|
1729
1729
|
[0, () => {
|
|
1730
1730
|
}]
|
|
@@ -2170,12 +2170,12 @@ var rh = "[object Null]", nh = "[object Undefined]", Ds = rt ? rt.toStringTag :
|
|
|
2170
2170
|
function Gt(i) {
|
|
2171
2171
|
return i == null ? i === void 0 ? nh : rh : Ds && Ds in Object(i) ? Yd(i) : ih(i);
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function Pt(i) {
|
|
2174
2174
|
return i != null && typeof i == "object";
|
|
2175
2175
|
}
|
|
2176
2176
|
var sh = "[object Symbol]";
|
|
2177
2177
|
function dr(i) {
|
|
2178
|
-
return typeof i == "symbol" ||
|
|
2178
|
+
return typeof i == "symbol" || Pt(i) && Gt(i) == sh;
|
|
2179
2179
|
}
|
|
2180
2180
|
function Ia(i, e) {
|
|
2181
2181
|
for (var t = -1, r = i == null ? 0 : i.length, n = Array(r); ++t < r; )
|
|
@@ -2241,18 +2241,18 @@ function yh(i) {
|
|
|
2241
2241
|
return i;
|
|
2242
2242
|
}
|
|
2243
2243
|
var bh = "[object AsyncFunction]", Sh = "[object Function]", Eh = "[object GeneratorFunction]", wh = "[object Proxy]";
|
|
2244
|
-
function
|
|
2244
|
+
function Pa(i) {
|
|
2245
2245
|
if (!pi(i))
|
|
2246
2246
|
return !1;
|
|
2247
2247
|
var e = Gt(i);
|
|
2248
2248
|
return e == Sh || e == Eh || e == bh || e == wh;
|
|
2249
2249
|
}
|
|
2250
|
-
var kr = je["__core-js_shared__"],
|
|
2250
|
+
var kr = je["__core-js_shared__"], Ps = function() {
|
|
2251
2251
|
var i = /[^.]+$/.exec(kr && kr.keys && kr.keys.IE_PROTO || "");
|
|
2252
2252
|
return i ? "Symbol(src)_1." + i : "";
|
|
2253
2253
|
}();
|
|
2254
2254
|
function Ch(i) {
|
|
2255
|
-
return !!
|
|
2255
|
+
return !!Ps && Ps in i;
|
|
2256
2256
|
}
|
|
2257
2257
|
var kh = Function.prototype, Th = kh.toString;
|
|
2258
2258
|
function vt(i) {
|
|
@@ -2271,18 +2271,18 @@ function vt(i) {
|
|
|
2271
2271
|
var zh = /[\\^$.*+?()[\]{}|]/g, Ah = /^\[object .+?Constructor\]$/, Rh = Function.prototype, Dh = Object.prototype, xh = Rh.toString, Ih = Dh.hasOwnProperty, Oh = RegExp(
|
|
2272
2272
|
"^" + xh.call(Ih).replace(zh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2273
2273
|
);
|
|
2274
|
-
function
|
|
2274
|
+
function Ph(i) {
|
|
2275
2275
|
if (!pi(i) || Ch(i))
|
|
2276
2276
|
return !1;
|
|
2277
|
-
var e =
|
|
2277
|
+
var e = Pa(i) ? Oh : Ah;
|
|
2278
2278
|
return e.test(vt(i));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function Mh(i, e) {
|
|
2281
2281
|
return i == null ? void 0 : i[e];
|
|
2282
2282
|
}
|
|
2283
2283
|
function Nt(i, e) {
|
|
2284
|
-
var t =
|
|
2285
|
-
return
|
|
2284
|
+
var t = Mh(i, e);
|
|
2285
|
+
return Ph(t) ? t : void 0;
|
|
2286
2286
|
}
|
|
2287
2287
|
var un = Nt(je, "WeakMap");
|
|
2288
2288
|
function Lh(i, e, t, r) {
|
|
@@ -2292,7 +2292,7 @@ function Lh(i, e, t, r) {
|
|
|
2292
2292
|
return -1;
|
|
2293
2293
|
}
|
|
2294
2294
|
var Uh = 9007199254740991, Gh = /^(?:0|[1-9]\d*)$/;
|
|
2295
|
-
function
|
|
2295
|
+
function Ma(i, e) {
|
|
2296
2296
|
var t = typeof i;
|
|
2297
2297
|
return e = e ?? Uh, !!e && (t == "number" || t != "symbol" && Gh.test(i)) && i > -1 && i % 1 == 0 && i < e;
|
|
2298
2298
|
}
|
|
@@ -2304,7 +2304,7 @@ function Vn(i) {
|
|
|
2304
2304
|
return typeof i == "number" && i > -1 && i % 1 == 0 && i <= Nh;
|
|
2305
2305
|
}
|
|
2306
2306
|
function hr(i) {
|
|
2307
|
-
return i != null && Vn(i.length) && !
|
|
2307
|
+
return i != null && Vn(i.length) && !Pa(i);
|
|
2308
2308
|
}
|
|
2309
2309
|
var Bh = Object.prototype;
|
|
2310
2310
|
function Ua(i) {
|
|
@@ -2317,13 +2317,13 @@ function Vh(i, e) {
|
|
|
2317
2317
|
return r;
|
|
2318
2318
|
}
|
|
2319
2319
|
var Fh = "[object Arguments]";
|
|
2320
|
-
function
|
|
2321
|
-
return
|
|
2320
|
+
function Ms(i) {
|
|
2321
|
+
return Pt(i) && Gt(i) == Fh;
|
|
2322
2322
|
}
|
|
2323
|
-
var Ga = Object.prototype, jh = Ga.hasOwnProperty, Hh = Ga.propertyIsEnumerable, Fn =
|
|
2323
|
+
var Ga = Object.prototype, jh = Ga.hasOwnProperty, Hh = Ga.propertyIsEnumerable, Fn = Ms(/* @__PURE__ */ function() {
|
|
2324
2324
|
return arguments;
|
|
2325
|
-
}()) ?
|
|
2326
|
-
return
|
|
2325
|
+
}()) ? Ms : function(i) {
|
|
2326
|
+
return Pt(i) && jh.call(i, "callee") && !Hh.call(i, "callee");
|
|
2327
2327
|
};
|
|
2328
2328
|
function $h() {
|
|
2329
2329
|
return !1;
|
|
@@ -2332,7 +2332,7 @@ var Na = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
2332
2332
|
q[ul] = q[dl] = q[hl] = q[ll] = q[pl] = q[fl] = q[ml] = q[_l] = q[gl] = !0;
|
|
2333
2333
|
q[Wh] = q[Jh] = q[al] = q[Xh] = q[cl] = q[Zh] = q[Qh] = q[Yh] = q[el] = q[tl] = q[il] = q[rl] = q[nl] = q[sl] = q[ol] = !1;
|
|
2334
2334
|
function vl(i) {
|
|
2335
|
-
return
|
|
2335
|
+
return Pt(i) && Vn(i.length) && !!q[Gt(i)];
|
|
2336
2336
|
}
|
|
2337
2337
|
function yl(i) {
|
|
2338
2338
|
return function(e) {
|
|
@@ -2353,7 +2353,7 @@ function wl(i, e) {
|
|
|
2353
2353
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2354
2354
|
n && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2355
2355
|
s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
2356
|
-
|
|
2356
|
+
Ma(c, d))) && o.push(c);
|
|
2357
2357
|
return o;
|
|
2358
2358
|
}
|
|
2359
2359
|
function Cl(i, e) {
|
|
@@ -2388,14 +2388,14 @@ function xl(i) {
|
|
|
2388
2388
|
var e = this.has(i) && delete this.__data__[i];
|
|
2389
2389
|
return this.size -= e ? 1 : 0, e;
|
|
2390
2390
|
}
|
|
2391
|
-
var Il = "__lodash_hash_undefined__", Ol = Object.prototype,
|
|
2392
|
-
function
|
|
2391
|
+
var Il = "__lodash_hash_undefined__", Ol = Object.prototype, Pl = Ol.hasOwnProperty;
|
|
2392
|
+
function Ml(i) {
|
|
2393
2393
|
var e = this.__data__;
|
|
2394
2394
|
if (fi) {
|
|
2395
2395
|
var t = e[i];
|
|
2396
2396
|
return t === Il ? void 0 : t;
|
|
2397
2397
|
}
|
|
2398
|
-
return
|
|
2398
|
+
return Pl.call(e, i) ? e[i] : void 0;
|
|
2399
2399
|
}
|
|
2400
2400
|
var Ll = Object.prototype, Ul = Ll.hasOwnProperty;
|
|
2401
2401
|
function Gl(i) {
|
|
@@ -2416,7 +2416,7 @@ function ft(i) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
ft.prototype.clear = Dl;
|
|
2418
2418
|
ft.prototype.delete = xl;
|
|
2419
|
-
ft.prototype.get =
|
|
2419
|
+
ft.prototype.get = Ml;
|
|
2420
2420
|
ft.prototype.has = Gl;
|
|
2421
2421
|
ft.prototype.set = Bl;
|
|
2422
2422
|
function Vl() {
|
|
@@ -2691,13 +2691,13 @@ function Op(i) {
|
|
|
2691
2691
|
t[++e] = [n, r];
|
|
2692
2692
|
}), t;
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function Pp(i) {
|
|
2695
2695
|
var e = -1, t = Array(i.size);
|
|
2696
2696
|
return i.forEach(function(r) {
|
|
2697
2697
|
t[++e] = r;
|
|
2698
2698
|
}), t;
|
|
2699
2699
|
}
|
|
2700
|
-
var
|
|
2700
|
+
var Mp = 1, Lp = 2, Up = "[object Boolean]", Gp = "[object Date]", Np = "[object Error]", Bp = "[object Map]", Vp = "[object Number]", Fp = "[object RegExp]", jp = "[object Set]", Hp = "[object String]", $p = "[object Symbol]", qp = "[object ArrayBuffer]", Kp = "[object DataView]", Ws = rt ? rt.prototype : void 0, zr = Ws ? Ws.valueOf : void 0;
|
|
2701
2701
|
function Wp(i, e, t, r, n, s, a) {
|
|
2702
2702
|
switch (t) {
|
|
2703
2703
|
case Kp:
|
|
@@ -2718,8 +2718,8 @@ function Wp(i, e, t, r, n, s, a) {
|
|
|
2718
2718
|
case Bp:
|
|
2719
2719
|
var o = Op;
|
|
2720
2720
|
case jp:
|
|
2721
|
-
var d = r &
|
|
2722
|
-
if (o || (o =
|
|
2721
|
+
var d = r & Mp;
|
|
2722
|
+
if (o || (o = Pp), i.size != e.size && !d)
|
|
2723
2723
|
return !1;
|
|
2724
2724
|
var c = a.get(i);
|
|
2725
2725
|
if (c)
|
|
@@ -2787,7 +2787,7 @@ function tf(i, e, t, r, n, s) {
|
|
|
2787
2787
|
return h ? (s || (s = new Ne()), Qp(i, e, t, r, n, s)) : !1;
|
|
2788
2788
|
}
|
|
2789
2789
|
function qn(i, e, t, r, n) {
|
|
2790
|
-
return i === e ? !0 : i == null || e == null || !
|
|
2790
|
+
return i === e ? !0 : i == null || e == null || !Pt(i) && !Pt(e) ? i !== i && e !== e : tf(i, e, t, r, qn, n);
|
|
2791
2791
|
}
|
|
2792
2792
|
var rf = 1, nf = 2;
|
|
2793
2793
|
function sf(i, e, t, r) {
|
|
@@ -2845,7 +2845,7 @@ function uf(i, e, t) {
|
|
|
2845
2845
|
break;
|
|
2846
2846
|
i = i[a];
|
|
2847
2847
|
}
|
|
2848
|
-
return s || ++r != n ? s : (n = i == null ? 0 : i.length, !!n && Vn(n) &&
|
|
2848
|
+
return s || ++r != n ? s : (n = i == null ? 0 : i.length, !!n && Vn(n) && Ma(a, n) && (ee(i) || Fn(i)));
|
|
2849
2849
|
}
|
|
2850
2850
|
function df(i, e) {
|
|
2851
2851
|
return i != null && uf(i, e, cf);
|
|
@@ -2978,7 +2978,7 @@ class Of extends ur {
|
|
|
2978
2978
|
this.source.destroy();
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
class
|
|
2981
|
+
class Pf extends Ut {
|
|
2982
2982
|
constructor(e) {
|
|
2983
2983
|
super({
|
|
2984
2984
|
type: F.VideoFile,
|
|
@@ -3010,7 +3010,7 @@ class Mf extends Ut {
|
|
|
3010
3010
|
(e = this._videoStream) == null || e.destroy(), (t = this._audioStream) == null || t.destroy(), delete this._trackMap.video, delete this._trackMap.audio;
|
|
3011
3011
|
}
|
|
3012
3012
|
}
|
|
3013
|
-
class
|
|
3013
|
+
class Mf extends Ut {
|
|
3014
3014
|
constructor(e, t) {
|
|
3015
3015
|
super({
|
|
3016
3016
|
type: F.Screen,
|
|
@@ -3143,7 +3143,7 @@ class At extends Error {
|
|
|
3143
3143
|
super(), this.code = e, this.message = t, r && (this.ext = r);
|
|
3144
3144
|
}
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3146
|
+
function Mt(i, e, t) {
|
|
3147
3147
|
const r = rn.Landscape;
|
|
3148
3148
|
if (e === "video") {
|
|
3149
3149
|
const d = (r === rn.Landscape ? da : ha)[i], [c, u, l, h] = d.split("x").map((p) => Number(p));
|
|
@@ -4148,8 +4148,8 @@ var w = fn, G = void 0, Ya = (/* @__PURE__ */ new Date()).getTimezoneOffset(), t
|
|
|
4148
4148
|
function Bt(i) {
|
|
4149
4149
|
for (var e = i.length; --e >= 0; ) i[e] = 0;
|
|
4150
4150
|
}
|
|
4151
|
-
var mn = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), Ni = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), hm = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), to = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]),
|
|
4152
|
-
Bt(
|
|
4151
|
+
var mn = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), Ni = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), hm = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), to = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Pe = new Array(576);
|
|
4152
|
+
Bt(Pe);
|
|
4153
4153
|
var Yt = new Array(60);
|
|
4154
4154
|
Bt(Yt);
|
|
4155
4155
|
var vi = new Array(512);
|
|
@@ -4249,12 +4249,12 @@ var ec = function(i) {
|
|
|
4249
4249
|
for (ri[r - 1] = n, s = 0, n = 0; n < 16; n++) for (Xi[n] = s, e = 0; e < 1 << Ni[n]; e++) vi[s++] = n;
|
|
4250
4250
|
for (s >>= 7; n < 30; n++) for (Xi[n] = s << 7, e = 0; e < 1 << Ni[n] - 7; e++) vi[256 + s++] = n;
|
|
4251
4251
|
for (t = 0; t <= 15; t++) a[t] = 0;
|
|
4252
|
-
for (e = 0; e <= 143; )
|
|
4253
|
-
for (; e <= 255; )
|
|
4254
|
-
for (; e <= 279; )
|
|
4255
|
-
for (; e <= 287; )
|
|
4256
|
-
for (ic(
|
|
4257
|
-
io = new Rr(
|
|
4252
|
+
for (e = 0; e <= 143; ) Pe[2 * e + 1] = 8, e++, a[8]++;
|
|
4253
|
+
for (; e <= 255; ) Pe[2 * e + 1] = 9, e++, a[9]++;
|
|
4254
|
+
for (; e <= 279; ) Pe[2 * e + 1] = 7, e++, a[7]++;
|
|
4255
|
+
for (; e <= 287; ) Pe[2 * e + 1] = 8, e++, a[8]++;
|
|
4256
|
+
for (ic(Pe, 287, a), e = 0; e < 30; e++) Yt[2 * e + 1] = 5, Yt[2 * e] = tc(e, 5);
|
|
4257
|
+
io = new Rr(Pe, mn, 257, 286, 15), ro = new Rr(Yt, Ni, 0, 30, 15), no = new Rr(new Array(0), hm, 0, 19, 7);
|
|
4258
4258
|
}(), ho = !0), i.l_desc = new Dr(i.dyn_ltree, io), i.d_desc = new Dr(i.dyn_dtree, ro), i.bl_desc = new Dr(i.bl_tree, no), i.bi_buf = 0, i.bi_valid = 0, so(i);
|
|
4259
4259
|
}, _tr_stored_block: lo, _tr_flush_block: function(i, e, t, r) {
|
|
4260
4260
|
var n, s, a = 0;
|
|
@@ -4268,7 +4268,7 @@ var ec = function(i) {
|
|
|
4268
4268
|
var d;
|
|
4269
4269
|
for (co(o, o.dyn_ltree, o.l_desc.max_code), co(o, o.dyn_dtree, o.d_desc.max_code), Ir(o, o.bl_desc), d = 18; d >= 3 && o.bl_tree[2 * to[d] + 1] === 0; d--) ;
|
|
4270
4270
|
return o.opt_len += 3 * (d + 1) + 5 + 5 + 4, d;
|
|
4271
|
-
}(i), n = i.opt_len + 3 + 7 >>> 3, (s = i.static_len + 3 + 7 >>> 3) <= n && (n = s)) : n = s = t + 5, t + 4 <= n && e !== -1 ? lo(i, e, t, r) : i.strategy === 4 || s === n ? (de(i, 2 + (r ? 1 : 0), 3), ao(i,
|
|
4271
|
+
}(i), n = i.opt_len + 3 + 7 >>> 3, (s = i.static_len + 3 + 7 >>> 3) <= n && (n = s)) : n = s = t + 5, t + 4 <= n && e !== -1 ? lo(i, e, t, r) : i.strategy === 4 || s === n ? (de(i, 2 + (r ? 1 : 0), 3), ao(i, Pe, Yt)) : (de(i, 4 + (r ? 1 : 0), 3), function(o, d, c, u) {
|
|
4272
4272
|
var l;
|
|
4273
4273
|
for (de(o, d - 257, 5), de(o, c - 1, 5), de(o, u - 4, 4), l = 0; l < u; l++) de(o, o.bl_tree[2 * to[l] + 1], 3);
|
|
4274
4274
|
uo(o, o.dyn_ltree, d - 1), uo(o, o.dyn_dtree, c - 1);
|
|
@@ -4276,7 +4276,7 @@ var ec = function(i) {
|
|
|
4276
4276
|
}, _tr_tally: function(i, e, t) {
|
|
4277
4277
|
return i.pending_buf[i.sym_buf + i.sym_next++] = e, i.pending_buf[i.sym_buf + i.sym_next++] = e >> 8, i.pending_buf[i.sym_buf + i.sym_next++] = t, e === 0 ? i.dyn_ltree[2 * t]++ : (i.matches++, e--, i.dyn_ltree[2 * (ri[t] + 256 + 1)]++, i.dyn_dtree[2 * ec(e)]++), i.sym_next === i.sym_end;
|
|
4278
4278
|
}, _tr_align: function(i) {
|
|
4279
|
-
de(i, 2, 3), De(i, 256,
|
|
4279
|
+
de(i, 2, 3), De(i, 256, Pe), function(e) {
|
|
4280
4280
|
e.bi_valid === 16 ? (yi(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
|
|
4281
4281
|
}(i);
|
|
4282
4282
|
} }, ni = function(i, e, t, r) {
|
|
@@ -4300,7 +4300,7 @@ var ec = function(i) {
|
|
|
4300
4300
|
i ^= -1;
|
|
4301
4301
|
for (var a = r; a < s; a++) i = i >>> 8 ^ n[255 & (i ^ e[a])];
|
|
4302
4302
|
return -1 ^ i;
|
|
4303
|
-
}, _t = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" },
|
|
4303
|
+
}, _t = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, M = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }, pm = ki._tr_init, _n = ki._tr_stored_block, fm = ki._tr_flush_block, et = ki._tr_tally, mm = ki._tr_align, tt = M.Z_NO_FLUSH, _m = M.Z_PARTIAL_FLUSH, gm = M.Z_FULL_FLUSH, Se = M.Z_FINISH, po = M.Z_BLOCK, oe = M.Z_OK, fo = M.Z_STREAM_END, Re = M.Z_STREAM_ERROR, vm = M.Z_DATA_ERROR, Or = M.Z_BUF_ERROR, ym = M.Z_DEFAULT_COMPRESSION, bm = M.Z_FILTERED, Ii = M.Z_HUFFMAN_ONLY, Sm = M.Z_RLE, Em = M.Z_FIXED, wm = M.Z_DEFAULT_STRATEGY, Cm = M.Z_UNKNOWN, Zi = M.Z_DEFLATED, gn = 286, km = 30, Tm = 19, zm = 2 * gn + 1, Am = 15, at = function(i, e) {
|
|
4304
4304
|
return i.msg = _t[e], e;
|
|
4305
4305
|
}, mo = function(i) {
|
|
4306
4306
|
return 2 * i - (i > 4 ? 9 : 0);
|
|
@@ -4359,7 +4359,7 @@ var ec = function(i) {
|
|
|
4359
4359
|
a = e === Se && t === r + i.strm.avail_in ? 1 : 0, _n(i, 0, 0, a), i.pending_buf[i.pending - 4] = t, i.pending_buf[i.pending - 3] = t >> 8, i.pending_buf[i.pending - 2] = ~t, i.pending_buf[i.pending - 1] = ~t >> 8, fe(i.strm), r && (r > t && (r = t), i.strm.output.set(i.window.subarray(i.block_start, i.block_start + r), i.strm.next_out), i.strm.next_out += r, i.strm.avail_out -= r, i.strm.total_out += r, i.block_start += r, t -= r), t && (vn(i.strm, i.strm.output, i.strm.next_out, t), i.strm.next_out += t, i.strm.avail_out -= t, i.strm.total_out += t);
|
|
4360
4360
|
} while (a === 0);
|
|
4361
4361
|
return (o -= i.strm.avail_in) && (o >= i.w_size ? (i.matches = 2, i.window.set(i.strm.input.subarray(i.strm.next_in - i.w_size, i.strm.next_in), 0), i.strstart = i.w_size, i.insert = i.strstart) : (i.window_size - i.strstart <= o && (i.strstart -= i.w_size, i.window.set(i.window.subarray(i.w_size, i.w_size + i.strstart), 0), i.matches < 2 && i.matches++, i.insert > i.strstart && (i.insert = i.strstart)), i.window.set(i.strm.input.subarray(i.strm.next_in - o, i.strm.next_in), i.strstart), i.strstart += o, i.insert += o > i.w_size - i.insert ? i.w_size - i.insert : o), i.block_start = i.strstart), i.high_water < i.strstart && (i.high_water = i.strstart), a ? 4 : e !== tt && e !== Se && i.strm.avail_in === 0 && i.strstart === i.block_start ? 2 : (n = i.window_size - i.strstart, i.strm.avail_in > n && i.block_start >= i.w_size && (i.block_start -= i.w_size, i.strstart -= i.w_size, i.window.set(i.window.subarray(i.w_size, i.w_size + i.strstart), 0), i.matches < 2 && i.matches++, n += i.w_size, i.insert > i.strstart && (i.insert = i.strstart)), n > i.strm.avail_in && (n = i.strm.avail_in), n && (vn(i.strm, i.window, i.strstart, n), i.strstart += n, i.insert += n > i.w_size - i.insert ? i.w_size - i.insert : n), i.high_water < i.strstart && (i.high_water = i.strstart), n = i.bi_valid + 42 >> 3, s = (n = i.pending_buf_size - n > 65535 ? 65535 : i.pending_buf_size - n) > i.w_size ? i.w_size : n, ((r = i.strstart - i.block_start) >= s || (r || e === Se) && e !== tt && i.strm.avail_in === 0 && r <= n) && (t = r > n ? n : r, a = e === Se && i.strm.avail_in === 0 && t === r ? 1 : 0, _n(i, i.block_start, t, a), i.block_start += t, fe(i.strm)), a ? 3 : 1);
|
|
4362
|
-
},
|
|
4362
|
+
}, Pr = function(i, e) {
|
|
4363
4363
|
for (var t, r; ; ) {
|
|
4364
4364
|
if (i.lookahead < 262) {
|
|
4365
4365
|
if (Dt(i), i.lookahead < 262 && e === tt) return 1;
|
|
@@ -4397,7 +4397,7 @@ var ec = function(i) {
|
|
|
4397
4397
|
function ze(i, e, t, r, n) {
|
|
4398
4398
|
this.good_length = i, this.max_lazy = e, this.nice_length = t, this.max_chain = r, this.func = n;
|
|
4399
4399
|
}
|
|
4400
|
-
var ei = [new ze(0, 0, 0, 0, sc), new ze(4, 4, 8, 4,
|
|
4400
|
+
var ei = [new ze(0, 0, 0, 0, sc), new ze(4, 4, 8, 4, Pr), new ze(4, 5, 16, 8, Pr), new ze(4, 6, 32, 32, Pr), new ze(4, 4, 16, 16, St), new ze(8, 16, 32, 32, St), new ze(8, 16, 128, 128, St), new ze(8, 32, 128, 256, St), new ze(32, 128, 258, 1024, St), new ze(32, 258, 258, 4096, St)];
|
|
4401
4401
|
function Dm() {
|
|
4402
4402
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Zi, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(2 * zm), this.dyn_dtree = new Uint16Array(2 * (2 * km + 1)), this.bl_tree = new Uint16Array(2 * (2 * Tm + 1)), Je(this.dyn_ltree), Je(this.dyn_dtree), Je(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(Am + 1), this.heap = new Uint16Array(2 * gn + 1), Je(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * gn + 1), Je(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
4403
4403
|
}
|
|
@@ -4601,7 +4601,7 @@ var Si = { string2buf: function(i) {
|
|
|
4601
4601
|
return t < 0 || t === 0 ? e : t + bi[i[t]] > e ? t : e;
|
|
4602
4602
|
} }, uc = function() {
|
|
4603
4603
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
4604
|
-
}, dc = Object.prototype.toString, Im =
|
|
4604
|
+
}, dc = Object.prototype.toString, Im = M.Z_NO_FLUSH, Om = M.Z_SYNC_FLUSH, Pm = M.Z_FULL_FLUSH, Mm = M.Z_FINISH, Qi = M.Z_OK, Lm = M.Z_STREAM_END, Um = M.Z_DEFAULT_COMPRESSION, Gm = M.Z_DEFAULT_STRATEGY, Nm = M.Z_DEFLATED;
|
|
4605
4605
|
function oi(i) {
|
|
4606
4606
|
this.options = mr.assign({ level: Um, method: Nm, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Gm }, i || {});
|
|
4607
4607
|
var e = this.options;
|
|
@@ -4614,7 +4614,7 @@ function oi(i) {
|
|
|
4614
4614
|
this._dict_set = !0;
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4617
|
+
function Mr(i, e) {
|
|
4618
4618
|
var t = new oi(e);
|
|
4619
4619
|
if (t.push(i, !0), t.err) throw t.msg || _t[t.err];
|
|
4620
4620
|
return t.result;
|
|
@@ -4622,7 +4622,7 @@ function Pr(i, e) {
|
|
|
4622
4622
|
oi.prototype.push = function(i, e) {
|
|
4623
4623
|
var t, r, n = this.strm, s = this.options.chunkSize;
|
|
4624
4624
|
if (this.ended) return !1;
|
|
4625
|
-
for (r = e === ~~e ? e : e === !0 ?
|
|
4625
|
+
for (r = e === ~~e ? e : e === !0 ? Mm : Im, typeof i == "string" ? n.input = Si.string2buf(i) : dc.call(i) === "[object ArrayBuffer]" ? n.input = new Uint8Array(i) : n.input = i, n.next_in = 0, n.avail_in = n.input.length; ; ) if (n.avail_out === 0 && (n.output = new Uint8Array(s), n.next_out = 0, n.avail_out = s), (r === Om || r === Pm) && n.avail_out <= 6) this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
|
|
4626
4626
|
else {
|
|
4627
4627
|
if ((t = si.deflate(n, r)) === Lm) return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), t = si.deflateEnd(this.strm), this.onEnd(t), this.ended = !0, t === Qi;
|
|
4628
4628
|
if (n.avail_out !== 0) {
|
|
@@ -4636,11 +4636,11 @@ oi.prototype.push = function(i, e) {
|
|
|
4636
4636
|
}, oi.prototype.onEnd = function(i) {
|
|
4637
4637
|
i === Qi && (this.result = mr.flattenChunks(this.chunks)), this.chunks = [], this.err = i, this.msg = this.strm.msg;
|
|
4638
4638
|
};
|
|
4639
|
-
var Oi = { Deflate: oi, deflate:
|
|
4640
|
-
return (e = e || {}).raw = !0,
|
|
4639
|
+
var Oi = { Deflate: oi, deflate: Mr, deflateRaw: function(i, e) {
|
|
4640
|
+
return (e = e || {}).raw = !0, Mr(i, e);
|
|
4641
4641
|
}, gzip: function(i, e) {
|
|
4642
|
-
return (e = e || {}).gzip = !0,
|
|
4643
|
-
}, constants:
|
|
4642
|
+
return (e = e || {}).gzip = !0, Mr(i, e);
|
|
4643
|
+
}, constants: M }, Bm = function(i, e) {
|
|
4644
4644
|
var t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D = i.state;
|
|
4645
4645
|
t = i.next_in, R = i.input, r = t + (i.avail_in - 5), n = i.next_out, A = i.output, s = n - (e - i.avail_out), a = n + (i.avail_out - 257), o = D.dmax, d = D.wsize, c = D.whave, u = D.wnext, l = D.window, h = D.hold, p = D.bits, f = D.lencode, v = D.distcode, m = (1 << D.lenbits) - 1, b = (1 << D.distbits) - 1;
|
|
4646
4646
|
e: do {
|
|
@@ -4725,7 +4725,7 @@ var Oi = { Deflate: oi, deflate: Pr, deflateRaw: function(i, e) {
|
|
|
4725
4725
|
} while (t < r && n < a);
|
|
4726
4726
|
t -= E = p >> 3, h &= (1 << (p -= E << 3)) - 1, i.next_in = t, i.next_out = n, i.avail_in = t < r ? r - t + 5 : 5 - (t - r), i.avail_out = n < a ? a - n + 257 : 257 - (n - a), D.hold = h, D.bits = p;
|
|
4727
4727
|
}, Vm = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), Fm = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), jm = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), Hm = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]), ai = function(i, e, t, r, n, s, a, o) {
|
|
4728
|
-
var d, c, u, l, h, p, f, v, m, b = o.bits, y = 0, _ = 0, E = 0, z = 0, k = 0, x = 0, R = 0, A = 0, D = 0,
|
|
4728
|
+
var d, c, u, l, h, p, f, v, m, b = o.bits, y = 0, _ = 0, E = 0, z = 0, k = 0, x = 0, R = 0, A = 0, D = 0, P = 0, K = null, j = new Uint16Array(16), W = new Uint16Array(16), J = null;
|
|
4729
4729
|
for (y = 0; y <= 15; y++) j[y] = 0;
|
|
4730
4730
|
for (_ = 0; _ < r; _++) j[e[t + _]]++;
|
|
4731
4731
|
for (k = b, z = 15; z >= 1 && j[z] === 0; z--) ;
|
|
@@ -4735,25 +4735,25 @@ var Oi = { Deflate: oi, deflate: Pr, deflateRaw: function(i, e) {
|
|
|
4735
4735
|
if (A > 0 && (i === 0 || z !== 1)) return -1;
|
|
4736
4736
|
for (W[1] = 0, y = 1; y < 15; y++) W[y + 1] = W[y] + j[y];
|
|
4737
4737
|
for (_ = 0; _ < r; _++) e[t + _] !== 0 && (a[W[e[t + _]]++] = _);
|
|
4738
|
-
if (i === 0 ? (K = J = a, p = 20) : i === 1 ? (K = Vm, J = Fm, p = 257) : (K = jm, J = Hm, p = 0),
|
|
4738
|
+
if (i === 0 ? (K = J = a, p = 20) : i === 1 ? (K = Vm, J = Fm, p = 257) : (K = jm, J = Hm, p = 0), P = 0, _ = 0, y = E, h = s, x = k, R = 0, u = -1, l = (D = 1 << k) - 1, i === 1 && D > 852 || i === 2 && D > 592) return 1;
|
|
4739
4739
|
for (; ; ) {
|
|
4740
4740
|
f = y - R, a[_] + 1 < p ? (v = 0, m = a[_]) : a[_] >= p ? (v = J[a[_] - p], m = K[a[_] - p]) : (v = 96, m = 0), d = 1 << y - R, E = c = 1 << x;
|
|
4741
4741
|
do
|
|
4742
|
-
n[h + (
|
|
4742
|
+
n[h + (P >> R) + (c -= d)] = f << 24 | v << 16 | m | 0;
|
|
4743
4743
|
while (c !== 0);
|
|
4744
|
-
for (d = 1 << y - 1;
|
|
4745
|
-
if (d !== 0 ? (
|
|
4744
|
+
for (d = 1 << y - 1; P & d; ) d >>= 1;
|
|
4745
|
+
if (d !== 0 ? (P &= d - 1, P += d) : P = 0, _++, --j[y] == 0) {
|
|
4746
4746
|
if (y === z) break;
|
|
4747
4747
|
y = e[t + a[_]];
|
|
4748
4748
|
}
|
|
4749
|
-
if (y > k && (
|
|
4749
|
+
if (y > k && (P & l) !== u) {
|
|
4750
4750
|
for (R === 0 && (R = k), h += E, A = 1 << (x = y - R); x + R < z && !((A -= j[x + R]) <= 0); ) x++, A <<= 1;
|
|
4751
4751
|
if (D += 1 << x, i === 1 && D > 852 || i === 2 && D > 592) return 1;
|
|
4752
|
-
n[u =
|
|
4752
|
+
n[u = P & l] = k << 24 | x << 16 | h - s | 0;
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
return
|
|
4756
|
-
}, go =
|
|
4755
|
+
return P !== 0 && (n[h + P] = y - R << 24 | 64 << 16 | 0), o.bits = k, 0;
|
|
4756
|
+
}, go = M.Z_FINISH, $m = M.Z_BLOCK, Pi = M.Z_TREES, ct = M.Z_OK, qm = M.Z_STREAM_END, Km = M.Z_NEED_DICT, be = M.Z_STREAM_ERROR, vo = M.Z_DATA_ERROR, yo = M.Z_MEM_ERROR, Wm = M.Z_BUF_ERROR, bo = M.Z_DEFLATED, So = function(i) {
|
|
4757
4757
|
return (i >>> 24 & 255) + (i >>> 8 & 65280) + ((65280 & i) << 8) + ((255 & i) << 24);
|
|
4758
4758
|
};
|
|
4759
4759
|
function Jm() {
|
|
@@ -4799,7 +4799,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
4799
4799
|
}, Ue = { inflateReset: lc, inflateReset2: pc, inflateResetKeep: hc, inflateInit: function(i) {
|
|
4800
4800
|
return Eo(i, 15);
|
|
4801
4801
|
}, inflateInit2: Eo, inflate: function(i, e) {
|
|
4802
|
-
var t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D = 0,
|
|
4802
|
+
var t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D = 0, P = new Uint8Array(4), K = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
4803
4803
|
if (lt(i) || !i.output || !i.input && i.avail_in !== 0) return be;
|
|
4804
4804
|
(t = i.state).mode === 16191 && (t.mode = 16192), a = i.next_out, n = i.output, d = i.avail_out, s = i.next_in, r = i.input, o = i.avail_in, c = t.hold, u = t.bits, l = o, h = d, x = ct;
|
|
4805
4805
|
e: for (; ; ) switch (t.mode) {
|
|
@@ -4813,7 +4813,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
4813
4813
|
o--, c += r[s++] << u, u += 8;
|
|
4814
4814
|
}
|
|
4815
4815
|
if (2 & t.wrap && c === 35615) {
|
|
4816
|
-
t.wbits === 0 && (t.wbits = 15), t.check = 0,
|
|
4816
|
+
t.wbits === 0 && (t.wbits = 15), t.check = 0, P[0] = 255 & c, P[1] = c >>> 8 & 255, t.check = re(t.check, P, 2, 0), c = 0, u = 0, t.mode = 16181;
|
|
4817
4817
|
break;
|
|
4818
4818
|
}
|
|
4819
4819
|
if (t.head && (t.head.done = !1), !(1 & t.wrap) || (((255 & c) << 8) + (c >> 8)) % 31) {
|
|
@@ -4843,26 +4843,26 @@ var Lr, Ur, lt = function(i) {
|
|
|
4843
4843
|
i.msg = "unknown header flags set", t.mode = 16209;
|
|
4844
4844
|
break;
|
|
4845
4845
|
}
|
|
4846
|
-
t.head && (t.head.text = c >> 8 & 1), 512 & t.flags && 4 & t.wrap && (
|
|
4846
|
+
t.head && (t.head.text = c >> 8 & 1), 512 & t.flags && 4 & t.wrap && (P[0] = 255 & c, P[1] = c >>> 8 & 255, t.check = re(t.check, P, 2, 0)), c = 0, u = 0, t.mode = 16182;
|
|
4847
4847
|
case 16182:
|
|
4848
4848
|
for (; u < 32; ) {
|
|
4849
4849
|
if (o === 0) break e;
|
|
4850
4850
|
o--, c += r[s++] << u, u += 8;
|
|
4851
4851
|
}
|
|
4852
|
-
t.head && (t.head.time = c), 512 & t.flags && 4 & t.wrap && (
|
|
4852
|
+
t.head && (t.head.time = c), 512 & t.flags && 4 & t.wrap && (P[0] = 255 & c, P[1] = c >>> 8 & 255, P[2] = c >>> 16 & 255, P[3] = c >>> 24 & 255, t.check = re(t.check, P, 4, 0)), c = 0, u = 0, t.mode = 16183;
|
|
4853
4853
|
case 16183:
|
|
4854
4854
|
for (; u < 16; ) {
|
|
4855
4855
|
if (o === 0) break e;
|
|
4856
4856
|
o--, c += r[s++] << u, u += 8;
|
|
4857
4857
|
}
|
|
4858
|
-
t.head && (t.head.xflags = 255 & c, t.head.os = c >> 8), 512 & t.flags && 4 & t.wrap && (
|
|
4858
|
+
t.head && (t.head.xflags = 255 & c, t.head.os = c >> 8), 512 & t.flags && 4 & t.wrap && (P[0] = 255 & c, P[1] = c >>> 8 & 255, t.check = re(t.check, P, 2, 0)), c = 0, u = 0, t.mode = 16184;
|
|
4859
4859
|
case 16184:
|
|
4860
4860
|
if (1024 & t.flags) {
|
|
4861
4861
|
for (; u < 16; ) {
|
|
4862
4862
|
if (o === 0) break e;
|
|
4863
4863
|
o--, c += r[s++] << u, u += 8;
|
|
4864
4864
|
}
|
|
4865
|
-
t.length = c, t.head && (t.head.extra_len = c), 512 & t.flags && 4 & t.wrap && (
|
|
4865
|
+
t.length = c, t.head && (t.head.extra_len = c), 512 & t.flags && 4 & t.wrap && (P[0] = 255 & c, P[1] = c >>> 8 & 255, t.check = re(t.check, P, 2, 0)), c = 0, u = 0;
|
|
4866
4866
|
} else t.head && (t.head.extra = null);
|
|
4867
4867
|
t.mode = 16185;
|
|
4868
4868
|
case 16185:
|
|
@@ -4912,7 +4912,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
4912
4912
|
if (t.havedict === 0) return i.next_out = a, i.avail_out = d, i.next_in = s, i.avail_in = o, t.hold = c, t.bits = u, Km;
|
|
4913
4913
|
i.adler = t.check = 1, t.mode = 16191;
|
|
4914
4914
|
case 16191:
|
|
4915
|
-
if (e === $m || e ===
|
|
4915
|
+
if (e === $m || e === Pi) break e;
|
|
4916
4916
|
case 16192:
|
|
4917
4917
|
if (t.last) {
|
|
4918
4918
|
c >>>= 7 & u, u -= 7 & u, t.mode = 16206;
|
|
@@ -4927,7 +4927,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
4927
4927
|
t.mode = 16193;
|
|
4928
4928
|
break;
|
|
4929
4929
|
case 1:
|
|
4930
|
-
if (Xm(t), t.mode = 16199, e ===
|
|
4930
|
+
if (Xm(t), t.mode = 16199, e === Pi) {
|
|
4931
4931
|
c >>>= 2, u -= 2;
|
|
4932
4932
|
break e;
|
|
4933
4933
|
}
|
|
@@ -4949,7 +4949,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
4949
4949
|
i.msg = "invalid stored block lengths", t.mode = 16209;
|
|
4950
4950
|
break;
|
|
4951
4951
|
}
|
|
4952
|
-
if (t.length = 65535 & c, c = 0, u = 0, t.mode = 16194, e ===
|
|
4952
|
+
if (t.length = 65535 & c, c = 0, u = 0, t.mode = 16194, e === Pi) break e;
|
|
4953
4953
|
case 16194:
|
|
4954
4954
|
t.mode = 16195;
|
|
4955
4955
|
case 16195:
|
|
@@ -5035,7 +5035,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
5035
5035
|
i.msg = "invalid distances set", t.mode = 16209;
|
|
5036
5036
|
break;
|
|
5037
5037
|
}
|
|
5038
|
-
if (t.mode = 16199, e ===
|
|
5038
|
+
if (t.mode = 16199, e === Pi) break e;
|
|
5039
5039
|
case 16199:
|
|
5040
5040
|
t.mode = 16200;
|
|
5041
5041
|
case 16200:
|
|
@@ -5177,7 +5177,7 @@ var Lr, Ur, lt = function(i) {
|
|
|
5177
5177
|
return lt(i) || (t = i.state).wrap !== 0 && t.mode !== 16190 ? be : t.mode === 16190 && ni(1, e, r, 0) !== t.check ? vo : Co(i, e, r, r) ? (t.mode = 16210, yo) : (t.havedict = 1, ct);
|
|
5178
5178
|
}, inflateInfo: "pako inflate (from Nodeca project)" }, Zm = function() {
|
|
5179
5179
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
5180
|
-
}, fc = Object.prototype.toString, Qm =
|
|
5180
|
+
}, fc = Object.prototype.toString, Qm = M.Z_NO_FLUSH, Ym = M.Z_FINISH, ci = M.Z_OK, Gr = M.Z_STREAM_END, Nr = M.Z_NEED_DICT, e_ = M.Z_STREAM_ERROR, ko = M.Z_DATA_ERROR, t_ = M.Z_MEM_ERROR;
|
|
5181
5181
|
function ui(i) {
|
|
5182
5182
|
this.options = mr.assign({ chunkSize: 65536, windowBits: 15, to: "" }, i || {});
|
|
5183
5183
|
var e = this.options;
|
|
@@ -5218,9 +5218,9 @@ ui.prototype.push = function(i, e) {
|
|
|
5218
5218
|
}, ui.prototype.onEnd = function(i) {
|
|
5219
5219
|
i === ci && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = mr.flattenChunks(this.chunks)), this.chunks = [], this.err = i, this.msg = this.strm.msg;
|
|
5220
5220
|
};
|
|
5221
|
-
var di,
|
|
5221
|
+
var di, Mi = { Inflate: ui, inflate: Br, inflateRaw: function(i, e) {
|
|
5222
5222
|
return (e = e || {}).raw = !0, Br(i, e);
|
|
5223
|
-
}, ungzip: Br, constants:
|
|
5223
|
+
}, ungzip: Br, constants: M }, i_ = { Deflate: Oi.Deflate, deflate: Oi.deflate, deflateRaw: Oi.deflateRaw, gzip: Oi.gzip, Inflate: Mi.Inflate, inflate: Mi.inflate, inflateRaw: Mi.inflateRaw, ungzip: Mi.ungzip, constants: M }, r_ = function() {
|
|
5224
5224
|
return !(!window.navigator || !window.navigator.sendBeacon);
|
|
5225
5225
|
}, n_ = function() {
|
|
5226
5226
|
function i(e, t) {
|
|
@@ -6448,22 +6448,22 @@ var b_ = function() {
|
|
|
6448
6448
|
function w_(i, e, t, r) {
|
|
6449
6449
|
var n = {}, s = function(R) {
|
|
6450
6450
|
if (R) {
|
|
6451
|
-
var A = R.getBoundingClientRect(), D = A.width,
|
|
6452
|
-
return { left: A.left, top: A.top, element_width: D, element_height:
|
|
6451
|
+
var A = R.getBoundingClientRect(), D = A.width, P = A.height;
|
|
6452
|
+
return { left: A.left, top: A.top, element_width: D, element_height: P };
|
|
6453
6453
|
}
|
|
6454
6454
|
}(e = jr(e, t)), a = function(R, A) {
|
|
6455
6455
|
R === void 0 && (R = {}), A === void 0 && (A = {});
|
|
6456
|
-
var D = R.clientX,
|
|
6456
|
+
var D = R.clientX, P = R.clientY, K = A.left, j = A.top, W = D - K >= 0 ? D - K : 0, J = P - j >= 0 ? P - j : 0;
|
|
6457
6457
|
return { touch_x: Math.floor(W), touch_y: Math.floor(J) };
|
|
6458
6458
|
}(i, s), o = s.element_width, d = s.element_height, c = a.touch_x, u = a.touch_y, l = mc(e), h = l.element_path, p = l.positions, f = function(R, A) {
|
|
6459
|
-
var D = jr(R, A),
|
|
6459
|
+
var D = jr(R, A), P = [];
|
|
6460
6460
|
return function K(j) {
|
|
6461
6461
|
var W = function($) {
|
|
6462
6462
|
var te = "";
|
|
6463
6463
|
return $.nodeType === 3 ? te = $.textContent.trim() : $.dataset && $.dataset.hasOwnProperty("teaTitle") || $.hasAttribute("ata-tea-title") ? te = $.getAttribute("data-tea-title") : $.nodeName === "INPUT" && ["button", "submit"].includes($.getAttribute("type")) ? te = $.getAttribute("value") : $.nodeName === "IMG" && $.getAttribute("alt") && (te = $.getAttribute("alt")), te.slice(0, 200);
|
|
6464
6464
|
}(j);
|
|
6465
|
-
if (W &&
|
|
6466
|
-
}(D),
|
|
6465
|
+
if (W && P.indexOf(W) === -1 && P.push(W), j.childNodes.length > 0) for (var J = j.childNodes, ae = 0; ae < J.length; ae++) J[ae].nodeType !== 8 && K(J[ae]);
|
|
6466
|
+
}(D), P;
|
|
6467
6467
|
}(e, t), v = window.performance.timing.navigationStart, m = Date.now() - v, b = p.map(function(R) {
|
|
6468
6468
|
return "" + R;
|
|
6469
6469
|
}), y = null;
|
|
@@ -6884,7 +6884,7 @@ var Do, I_ = function() {
|
|
|
6884
6884
|
console.warn("scroll event error", JSON.stringify(u));
|
|
6885
6885
|
}
|
|
6886
6886
|
}, i;
|
|
6887
|
-
}(), O_ = { hashTag: !1, impr: !1 },
|
|
6887
|
+
}(), O_ = { hashTag: !1, impr: !1 }, P_ = function() {
|
|
6888
6888
|
function i() {
|
|
6889
6889
|
}
|
|
6890
6890
|
return i.prototype.apply = function(e, t) {
|
|
@@ -6935,7 +6935,7 @@ var Do, I_ = function() {
|
|
|
6935
6935
|
(function(i) {
|
|
6936
6936
|
i.Net = "net", i.FailNet = "f_net", i.FailData = "f_data";
|
|
6937
6937
|
})(Do || (Do = {}));
|
|
6938
|
-
var xo = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive", "predefine_page_close", "__profile_set", "__profile_set_once", "__profile_increment", "__profile_unset", "__profile_append"], autotrack: ["bav2b_click", "bav2b_page", "bav2b_beat", "bav2b_page_statistics", "__bav_click", "__bav_page", "__bav_beat", "__bav_page_statistics"] },
|
|
6938
|
+
var xo = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive", "predefine_page_close", "__profile_set", "__profile_set_once", "__profile_increment", "__profile_unset", "__profile_append"], autotrack: ["bav2b_click", "bav2b_page", "bav2b_beat", "bav2b_page_statistics", "__bav_click", "__bav_page", "__bav_beat", "__bav_page_statistics"] }, M_ = function() {
|
|
6939
6939
|
function i() {
|
|
6940
6940
|
}
|
|
6941
6941
|
return i.prototype.apply = function(e, t) {
|
|
@@ -7215,7 +7215,7 @@ var xo = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
|
|
|
7215
7215
|
t.refer_key = r, t.routeChange = !0, this.storage.setItem(this.cache_key, t);
|
|
7216
7216
|
}, i;
|
|
7217
7217
|
}();
|
|
7218
|
-
ve.usePlugin(U_, "extend"), ve.usePlugin(c_, "et"), ve.usePlugin(a_, "ab"), ve.usePlugin(p_, "stay"), ve.usePlugin(
|
|
7218
|
+
ve.usePlugin(U_, "extend"), ve.usePlugin(c_, "et"), ve.usePlugin(a_, "ab"), ve.usePlugin(p_, "stay"), ve.usePlugin(P_, "autotrack"), ve.usePlugin(f_, "profile"), ve.usePlugin(L_, "retry"), ve.usePlugin(m_, "heartbeat"), ve.usePlugin(__, "monitor"), ve.usePlugin(G_, "route"), ve.usePlugin(M_, "tracer");
|
|
7219
7219
|
var Jt = new ve("default");
|
|
7220
7220
|
const qr = "VEPUSHER_DEVICE_ID", Kr = "VEPUSHER_USER_ID", gc = (i) => Math.floor(
|
|
7221
7221
|
(Math.random() * 9 + 1) * Math.pow(10, i - 1)
|
|
@@ -7395,6 +7395,8 @@ const F_ = {
|
|
|
7395
7395
|
* enable_reconnect: 是否开启自动重连
|
|
7396
7396
|
*/
|
|
7397
7397
|
STOP_PUSH_STREAM: "stop_push_stream",
|
|
7398
|
+
/** 停止直播sdk方法调用 */
|
|
7399
|
+
STOP_PUSH_STREAM_API_CALL: "stop_push_stream_api_call",
|
|
7398
7400
|
/**
|
|
7399
7401
|
* 开始推流状态
|
|
7400
7402
|
* is_success: 是否成功
|
|
@@ -7451,6 +7453,8 @@ const F_ = {
|
|
|
7451
7453
|
SET_AUDIO_QUALITY: "set_audio_quality",
|
|
7452
7454
|
/** 页面可见性变化 */
|
|
7453
7455
|
PAGE_VISIBLE_CHANGE: "page_visible_change",
|
|
7456
|
+
/** 推流SDK销毁事件 */
|
|
7457
|
+
PUSHER_DESTROY: "pusher_destroy",
|
|
7454
7458
|
...F_,
|
|
7455
7459
|
...j_,
|
|
7456
7460
|
...H_
|
|
@@ -7467,7 +7471,7 @@ class $_ {
|
|
|
7467
7471
|
page_path_fe: window.location.pathname || "unknown",
|
|
7468
7472
|
page_host_fe: window.location.hostname || "unknown",
|
|
7469
7473
|
sdk_version: "2.0.3",
|
|
7470
|
-
build_version: "1.0.0.
|
|
7474
|
+
build_version: "1.0.0.124",
|
|
7471
7475
|
...r
|
|
7472
7476
|
}
|
|
7473
7477
|
};
|
|
@@ -7538,10 +7542,10 @@ class X_ extends nt {
|
|
|
7538
7542
|
height: 720,
|
|
7539
7543
|
frameRate: 30
|
|
7540
7544
|
}, this._cameraStreams = {}, this._screenStreams = {}, this._videoFileStreams = {}, this._microphoneStreams = {}, this._audioFileStreams = {}, this._imageStreams = {}, this._customVideoStreams = {}, this._customAudioStreams = {};
|
|
7541
|
-
const { width: t, height: r, frameRate: n } =
|
|
7545
|
+
const { width: t, height: r, frameRate: n } = Mt(
|
|
7542
7546
|
ma,
|
|
7543
7547
|
"video"
|
|
7544
|
-
), { sampleRate: s } =
|
|
7548
|
+
), { sampleRate: s } = Mt(_a, "audio");
|
|
7545
7549
|
this._videoConstraints = {
|
|
7546
7550
|
width: t,
|
|
7547
7551
|
height: r,
|
|
@@ -7736,7 +7740,7 @@ class X_ extends nt {
|
|
|
7736
7740
|
t,
|
|
7737
7741
|
void 0,
|
|
7738
7742
|
!this._livePusher.isEnableMixing
|
|
7739
|
-
), n = new
|
|
7743
|
+
), n = new Mf(r, {
|
|
7740
7744
|
frameRate: this._videoConstraints.frameRate
|
|
7741
7745
|
});
|
|
7742
7746
|
return this._screenStreams[n.id] = n, this._notifyCaptured(n), this._bindStreamEvent(n), O(I.SCREEN_CAPTURE_RESULT, {
|
|
@@ -7759,7 +7763,7 @@ class X_ extends nt {
|
|
|
7759
7763
|
video: !0,
|
|
7760
7764
|
audio: !0,
|
|
7761
7765
|
loop: !0
|
|
7762
|
-
}), r = new
|
|
7766
|
+
}), r = new Pf(t);
|
|
7763
7767
|
return this._videoFileStreams[r.id] = r, this._notifyCaptured(r), this._bindStreamEvent(r), O(I.VIDEO_FILE_CAPTURE_RESULT, {
|
|
7764
7768
|
is_success: !0,
|
|
7765
7769
|
stream_id: r.id,
|
|
@@ -8747,10 +8751,10 @@ class ag extends bc {
|
|
|
8747
8751
|
return this._isPreviewing;
|
|
8748
8752
|
}
|
|
8749
8753
|
}
|
|
8750
|
-
var Ce = {}, Wr = {}, Jr = { exports: {} },
|
|
8754
|
+
var Ce = {}, Wr = {}, Jr = { exports: {} }, Po;
|
|
8751
8755
|
function ts() {
|
|
8752
|
-
if (
|
|
8753
|
-
|
|
8756
|
+
if (Po) return Jr.exports;
|
|
8757
|
+
Po = 1;
|
|
8754
8758
|
var i = Jr.exports = {
|
|
8755
8759
|
v: [{
|
|
8756
8760
|
name: "version",
|
|
@@ -9192,9 +9196,9 @@ function ts() {
|
|
|
9192
9196
|
});
|
|
9193
9197
|
}), Jr.exports;
|
|
9194
9198
|
}
|
|
9195
|
-
var
|
|
9199
|
+
var Mo;
|
|
9196
9200
|
function cg() {
|
|
9197
|
-
return
|
|
9201
|
+
return Mo || (Mo = 1, function(i) {
|
|
9198
9202
|
var e = function(o) {
|
|
9199
9203
|
return String(Number(o)) === o ? Number(o) : o;
|
|
9200
9204
|
}, t = function(o, d, c, u) {
|
|
@@ -9411,7 +9415,7 @@ async function bn(i, e) {
|
|
|
9411
9415
|
}), t;
|
|
9412
9416
|
}
|
|
9413
9417
|
async function pg(i, e, t) {
|
|
9414
|
-
var u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D,
|
|
9418
|
+
var u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D, P, K, j, W, J, ae, $, te, we, qe, Ke, Ft, jt, Ht, $t, cs, us, ds, hs, ls, ps, fs;
|
|
9415
9419
|
const r = await bn(e, t);
|
|
9416
9420
|
await Ai(i);
|
|
9417
9421
|
const n = await bn(e, t), { audio: s, video: a } = r, { audio: o, video: d } = n, c = {};
|
|
@@ -9430,7 +9434,7 @@ async function pg(i, e, t) {
|
|
|
9430
9434
|
};
|
|
9431
9435
|
}
|
|
9432
9436
|
if (a != null && a.codec && (d != null && d.codec)) {
|
|
9433
|
-
const bt = ((x = d.outboundRtp) == null ? void 0 : x.timestamp) - ((R = a.outboundRtp) == null ? void 0 : R.timestamp), gr = ((A = d.outboundRtp) == null ? void 0 : A.bytesSent) - ((D = a.outboundRtp) == null ? void 0 : D.bytesSent), Ri = ((
|
|
9437
|
+
const bt = ((x = d.outboundRtp) == null ? void 0 : x.timestamp) - ((R = a.outboundRtp) == null ? void 0 : R.timestamp), gr = ((A = d.outboundRtp) == null ? void 0 : A.bytesSent) - ((D = a.outboundRtp) == null ? void 0 : D.bytesSent), Ri = ((P = d.outboundRtp) == null ? void 0 : P.framesEncoded) - ((K = a.outboundRtp) == null ? void 0 : K.framesEncoded), vr = ((j = d.outboundRtp) == null ? void 0 : j.totalEncodeTime) - ((W = a.outboundRtp) == null ? void 0 : W.totalEncodeTime), yr = ((J = d.outboundRtp) == null ? void 0 : J.framesSent) - ((ae = a.outboundRtp) == null ? void 0 : ae.framesSent), ms = (($ = d.outboundRtp) == null ? void 0 : $.packetsSent) - ((te = a.outboundRtp) == null ? void 0 : te.packetsSent), mu = ((we = d.outboundRtp) == null ? void 0 : we.totalPacketSendDelay) - ((qe = a.outboundRtp) == null ? void 0 : qe.totalPacketSendDelay), _u = ((Ke = d.remoteInboundRtp) == null ? void 0 : Ke.packetsLost) - ((Ft = a.remoteInboundRtp) == null ? void 0 : Ft.packetsLost);
|
|
9434
9438
|
c.video = {
|
|
9435
9439
|
codec: d.codec.mimeType,
|
|
9436
9440
|
sendBitrate: gr / bt * 8e3,
|
|
@@ -9470,7 +9474,7 @@ function Z(i, e = yn) {
|
|
|
9470
9474
|
return i ?? e;
|
|
9471
9475
|
}
|
|
9472
9476
|
function fg(i) {
|
|
9473
|
-
var e, t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D,
|
|
9477
|
+
var e, t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D, P, K, j, W, J, ae, $, te, we, qe, Ke, Ft, jt, Ht, $t;
|
|
9474
9478
|
return {
|
|
9475
9479
|
// outbound-rtp info
|
|
9476
9480
|
audio_bytes: (e = i.outboundRtp) == null ? void 0 : e.bytesSent,
|
|
@@ -9500,7 +9504,7 @@ function fg(i) {
|
|
|
9500
9504
|
audio_ice_pair_state: (R = i.candidatePair) == null ? void 0 : R.state,
|
|
9501
9505
|
audio_ice_pair_writable: (A = i.candidatePair) == null ? void 0 : A.writable,
|
|
9502
9506
|
audio_recv_ping_requests: (D = i.candidatePair) == null ? void 0 : D.requestsReceived,
|
|
9503
|
-
audio_recv_ping_responses: (
|
|
9507
|
+
audio_recv_ping_responses: (P = i.candidatePair) == null ? void 0 : P.responsesReceived,
|
|
9504
9508
|
audio_sent_ping_requests_before_first_response: (K = i.candidatePair) == null ? void 0 : K.requestsSent,
|
|
9505
9509
|
audio_sent_ping_requests_total: (((j = i.candidatePair) == null ? void 0 : j.requestsSent) ?? 0) + (((W = i.candidatePair) == null ? void 0 : W.consentRequestsSent) ?? 0),
|
|
9506
9510
|
audio_sent_ping_responses: (J = i.candidatePair) == null ? void 0 : J.responsesSent,
|
|
@@ -9517,7 +9521,7 @@ function fg(i) {
|
|
|
9517
9521
|
};
|
|
9518
9522
|
}
|
|
9519
9523
|
function mg(i) {
|
|
9520
|
-
var e, t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D,
|
|
9524
|
+
var e, t, r, n, s, a, o, d, c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D, P, K, j, W, J, ae, $, te, we, qe, Ke;
|
|
9521
9525
|
return {
|
|
9522
9526
|
// outbound-rtp info
|
|
9523
9527
|
video_qp_sum: (e = i.outboundRtp) == null ? void 0 : e.qpSum,
|
|
@@ -9547,7 +9551,7 @@ function mg(i) {
|
|
|
9547
9551
|
video_sent_ping_responses: (R = i.candidatePair) == null ? void 0 : R.responsesSent,
|
|
9548
9552
|
// localCandidate info
|
|
9549
9553
|
video_local_candidate_type: (A = i.localCandidate) == null ? void 0 : A.candidateType,
|
|
9550
|
-
video_local_ip: ((D = i.localCandidate) == null ? void 0 : D.ip) || ((
|
|
9554
|
+
video_local_ip: ((D = i.localCandidate) == null ? void 0 : D.ip) || ((P = i.localCandidate) == null ? void 0 : P.address),
|
|
9551
9555
|
video_local_network_type: (K = i.localCandidate) == null ? void 0 : K.networkType,
|
|
9552
9556
|
video_local_port: (j = i.localCandidate) == null ? void 0 : j.port,
|
|
9553
9557
|
video_local_protocol: (W = i.localCandidate) == null ? void 0 : W.protocol,
|
|
@@ -9562,7 +9566,7 @@ function mg(i) {
|
|
|
9562
9566
|
};
|
|
9563
9567
|
}
|
|
9564
9568
|
function _g(i, e, t) {
|
|
9565
|
-
var c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D,
|
|
9569
|
+
var c, u, l, h, p, f, v, m, b, y, _, E, z, k, x, R, A, D, P, K, j, W, J, ae, $, te, we;
|
|
9566
9570
|
const r = mg(e.video ?? {}), { video_input_frame_width: n, video_input_frame_height: s } = r, a = Z((c = i.video) == null ? void 0 : c.frameWidth), o = Z(
|
|
9567
9571
|
(u = i.video) == null ? void 0 : u.frameHeight
|
|
9568
9572
|
), d = a < Number(n) || o < Number(s);
|
|
@@ -9598,7 +9602,7 @@ function _g(i, e, t) {
|
|
|
9598
9602
|
video_duration: (D = i.video) == null ? void 0 : D.deltaTime,
|
|
9599
9603
|
// 帧率达标率:实际帧率与理想帧率的比值
|
|
9600
9604
|
video_frame_rate_compliance: t != null && t.idealFrameRate ? Math.min(
|
|
9601
|
-
Z((
|
|
9605
|
+
Z((P = i.video) == null ? void 0 : P.framesPerSecond) / t.idealFrameRate,
|
|
9602
9606
|
1
|
|
9603
9607
|
) * 100 : yn,
|
|
9604
9608
|
video_bitrate_compliance: t != null && t.idealBitrate ? Math.min(
|
|
@@ -10357,7 +10361,7 @@ function Og(i) {
|
|
|
10357
10361
|
e.href = URL.createObjectURL(new Blob([i])), e.download = Date.now() + ".flv", e.click();
|
|
10358
10362
|
}
|
|
10359
10363
|
const Fo = new st("RTMPConnect");
|
|
10360
|
-
class
|
|
10364
|
+
class Pg {
|
|
10361
10365
|
constructor(e, t, r, n) {
|
|
10362
10366
|
this._opts = void 0, this._isPushing = !1, this._url = e, this._opts = t, this._onError = r, this._OnSuccess = n, this._rtmp = new kc(), this._bindEvents();
|
|
10363
10367
|
}
|
|
@@ -10404,13 +10408,13 @@ class Mg {
|
|
|
10404
10408
|
}
|
|
10405
10409
|
}
|
|
10406
10410
|
var ke = /* @__PURE__ */ ((i) => (i[i.Start = 0] = "Start", i[i.Stop = 1] = "Stop", i[i.GameControl = 2] = "GameControl", i[i.InitPushReader = 3] = "InitPushReader", i[i.Online = 4] = "Online", i[i.Reconnect = 5] = "Reconnect", i[i.UpdateTrack = 6] = "UpdateTrack", i[i.SetBitrate = 7] = "SetBitrate", i[i.PassEngineEvent = 8] = "PassEngineEvent", i[i.StopSuccess = 9] = "StopSuccess", i[i.VideoLog = 10] = "VideoLog", i[i.SetJitterBuffer = 11] = "SetJitterBuffer", i[i.ResetEngine = 12] = "ResetEngine", i[i.GetStats = 13] = "GetStats", i[i.Test = 14] = "Test", i[i.Plugin = 15] = "Plugin", i[i.EnableLogger = 16] = "EnableLogger", i[i.SendLogToMain = 17] = "SendLogToMain", i))(ke || {});
|
|
10407
|
-
const
|
|
10411
|
+
const Mg = 1e3;
|
|
10408
10412
|
function Lg() {
|
|
10409
10413
|
return !1;
|
|
10410
10414
|
}
|
|
10411
10415
|
class Tc {
|
|
10412
10416
|
constructor() {
|
|
10413
|
-
this.maxSize =
|
|
10417
|
+
this.maxSize = Mg, this.supported = Lg(), this.supported && (this.buffer = new SharedArrayBuffer(this.maxSize), this.arr = new Uint8Array(this.buffer));
|
|
10414
10418
|
}
|
|
10415
10419
|
share(e) {
|
|
10416
10420
|
return this.supported ? (this.arr.set(e), this.buffer) : e.buffer;
|
|
@@ -12411,7 +12415,7 @@ function An(i, e) {
|
|
|
12411
12415
|
const t = zn.get() || {}, r = `${i}_support`;
|
|
12412
12416
|
t[r] = e, zn.set(t);
|
|
12413
12417
|
}
|
|
12414
|
-
async function
|
|
12418
|
+
async function Pc(i) {
|
|
12415
12419
|
if (!VideoEncoder.isConfigSupported)
|
|
12416
12420
|
return {
|
|
12417
12421
|
supported: !1,
|
|
@@ -12473,7 +12477,7 @@ async function Tv(i) {
|
|
|
12473
12477
|
const e = Oc(i);
|
|
12474
12478
|
if (e)
|
|
12475
12479
|
return console.log(`Video encoder ${i} support result from cache:`, e), e;
|
|
12476
|
-
const t = await
|
|
12480
|
+
const t = await Pc(i);
|
|
12477
12481
|
return An(i, t), t;
|
|
12478
12482
|
}
|
|
12479
12483
|
async function zv(i, e = 3e3) {
|
|
@@ -12482,7 +12486,7 @@ async function zv(i, e = 3e3) {
|
|
|
12482
12486
|
const t = Oc(i);
|
|
12483
12487
|
if (t)
|
|
12484
12488
|
return console.log(`Video encoder ${i} support result from cache:`, t), t;
|
|
12485
|
-
const r = await
|
|
12489
|
+
const r = await Pc(i);
|
|
12486
12490
|
if (!r.supported)
|
|
12487
12491
|
return An(i, r), r;
|
|
12488
12492
|
const n = await kv(i, e);
|
|
@@ -12538,7 +12542,7 @@ async function Ov(i) {
|
|
|
12538
12542
|
};
|
|
12539
12543
|
}
|
|
12540
12544
|
}
|
|
12541
|
-
async function
|
|
12545
|
+
async function Pv(i, e = !1) {
|
|
12542
12546
|
const t = [
|
|
12543
12547
|
"aac"
|
|
12544
12548
|
/* AAC */
|
|
@@ -12568,10 +12572,10 @@ async function Mv(i, e = !1) {
|
|
|
12568
12572
|
};
|
|
12569
12573
|
return e && (u.details = n), u;
|
|
12570
12574
|
}
|
|
12571
|
-
async function
|
|
12572
|
-
return (await
|
|
12575
|
+
async function Mv() {
|
|
12576
|
+
return (await Pv()).supported;
|
|
12573
12577
|
}
|
|
12574
|
-
class
|
|
12578
|
+
class Mc {
|
|
12575
12579
|
constructor(e, t, r, n, s) {
|
|
12576
12580
|
this.url = e, this.config = t, this.onError = r, this.onSuccess = n, this.onReconnectError = s, this._isPushing = !1, this._clearOnline = () => {
|
|
12577
12581
|
}, this.sessionId = Date.now(), this.engine = new gv({
|
|
@@ -12585,7 +12589,7 @@ class Pc {
|
|
|
12585
12589
|
};
|
|
12586
12590
|
}
|
|
12587
12591
|
static async isSupported() {
|
|
12588
|
-
return await
|
|
12592
|
+
return await Mv() && typeof WebTransport < "u" && typeof MediaStreamTrackProcessor < "u" && typeof MediaStreamTrackGenerator < "u" && typeof VideoEncoder < "u";
|
|
12589
12593
|
}
|
|
12590
12594
|
get isPushing() {
|
|
12591
12595
|
return this._isPushing;
|
|
@@ -12871,7 +12875,7 @@ class Uv extends bc {
|
|
|
12871
12875
|
timeout: 5e3,
|
|
12872
12876
|
retryCount: 1,
|
|
12873
12877
|
retryDelay: 1e3
|
|
12874
|
-
}, this._audioBitrate =
|
|
12878
|
+
}, this._audioBitrate = Mt(_a, "audio").bitrate, this._videoBitrate = Mt(ma, "video").bitrate, this.handleReconnectError = (o, d) => {
|
|
12875
12879
|
var c, u;
|
|
12876
12880
|
O(I.STOP_PUSH_STREAM, {
|
|
12877
12881
|
reason: Xt.ReconnectFailed,
|
|
@@ -13057,14 +13061,14 @@ class Uv extends bc {
|
|
|
13057
13061
|
if (this._pushMode === "rtm")
|
|
13058
13062
|
s = new ir(e, this._pushConfig, this._OnRtcStateChange);
|
|
13059
13063
|
else if (this._pushMode === "webTransport")
|
|
13060
|
-
s = new
|
|
13064
|
+
s = new Pg(
|
|
13061
13065
|
e,
|
|
13062
13066
|
this._pushConfig,
|
|
13063
13067
|
this._OnRTMPError,
|
|
13064
13068
|
this._OnRTMPSuccess
|
|
13065
13069
|
);
|
|
13066
13070
|
else if (this._pushMode === "mediaEngine")
|
|
13067
|
-
s = new
|
|
13071
|
+
s = new Mc(
|
|
13068
13072
|
e,
|
|
13069
13073
|
this._pushConfig,
|
|
13070
13074
|
this._OnRTMPError,
|
|
@@ -14835,7 +14839,7 @@ function On(i) {
|
|
|
14835
14839
|
};
|
|
14836
14840
|
});
|
|
14837
14841
|
}
|
|
14838
|
-
function
|
|
14842
|
+
function Pn(i, e) {
|
|
14839
14843
|
if (!i.RTCPeerConnection || e.browser === "chrome" && e.version >= 71 || e.browser === "safari" && e.version >= 605)
|
|
14840
14844
|
return;
|
|
14841
14845
|
const t = i.RTCPeerConnection.prototype.setRemoteDescription;
|
|
@@ -14885,7 +14889,7 @@ function $i(i, e) {
|
|
|
14885
14889
|
}
|
|
14886
14890
|
const Kv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14887
14891
|
__proto__: null,
|
|
14888
|
-
removeExtmapAllowMixed:
|
|
14892
|
+
removeExtmapAllowMixed: Pn,
|
|
14889
14893
|
shimAddIceCandidateNullOrEmpty: Hi,
|
|
14890
14894
|
shimConnectionState: On,
|
|
14891
14895
|
shimMaxMessageSize: Fi,
|
|
@@ -14914,7 +14918,7 @@ function Wv({ window: i } = {}, e = {
|
|
|
14914
14918
|
return t("Chrome shim is not included in this adapter release."), n;
|
|
14915
14919
|
if (r.version === null)
|
|
14916
14920
|
return t("Chrome shim can not determine version, not shimming."), n;
|
|
14917
|
-
t("adapter.js shimming chrome."), n.browserShim = Yo, Hi(i, r), $i(i), Vc(i, r), Fc(i), Dn(i, r), jc(i), Kc(i, r), Hc(i), $c(i), Wc(i, r), Vi(i), In(i), On(i), Fi(i, r), ji(i),
|
|
14921
|
+
t("adapter.js shimming chrome."), n.browserShim = Yo, Hi(i, r), $i(i), Vc(i, r), Fc(i), Dn(i, r), jc(i), Kc(i, r), Hc(i), $c(i), Wc(i, r), Vi(i), In(i), On(i), Fi(i, r), ji(i), Pn(i, r);
|
|
14918
14922
|
break;
|
|
14919
14923
|
case "firefox":
|
|
14920
14924
|
if (!ea || !xn || !e.shimFirefox)
|
|
@@ -14924,7 +14928,7 @@ function Wv({ window: i } = {}, e = {
|
|
|
14924
14928
|
case "safari":
|
|
14925
14929
|
if (!ta || !e.shimSafari)
|
|
14926
14930
|
return t("Safari shim is not included in this adapter release."), n;
|
|
14927
|
-
t("adapter.js shimming safari."), n.browserShim = ta, Hi(i, r), $i(i), du(i), lu(i), au(i), su(i), ou(i), hu(i), cu(i), pu(i), Vi(i), In(i), Fi(i, r), ji(i),
|
|
14931
|
+
t("adapter.js shimming safari."), n.browserShim = ta, Hi(i, r), $i(i), du(i), lu(i), au(i), su(i), ou(i), hu(i), cu(i), pu(i), Vi(i), In(i), Fi(i, r), ji(i), Pn(i, r);
|
|
14928
14932
|
break;
|
|
14929
14933
|
default:
|
|
14930
14934
|
t("Unsupported browser!");
|
|
@@ -14971,7 +14975,7 @@ class Yv extends nt {
|
|
|
14971
14975
|
*/
|
|
14972
14976
|
static async isSupported(e) {
|
|
14973
14977
|
if (e === "mediaEngine")
|
|
14974
|
-
return
|
|
14978
|
+
return Mc.isSupported();
|
|
14975
14979
|
if (e === "webTransport")
|
|
14976
14980
|
return Promise.resolve(kc.isSupported());
|
|
14977
14981
|
if (e === "rtm")
|
|
@@ -15816,7 +15820,7 @@ class Yv extends nt {
|
|
|
15816
15820
|
quality: e
|
|
15817
15821
|
}), this._streamConsumeController.pushMode === "webTransport" && ["120p", "180p", "240p"].indexOf(e) !== -1)
|
|
15818
15822
|
throw new Error("quality not allowed lower than 360p on rtmp mode");
|
|
15819
|
-
const { width: t, height: r, frameRate: n, bitrate: s } =
|
|
15823
|
+
const { width: t, height: r, frameRate: n, bitrate: s } = Mt(
|
|
15820
15824
|
e,
|
|
15821
15825
|
"video"
|
|
15822
15826
|
);
|
|
@@ -15850,7 +15854,7 @@ class Yv extends nt {
|
|
|
15850
15854
|
O(I.SET_AUDIO_QUALITY, {
|
|
15851
15855
|
quality: e
|
|
15852
15856
|
});
|
|
15853
|
-
const { sampleRate: t, bitrate: r } =
|
|
15857
|
+
const { sampleRate: t, bitrate: r } = Mt(e, "audio");
|
|
15854
15858
|
this._streamManagerController.setAudioSampleRate(t), this._streamConsumeController.setBitrate(r, "audio");
|
|
15855
15859
|
}
|
|
15856
15860
|
/** {en}
|
|
@@ -15891,8 +15895,10 @@ class Yv extends nt {
|
|
|
15891
15895
|
* - ** Success**: No return value.
|
|
15892
15896
|
* - ** Failure**: Returns an error message.
|
|
15893
15897
|
*/
|
|
15894
|
-
stopPush() {
|
|
15895
|
-
return
|
|
15898
|
+
stopPush(e) {
|
|
15899
|
+
return O(I.STOP_PUSH_STREAM_API_CALL, {
|
|
15900
|
+
reason: e
|
|
15901
|
+
}), this._streamConsumeController.stopPush();
|
|
15896
15902
|
}
|
|
15897
15903
|
/** {zh}
|
|
15898
15904
|
* @brief 判断当前是否正在推流。
|
|
@@ -16014,8 +16020,10 @@ class Yv extends nt {
|
|
|
16014
16020
|
* - ** Success**: no return value.
|
|
16015
16021
|
* - ** Failure**: returns an error message.
|
|
16016
16022
|
*/
|
|
16017
|
-
async destroy() {
|
|
16018
|
-
|
|
16023
|
+
async destroy(e) {
|
|
16024
|
+
O(I.PUSHER_DESTROY, {
|
|
16025
|
+
reason: e
|
|
16026
|
+
}), await this._streamConsumeController.destroy(), this._streamManagerController.destroy(), J_();
|
|
16019
16027
|
}
|
|
16020
16028
|
/** {zh}
|
|
16021
16029
|
* @default ???
|