kucservice 1.2.9 → 1.3.0
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
CHANGED
|
@@ -25597,6 +25597,8 @@
|
|
|
25597
25597
|
}), Object.keys(P).forEach((d) => {
|
|
25598
25598
|
a.on(P[d], (p) => {
|
|
25599
25599
|
a.debug.warn("player event error", P[d], p);
|
|
25600
|
+
// 报错处理
|
|
25601
|
+
i.callBack && i.callBack({ type: P[d], dom: t })
|
|
25600
25602
|
});
|
|
25601
25603
|
});
|
|
25602
25604
|
}
|
|
@@ -26880,7 +26882,7 @@
|
|
|
26880
26882
|
class gr extends Ue {
|
|
26881
26883
|
constructor() {
|
|
26882
26884
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
26883
|
-
super(), this._opt = {}, this.$container = null, Object.keys(t).forEach((d) => {
|
|
26885
|
+
super(), this._opt = {}, this.$container = null, this.$callBack = null, Object.keys(t).forEach((d) => {
|
|
26884
26886
|
if (t[d] === void 0)
|
|
26885
26887
|
throw new Error(`JbPro option "${d}" can not be undefined`);
|
|
26886
26888
|
}), this.originalOptions = t;
|
|
@@ -26891,6 +26893,7 @@
|
|
|
26891
26893
|
return (d == "x" ? p : 3 & p | 8).toString(16);
|
|
26892
26894
|
})), this.debug = new dn(this);
|
|
26893
26895
|
let r = t.container;
|
|
26896
|
+
this.$callBack = t.callBack;
|
|
26894
26897
|
if (typeof t.container == "string" && (r = document.querySelector(t.container)), !r)
|
|
26895
26898
|
throw this.debug.error("JbPro", "JbPro need container option and now container is", t.container), new Error("JbPro need container option");
|
|
26896
26899
|
if (s.decoder && ee(s.decoder.indexOf("decoder-pro.js") !== -1 || s.decoder.indexOf("decoder-pro-simd.js") !== -1))
|
|
@@ -28375,6 +28378,8 @@ class SA {
|
|
|
28375
28378
|
}
|
|
28376
28379
|
let Xe = document.getElementById(De), Ne = this, Ie = new JessibucaPro({
|
|
28377
28380
|
container: Xe,
|
|
28381
|
+
callBack: Ne.callBack,
|
|
28382
|
+
//回调函数
|
|
28378
28383
|
decoder: Ne.decUrl,
|
|
28379
28384
|
videoBuffer: 0.2,
|
|
28380
28385
|
// 缓存时长
|