@vindral/web-sdk 4.2.0-44-g781abd38 → 4.2.0-45-g299ade87
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/{Cu3cx7bH.js → D_lwT3D0.js} +1 -1
- package/{CWnxclst.js → aHFBfjzE.js} +11 -7
- package/core.js +1 -1
- package/legacy.es.js +11 -7
- package/legacy.umd.js +2 -2
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +2 -2
|
@@ -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 "./aHFBfjzE.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";
|
|
@@ -6019,17 +6019,21 @@ function sp() {
|
|
|
6019
6019
|
return sp = t(function* (e) {
|
|
6020
6020
|
let t = new Uint8Array(64 / 2);
|
|
6021
6021
|
for (let e = 0; e < t.length; e += 1) t[e] = parseInt("60b82e8021689e163c1041b4475ef9c86e7565bc45d1a0aa43f5148769f461c7".slice(2 * e, 2 * e + 2), 16);
|
|
6022
|
-
let n = new WebTransport(e.url, { congestionControl: "low-latency" })
|
|
6023
|
-
|
|
6024
|
-
|
|
6022
|
+
let n = new WebTransport(e.url, { congestionControl: "low-latency" }), r = () => {
|
|
6023
|
+
n.close();
|
|
6024
|
+
};
|
|
6025
|
+
typeof window < "u" && typeof window.addEventListener == "function" && (window.addEventListener("beforeunload", r), n.closed.finally(() => {
|
|
6026
|
+
window.removeEventListener("beforeunload", r);
|
|
6027
|
+
}).catch(() => {})), yield Promise.race([n.ready, n.closed.then(() => Promise.reject(/* @__PURE__ */ Error("WebTransport closed")))]);
|
|
6028
|
+
let i = yield n.createBidirectionalStream(), a = Uu.wrapWebTransport(i), o = Ku(a, e.role).catch(() => {
|
|
6025
6029
|
n.close();
|
|
6026
6030
|
});
|
|
6027
|
-
e.handshakePipelining || (yield
|
|
6028
|
-
let
|
|
6031
|
+
e.handshakePipelining || (yield o);
|
|
6032
|
+
let s = new xf(new tp(n, a, e.url.toString()), e.authToken);
|
|
6029
6033
|
return rp.info("connected", {
|
|
6030
6034
|
url: e.url,
|
|
6031
6035
|
transport: "webtransport"
|
|
6032
|
-
}),
|
|
6036
|
+
}), s;
|
|
6033
6037
|
}), sp.apply(this, arguments);
|
|
6034
6038
|
}
|
|
6035
6039
|
function cp(e) {
|
|
@@ -10862,7 +10866,7 @@ var Cv = class {
|
|
|
10862
10866
|
let e = this.modules.canvasModule instanceof O_ ? !0 : void 0;
|
|
10863
10867
|
return C({
|
|
10864
10868
|
uptime: Date.now() - this.createdAt,
|
|
10865
|
-
version: "4.2.0-
|
|
10869
|
+
version: "4.2.0-45-g299ade87",
|
|
10866
10870
|
clientId: this.clientId,
|
|
10867
10871
|
sessionId: this.sessionId,
|
|
10868
10872
|
channelId: this.channelId,
|
package/core.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./aHFBfjzE.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
|
@@ -6928,17 +6928,21 @@ function vh() {
|
|
|
6928
6928
|
return vh = N(function* (e) {
|
|
6929
6929
|
let t = new Uint8Array(64 / 2);
|
|
6930
6930
|
for (let e = 0; e < t.length; e += 1) t[e] = parseInt("60b82e8021689e163c1041b4475ef9c86e7565bc45d1a0aa43f5148769f461c7".slice(2 * e, 2 * e + 2), 16);
|
|
6931
|
-
let n = new WebTransport(e.url, { congestionControl: "low-latency" })
|
|
6932
|
-
|
|
6933
|
-
|
|
6931
|
+
let n = new WebTransport(e.url, { congestionControl: "low-latency" }), r = () => {
|
|
6932
|
+
n.close();
|
|
6933
|
+
};
|
|
6934
|
+
typeof window < "u" && typeof window.addEventListener == "function" && (window.addEventListener("beforeunload", r), n.closed.finally(() => {
|
|
6935
|
+
window.removeEventListener("beforeunload", r);
|
|
6936
|
+
}).catch(() => {})), yield Promise.race([n.ready, n.closed.then(() => Promise.reject(/* @__PURE__ */ Error("WebTransport closed")))]);
|
|
6937
|
+
let i = yield n.createBidirectionalStream(), a = ep.wrapWebTransport(i), o = rp(a, e.role).catch(() => {
|
|
6934
6938
|
n.close();
|
|
6935
6939
|
});
|
|
6936
|
-
e.handshakePipelining || (yield
|
|
6937
|
-
let
|
|
6940
|
+
e.handshakePipelining || (yield o);
|
|
6941
|
+
let s = new Mm(new fh(n, a, e.url.toString()), e.authToken);
|
|
6938
6942
|
return mh.info("connected", {
|
|
6939
6943
|
url: e.url,
|
|
6940
6944
|
transport: "webtransport"
|
|
6941
|
-
}),
|
|
6945
|
+
}), s;
|
|
6942
6946
|
}), vh.apply(this, arguments);
|
|
6943
6947
|
}
|
|
6944
6948
|
function yh(e) {
|
|
@@ -12355,7 +12359,7 @@ var wx = /* @__PURE__ */ new WeakMap(), Tx = /* @__PURE__ */ new WeakMap(), Ex =
|
|
|
12355
12359
|
let e = this.modules.canvasModule instanceof gb ? !0 : void 0;
|
|
12356
12360
|
return z({
|
|
12357
12361
|
uptime: Date.now() - this.createdAt,
|
|
12358
|
-
version: "4.2.0-
|
|
12362
|
+
version: "4.2.0-45-g299ade87",
|
|
12359
12363
|
clientId: this.clientId,
|
|
12360
12364
|
sessionId: this.sessionId,
|
|
12361
12365
|
channelId: this.channelId,
|