@vindral/web-sdk 4.3.3-1-ge802c2dd2 → 4.3.3-11-ge23a34f7
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/{BApOPUVw.js → C5OMhL2K.js} +23 -4
- package/{5EoMYDmI.js → FBFAk0nL.js} +1 -1
- package/core.js +1 -1
- package/legacy.es.js +23 -4
- package/legacy.umd.js +2 -2
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +2 -2
|
@@ -5701,6 +5701,10 @@ var Tf = class {
|
|
|
5701
5701
|
transportType() {
|
|
5702
5702
|
return x(vf, this).transportType();
|
|
5703
5703
|
}
|
|
5704
|
+
getStats() {
|
|
5705
|
+
var e, t, n;
|
|
5706
|
+
return (e = (t = (n = x(vf, this)).getStats) == null ? void 0 : t.call(n)) == null ? Promise.resolve(void 0) : e;
|
|
5707
|
+
}
|
|
5704
5708
|
url() {
|
|
5705
5709
|
return x(vf, this).url();
|
|
5706
5710
|
}
|
|
@@ -5809,9 +5813,12 @@ function jf() {
|
|
|
5809
5813
|
}
|
|
5810
5814
|
//#endregion
|
|
5811
5815
|
//#region ../../libs/moq/src/protocol/StreamIdBufferWriter.ts
|
|
5812
|
-
var Mf = 128
|
|
5816
|
+
var Mf = 128;
|
|
5817
|
+
Mf - 1;
|
|
5818
|
+
var Nf = /* @__PURE__ */ new WeakMap(), Pf = /* @__PURE__ */ new WeakMap(), Ff = /* @__PURE__ */ new WeakMap(), If = /* @__PURE__ */ new WeakMap(), Lf = /* @__PURE__ */ new WeakMap(), Rf = /* @__PURE__ */ new WeakSet(), zf = class {
|
|
5813
5819
|
constructor(e, t, n) {
|
|
5814
|
-
C(this, Rf), y(this, Nf, void 0), y(this, Pf, void 0), y(this, Ff, !0), y(this, If, !1), y(this, Lf, void 0),
|
|
5820
|
+
if (C(this, Rf), y(this, Nf, void 0), y(this, Pf, void 0), y(this, Ff, !0), y(this, If, !1), y(this, Lf, void 0), !Number.isInteger(t) || t < 1 || t > 127) throw Error(`Invalid stream ID ${t}: must be an integer in 1..127`);
|
|
5821
|
+
S(Nf, this, e), S(Pf, this, t), S(Lf, this, n);
|
|
5815
5822
|
}
|
|
5816
5823
|
writeUnsigned8(e) {
|
|
5817
5824
|
var n = this;
|
|
@@ -5866,7 +5873,7 @@ function Vf(e = !0) {
|
|
|
5866
5873
|
//#region ../../libs/moq/src/transport/WebSocketConnection.ts
|
|
5867
5874
|
var Hf = /* @__PURE__ */ new WeakMap(), Uf = /* @__PURE__ */ new WeakMap(), Wf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), Kf = /* @__PURE__ */ new WeakMap(), qf = /* @__PURE__ */ new WeakMap(), Jf = /* @__PURE__ */ new WeakMap(), Yf = /* @__PURE__ */ new WeakSet(), Xf = class {
|
|
5868
5875
|
constructor(e, t) {
|
|
5869
|
-
C(this, Yf), y(this, Hf, void 0), y(this, Uf, void 0), y(this, Wf, void 0), y(this, Gf, void 0), y(this, Kf, /* @__PURE__ */ new Map()), y(this, qf, O.get().createContext("WebSocketConnection")), y(this, Jf, new Set(Array(
|
|
5876
|
+
C(this, Yf), y(this, Hf, void 0), y(this, Uf, void 0), y(this, Wf, void 0), y(this, Gf, void 0), y(this, Kf, /* @__PURE__ */ new Map()), y(this, qf, O.get().createContext("WebSocketConnection")), y(this, Jf, new Set(Array(127).fill(0).map((e, t) => t + 1))), S(Hf, this, e), S(Uf, this, t), S(Wf, this, new ReadableStream(new Tc(e))), x(Hf, this).addEventListener("close", (e) => {
|
|
5870
5877
|
x(qf, this).info("WebSocket closed", {
|
|
5871
5878
|
code: e.code,
|
|
5872
5879
|
reason: e.reason,
|
|
@@ -5993,6 +6000,18 @@ var Qf = /* @__PURE__ */ new WeakMap(), $f = /* @__PURE__ */ new WeakMap(), ep =
|
|
|
5993
6000
|
return x(ep, e).pop();
|
|
5994
6001
|
})();
|
|
5995
6002
|
}
|
|
6003
|
+
getStats() {
|
|
6004
|
+
var e = this;
|
|
6005
|
+
return t(function* () {
|
|
6006
|
+
let t = x(Qf, e);
|
|
6007
|
+
if (typeof t.getStats != "function") return;
|
|
6008
|
+
let n = yield t.getStats();
|
|
6009
|
+
if (n != null) return {
|
|
6010
|
+
packetsLost: n.packetsLost,
|
|
6011
|
+
packetsSent: n.packetsSent
|
|
6012
|
+
};
|
|
6013
|
+
})();
|
|
6014
|
+
}
|
|
5996
6015
|
};
|
|
5997
6016
|
function op() {
|
|
5998
6017
|
var e = this;
|
|
@@ -11096,7 +11115,7 @@ var Uv = class {
|
|
|
11096
11115
|
let e = this.modules.canvasModule instanceof J_ ? !0 : void 0;
|
|
11097
11116
|
return w({
|
|
11098
11117
|
uptime: this.uptime,
|
|
11099
|
-
version: "4.3.3-
|
|
11118
|
+
version: "4.3.3-11-ge23a34f7",
|
|
11100
11119
|
clientId: this.clientId,
|
|
11101
11120
|
sessionId: this.sessionId,
|
|
11102
11121
|
channelId: this.channelId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./
|
|
2
|
+
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./C5OMhL2K.js";
|
|
3
3
|
import { M as le } from "./C01DcfYu.js";
|
|
4
4
|
import { a as d, i as f, n as p, r as m, t as h } from "./B7hT-BKr.js";
|
|
5
5
|
import { n as ue, t as de } from "./DeYmk5AL.js";
|
package/core.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./C5OMhL2K.js";
|
|
2
2
|
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, u as l } from "./C01DcfYu.js";
|
|
3
3
|
export { a as AUTHENTICATION_EXPIRED_CODE, s as AUTHENTICATION_FAILED_CODE, r as CHANNEL_NOT_FOUND_CODE, t as CONNECTION_FAILED_AFTER_RETRIES_CODE, o as CONNECTION_FAILED_CODE, c as DISCONNECTED_BY_EDGE, n as INACTIVITY_CODE, i as NO_INCOMING_DATA, e as Vindral, l as VindralError };
|
package/legacy.es.js
CHANGED
|
@@ -6616,6 +6616,10 @@ var Rm = class {
|
|
|
6616
6616
|
transportType() {
|
|
6617
6617
|
return A(jm, this).transportType();
|
|
6618
6618
|
}
|
|
6619
|
+
getStats() {
|
|
6620
|
+
var e, t, n;
|
|
6621
|
+
return (e = (t = (n = A(jm, this)).getStats) == null ? void 0 : t.call(n)) == null ? Promise.resolve(void 0) : e;
|
|
6622
|
+
}
|
|
6619
6623
|
url() {
|
|
6620
6624
|
return A(jm, this).url();
|
|
6621
6625
|
}
|
|
@@ -6723,9 +6727,12 @@ function Wm() {
|
|
|
6723
6727
|
A(Fm, this).debug("Enter 'dispose'"), this.close();
|
|
6724
6728
|
}
|
|
6725
6729
|
L(), T(), k(), j(), D(), N();
|
|
6726
|
-
var Gm = 128
|
|
6730
|
+
var Gm = 128;
|
|
6731
|
+
Gm - 1;
|
|
6732
|
+
var Km = /* @__PURE__ */ new WeakMap(), qm = /* @__PURE__ */ new WeakMap(), Jm = /* @__PURE__ */ new WeakMap(), Ym = /* @__PURE__ */ new WeakMap(), Xm = /* @__PURE__ */ new WeakMap(), Zm = /* @__PURE__ */ new WeakSet(), Qm = class {
|
|
6727
6733
|
constructor(e, t, n) {
|
|
6728
|
-
I(this, Zm), w(this, Km, void 0), w(this, qm, void 0), w(this, Jm, !0), w(this, Ym, !1), w(this, Xm, void 0),
|
|
6734
|
+
if (I(this, Zm), w(this, Km, void 0), w(this, qm, void 0), w(this, Jm, !0), w(this, Ym, !1), w(this, Xm, void 0), !Number.isInteger(t) || t < 1 || t > 127) throw Error(`Invalid stream ID ${t}: must be an integer in 1..127`);
|
|
6735
|
+
O(Km, this, e), O(qm, this, t), O(Xm, this, n);
|
|
6729
6736
|
}
|
|
6730
6737
|
writeUnsigned8(e) {
|
|
6731
6738
|
var t = this;
|
|
@@ -6779,7 +6786,7 @@ function eh(e = !0) {
|
|
|
6779
6786
|
V(), L(), T(), k(), j(), D(), N();
|
|
6780
6787
|
var th = /* @__PURE__ */ new WeakMap(), nh = /* @__PURE__ */ new WeakMap(), rh = /* @__PURE__ */ new WeakMap(), ih = /* @__PURE__ */ new WeakMap(), ah = /* @__PURE__ */ new WeakMap(), oh = /* @__PURE__ */ new WeakMap(), sh = /* @__PURE__ */ new WeakMap(), ch = /* @__PURE__ */ new WeakSet(), lh = class {
|
|
6781
6788
|
constructor(e, t) {
|
|
6782
|
-
I(this, ch), w(this, th, void 0), w(this, nh, void 0), w(this, rh, void 0), w(this, ih, void 0), w(this, ah, /* @__PURE__ */ new Map()), w(this, oh, cn.get().createContext("WebSocketConnection")), w(this, sh, new Set(Array(
|
|
6789
|
+
I(this, ch), w(this, th, void 0), w(this, nh, void 0), w(this, rh, void 0), w(this, ih, void 0), w(this, ah, /* @__PURE__ */ new Map()), w(this, oh, cn.get().createContext("WebSocketConnection")), w(this, sh, new Set(Array(127).fill(0).map((e, t) => t + 1))), O(th, this, e), O(nh, this, t), O(rh, this, new ReadableStream(new Nu(e))), A(th, this).addEventListener("close", (e) => {
|
|
6783
6790
|
A(oh, this).info("WebSocket closed", {
|
|
6784
6791
|
code: e.code,
|
|
6785
6792
|
reason: e.reason,
|
|
@@ -6905,6 +6912,18 @@ var dh = /* @__PURE__ */ new WeakMap(), fh = /* @__PURE__ */ new WeakMap(), ph =
|
|
|
6905
6912
|
return A(ph, e).pop();
|
|
6906
6913
|
})();
|
|
6907
6914
|
}
|
|
6915
|
+
getStats() {
|
|
6916
|
+
var e = this;
|
|
6917
|
+
return M(function* () {
|
|
6918
|
+
let t = A(dh, e);
|
|
6919
|
+
if (typeof t.getStats != "function") return;
|
|
6920
|
+
let n = yield t.getStats();
|
|
6921
|
+
if (n != null) return {
|
|
6922
|
+
packetsLost: n.packetsLost,
|
|
6923
|
+
packetsSent: n.packetsSent
|
|
6924
|
+
};
|
|
6925
|
+
})();
|
|
6926
|
+
}
|
|
6908
6927
|
};
|
|
6909
6928
|
function yh() {
|
|
6910
6929
|
var e = this;
|
|
@@ -12595,7 +12614,7 @@ var Xx = /* @__PURE__ */ new WeakMap(), Zx = /* @__PURE__ */ new WeakMap(), Qx =
|
|
|
12595
12614
|
let e = this.modules.canvasModule instanceof Lb ? !0 : void 0;
|
|
12596
12615
|
return R({
|
|
12597
12616
|
uptime: this.uptime,
|
|
12598
|
-
version: "4.3.3-
|
|
12617
|
+
version: "4.3.3-11-ge23a34f7",
|
|
12599
12618
|
clientId: this.clientId,
|
|
12600
12619
|
sessionId: this.sessionId,
|
|
12601
12620
|
channelId: this.channelId,
|