@vindral/web-sdk 4.5.0 → 4.5.1-10-g5556eb794
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/94-sTJd8.js +7 -0
- package/B1PhBNUa.js +101 -0
- package/{DeYmk5AL.js → BOdyvABa.js} +1 -1
- package/{Cug44nXk.js → CN4egPyY.js} +2 -2
- package/{C02TEUyE.js → CeMkNC0l.js} +1463 -1435
- package/CiWlpwR0.js +123 -0
- package/{zRKuZnIT.js → D25qKlGC.js} +2996 -2848
- package/{BsJtUY1Z.js → DRMUL9n5.js} +2 -2
- package/{B7hT-BKr.js → DSw1XhvD.js} +1 -6
- package/{D7vM_Gpt.js → DTs-C-0Z.js} +12 -12
- package/{C2-H3s2r.js → DbdwBdhd.js} +299 -298
- package/api-client.js +1 -1
- package/cast-sender.d.ts +22 -3
- package/cast-sender.js +1 -1
- package/core.d.ts +62 -6
- package/core.js +3 -3
- package/{C5AsBfiL.js → ir89G42i.js} +2 -2
- package/legacy.d.ts +72 -6
- package/legacy.es.js +2740 -2536
- package/legacy.umd.js +65 -15
- package/package.json +1 -1
- package/player.d.ts +27 -7
- package/player.js +3 -3
- package/react.d.ts +27 -7
- package/vindral-player-component.js +2 -2
- package/{BdFcdkj1.js → xYchr7Lz.js} +26 -22
- package/C01DcfYu.js +0 -118
- package/FYiEDBC4.js +0 -50
- /package/{RxoWWyzp.js → BKeRxR4O.js} +0 -0
- /package/{Bt-ONXfO.js → CbyVl6wP.js} +0 -0
- /package/{Ddby8xU_.js → Ct8GqCxq.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import {
|
|
2
|
+
import { P as n, b as r } from "./CiWlpwR0.js";
|
|
3
3
|
import { t as i } from "./DrWNJwZx.js";
|
|
4
|
-
import { t as a } from "./
|
|
4
|
+
import { t as a } from "./BKeRxR4O.js";
|
|
5
5
|
//#region ../../libs/wasm-decoders/src/opus/wasm/opus.js
|
|
6
6
|
var o = (function() {
|
|
7
7
|
var e = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
@@ -24,9 +24,4 @@ function i(e, t) {
|
|
|
24
24
|
return e.get(n(e, t));
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
|
|
28
|
-
function a(t, n) {
|
|
29
|
-
e(t, n), n.add(t);
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { t as a, n as i, i as n, r, a as t };
|
|
27
|
+
export { e as a, t as i, r as n, n as r, i as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./BsfwXDui.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as t, n, t as r } from "./DSw1XhvD.js";
|
|
3
3
|
//#region ../../libs/utils/src/formatting.ts
|
|
4
4
|
var i = 1e3, a = i * 1e3, o = a * 1e3, s = (e, t, n) => e % t === 0 ? e / t : (e / t).toFixed(n), c = (e, t = 1) => e >= o ? `${s(e, o, t)} Gbit/s` : e >= a ? `${s(e, a, t)} Mbit/s` : e >= i ? `${s(e, i, t)} Kbit/s` : `${e} bit/s`, l = ({ width: e, height: t }) => `${e}x${t}`, u = {
|
|
5
5
|
PAUSED: "paused",
|
|
@@ -151,17 +151,17 @@ var T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /*
|
|
|
151
151
|
}), t(this, D, (e) => {
|
|
152
152
|
let { key: t } = e;
|
|
153
153
|
if (!this.keysUsed.includes(t)) {
|
|
154
|
-
this.removeEventListener("keyup",
|
|
154
|
+
this.removeEventListener("keyup", r(D, this));
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
this.handleClick(e);
|
|
158
158
|
}), t(this, O, (e) => {
|
|
159
|
-
let { metaKey: t, altKey:
|
|
160
|
-
if (t ||
|
|
161
|
-
this.removeEventListener("keyup",
|
|
159
|
+
let { metaKey: t, altKey: n, key: i } = e;
|
|
160
|
+
if (t || n || !this.keysUsed.includes(i)) {
|
|
161
|
+
this.removeEventListener("keyup", r(D, this));
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
this.addEventListener("keyup",
|
|
164
|
+
this.addEventListener("keyup", r(D, this), { once: !0 });
|
|
165
165
|
}), this.attachShadow({ mode: "open" }).appendChild(w.content.cloneNode(!0));
|
|
166
166
|
}
|
|
167
167
|
get keysUsed() {
|
|
@@ -169,17 +169,17 @@ var T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /*
|
|
|
169
169
|
}
|
|
170
170
|
connectedCallback() {
|
|
171
171
|
var e;
|
|
172
|
-
|
|
172
|
+
n(T, this, this.closest("vindral-controller")), (e = r(T, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable(), this.setAttribute("role", "button");
|
|
173
173
|
}
|
|
174
174
|
enable() {
|
|
175
|
-
this.addEventListener("click",
|
|
175
|
+
this.addEventListener("click", r(E, this)), this.addEventListener("keydown", r(O, this)), this.tabIndex = 0;
|
|
176
176
|
}
|
|
177
177
|
disable() {
|
|
178
|
-
this.removeEventListener("click",
|
|
178
|
+
this.removeEventListener("click", r(E, this)), this.removeEventListener("keydown", r(O, this)), this.removeEventListener("keyup", r(D, this)), this.tabIndex = -1;
|
|
179
179
|
}
|
|
180
180
|
disconnectedCallback() {
|
|
181
181
|
var e;
|
|
182
|
-
(e =
|
|
182
|
+
(e = r(T, this)) == null || e.disconnectListener(this);
|
|
183
183
|
}
|
|
184
184
|
attributeChangedCallback(e, t, n) {
|
|
185
185
|
e === "disabled" && (y(n) ? this.disable() : this.enable());
|
|
@@ -220,6 +220,6 @@ function N(e, t, n, r) {
|
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region ../../libs/player-next/src/constants.ts
|
|
223
|
-
var P = 5e3;
|
|
223
|
+
var P = 5e3, F = "https://lb.cdn.vindral.com";
|
|
224
224
|
//#endregion
|
|
225
|
-
export {
|
|
225
|
+
export { u as _, y as a, l as b, x as c, g as d, p as f, f as g, h, k as i, m as l, C as m, F as n, _ as o, v as p, N as r, b as s, P as t, S as u, d as v, c as y };
|