kucservice 1.2.8 → 1.2.9
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/decoder/index.mjs +7 -3
- package/package.json +1 -1
package/dist/decoder/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
const s = t._opt.debugUuid ? `[${t._opt.debugUuid}]` : "";
|
|
23
23
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
24
24
|
a[n - 1] = arguments[n];
|
|
25
|
-
console.error(`JbPro${s}[❌❌❌][${i}]`, ...a);
|
|
25
|
+
console.error(`JbPro${s}[❌❌❌1][${i}]`, ...a);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -28412,6 +28412,7 @@ class SA {
|
|
|
28412
28412
|
}
|
|
28413
28413
|
wbrtc256pull(we, De, at) {
|
|
28414
28414
|
let Xe = "";
|
|
28415
|
+
let that = this
|
|
28415
28416
|
if (at)
|
|
28416
28417
|
Xe = at;
|
|
28417
28418
|
else {
|
|
@@ -28424,12 +28425,14 @@ class SA {
|
|
|
28424
28425
|
let Pe = new XMLHttpRequest() || new ActiveXObject("Microsoft.XMLHTTP");
|
|
28425
28426
|
Pe.timeout = 1e3 * 30;
|
|
28426
28427
|
let Xt = at || Xe, Ji = we + `/api/rtsp/pull?target=${escape(De.rtsp)}&streamPath=path_${Xt}/t${Xt}`;
|
|
28427
|
-
Pe.open("get", Ji), Pe.send(null), Pe.onerror = function() {
|
|
28428
|
+
Pe.open("get", Ji), Pe.send(null), Pe.onerror = function(e) {
|
|
28428
28429
|
console.log("请求失败"), Ie();
|
|
28430
|
+
that.callBack(e || {code: '1006', msg: '视频流请求失败'})
|
|
28429
28431
|
}, Pe.onprogress = function() {
|
|
28430
28432
|
console.log("上传中...");
|
|
28431
28433
|
}, Pe.ontimeout = function() {
|
|
28432
28434
|
Ie(), console.log("请求超时");
|
|
28435
|
+
that.callBack(e || {code: '1005', msg: '视频流请求超时'})
|
|
28433
28436
|
}, Pe.onreadystatechange = function() {
|
|
28434
28437
|
Pe.readyState === 4 && Pe.status == "200" && Ne(Pe.responseText);
|
|
28435
28438
|
};
|
|
@@ -28458,6 +28461,7 @@ class SA {
|
|
|
28458
28461
|
console.log("then-->", Rt);
|
|
28459
28462
|
}).catch((Rt) => {
|
|
28460
28463
|
console.log("播放错误"), console.log(Rt);
|
|
28464
|
+
this.callBack(Rt)
|
|
28461
28465
|
});
|
|
28462
28466
|
}, 100);
|
|
28463
28467
|
}
|
|
@@ -28502,5 +28506,5 @@ class SA {
|
|
|
28502
28506
|
await this.pullYt(we, Xt, "post", !0);
|
|
28503
28507
|
}
|
|
28504
28508
|
}
|
|
28505
|
-
|
|
28509
|
+
|
|
28506
28510
|
window.h265 = SA
|