@vindral/web-sdk 4.2.1-1-gf6c6f2fd → 4.2.1-11-ge4e4b428
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/{DDbXsjIU.js → BxiF35JO.js} +5 -4
- package/{CL0_JU7W.js → CYHlcwl-.js} +5 -5
- package/{CYgjrKff.js → DUPUOYnA.js} +2086 -2034
- package/core.d.ts +9 -0
- package/core.js +1 -1
- package/legacy.d.ts +9 -0
- package/legacy.es.js +3354 -3302
- package/legacy.umd.js +14 -14
- package/package.json +1 -1
- package/player.d.ts +9 -0
- package/player.js +3 -3
- package/react.d.ts +9 -0
- 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 "./DUPUOYnA.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";
|
|
@@ -118,7 +118,7 @@ e(Ge, "observedAttributes", [...y(Ve, "observedAttributes", Ve), g.RENDITION_LEV
|
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region ../../libs/player-next/src/components/AdvancedRenditionMenuList.ts
|
|
120
120
|
var qe = document.createElement("template");
|
|
121
|
-
qe.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 220px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .mode-toggle {\n display: flex;\n gap: var(--padding-1);\n margin-bottom: var(--padding-2);\n }\n\n .mode-btn {\n flex: 1;\n padding: var(--padding-1) var(--padding-2);\n border: none;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n background: var(--bg-component);\n color: var(--fg-default);\n transition: background 0.15s;\n }\n\n .mode-btn:hover {\n background: var(--bg-component-hover);\n }\n\n .mode-btn[data-active=\"true\"] {\n background:
|
|
121
|
+
qe.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 220px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .mode-toggle {\n display: flex;\n gap: var(--padding-1);\n margin-bottom: var(--padding-2);\n }\n\n .mode-btn {\n flex: 1;\n padding: var(--padding-1) var(--padding-2);\n border: none;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n background: var(--bg-component);\n color: var(--fg-default);\n transition: background 0.15s;\n }\n\n .mode-btn:hover {\n background: var(--bg-component-hover);\n }\n\n .mode-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--padding-2);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n }\n\n .setting-label {\n font-size: 10px;\n color: var(--fg-subtle);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n .setting-toggle-btn {\n border: none;\n border-radius: 999px;\n background: var(--bg-component);\n color: var(--fg-default);\n font-size: 10px;\n font-weight: 600;\n min-width: 44px;\n padding: 4px 10px;\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .setting-toggle-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-toggle-btn:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n .quality-status-text {\n font-size: 10px;\n color: var(--fg-subtle);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n font-style: italic;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: var(--padding-2);\n padding: var(--padding-2);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n position: relative;\n }\n\n .menu-item:hover {\n background: var(--bg-component-hover);\n }\n\n .menu-item[data-selected=\"true\"] {\n background: var(--bg-component-active);\n border: 1px solid var(--fg-extra-subtle);\n }\n\n .menu-item[data-capped=\"true\"] {\n opacity: 0.5;\n }\n\n .menu-item:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .menu-item-title {\n font-weight: 500;\n }\n\n .menu-item-subtitle {\n font-size: 10px;\n opacity: 0.6;\n }\n\n .current-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--accent);\n margin-left: auto;\n display: none;\n }\n\n .menu-item[data-playing=\"true\"] .current-label {\n display: block;\n }\n </style>\n\n <slot>\n <div class=\"mode-toggle\">\n <button class=\"mode-btn\" data-mode=\"auto\">Auto (ABR)</button>\n <button class=\"mode-btn\" data-mode=\"fixed\">Fixed</button>\n </div>\n <div class=\"setting-row\">\n <span class=\"setting-label\">Size cap</span>\n <button id=\"size-cap-toggle\" class=\"setting-toggle-btn\" type=\"button\"></button>\n </div>\n <div class=\"quality-status-text\" id=\"quality-status-text\"></div>\n <div class=\"menu\" role=\"menu\" aria-label=\"Quality options\"></div>\n </slot>\n";
|
|
122
122
|
var Je = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakSet(), rt = class extends HTMLElement {
|
|
123
123
|
constructor() {
|
|
124
124
|
super(), h(this, w), d(this, Je, []), d(this, Ye, 2 ** 53 - 1), d(this, C, !1), d(this, Xe, !0), d(this, Ze, null), d(this, Qe, null), d(this, $e, []), d(this, et, null), d(this, tt, null), d(this, nt, null), e(this, "handleEvent", (e) => {
|
|
@@ -1035,7 +1035,7 @@ var In = class extends fe {
|
|
|
1035
1035
|
default: break;
|
|
1036
1036
|
}
|
|
1037
1037
|
}), e(this, "onAirPlayPlaybackChanged", () => {
|
|
1038
|
-
window.clearTimeout(this.connectingTimeout), this.element.webkitCurrentPlaybackTargetIsWireless ? (this.emit("connected"), this.element.style.display = "block", this.element.paused && this.element.play()) : (this.emit("disconnected"), this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl, this.element.style.display = "none");
|
|
1038
|
+
window.clearTimeout(this.connectingTimeout), this.element.webkitCurrentPlaybackTargetIsWireless ? (this.emit("connected"), this.element.style.display = "block", this.element.paused && this.element.play().catch(le)) : (this.emit("disconnected"), this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl, this.element.style.display = "none");
|
|
1039
1039
|
}), this.config = t, this.hlsUrl = this.getHlsUrl(), this.element = document.createElement("video"), this.element.style.position = "absolute", this.element.style.top = "0", this.element.style.bottom = "0", this.element.style.left = "0", this.element.style.right = "0", this.element.style.width = "100%", this.element.style.height = "100%", this.element.style.zIndex = "1001", this.element.style.display = "none", this.element.id = "vindral-airplay-element", this.element.slot = "overlay", this.element.playsInline = !0, this.element.controls = !0, this.element.preload = "metadata", this.element.addEventListener("webkitplaybacktargetavailabilitychanged", this.onAirPlayAvailable), this.element.addEventListener("webkitcurrentplaybacktargetiswirelesschanged", this.onAirPlayPlaybackChanged), this.config.container.appendChild(this.element);
|
|
1040
1040
|
}
|
|
1041
1041
|
get casting() {
|
|
@@ -1560,6 +1560,7 @@ Mr.innerHTML = `
|
|
|
1560
1560
|
--bg-component: var(--vindral-bg-component, #222222);
|
|
1561
1561
|
--bg-component-hover: var(--vindral-bg-component-hover, #2a2a2a);
|
|
1562
1562
|
--bg-component-active: var(--vindral-bg-component-active, #313131);
|
|
1563
|
+
--accent: var(--vindral-accent, oklch(54.6% 0.245 262.881));
|
|
1563
1564
|
|
|
1564
1565
|
--padding-1: var(--vindral-padding-1, 4px);
|
|
1565
1566
|
--padding-2: var(--vindral-padding-2, 8px);
|
|
@@ -2433,7 +2434,7 @@ function Yi(e) {
|
|
|
2433
2434
|
}
|
|
2434
2435
|
}
|
|
2435
2436
|
function Xi() {
|
|
2436
|
-
let e = () => (customElements.get("vindral-debug-panel") || import("./
|
|
2437
|
+
let e = () => (customElements.get("vindral-debug-panel") || import("./CYHlcwl-.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(g.DEBUG_PANEL_OPEN, ""), p(F, this));
|
|
2437
2438
|
window._vindralDebug = e, m($r, this, e);
|
|
2438
2439
|
}
|
|
2439
2440
|
function Zi() {
|
|
@@ -344,7 +344,7 @@ de.innerHTML = `
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.section-tab[data-active="true"] {
|
|
347
|
-
background:
|
|
347
|
+
background: var(--accent);
|
|
348
348
|
color: #ffffff;
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -403,7 +403,7 @@ de.innerHTML = `
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.stat-value[data-status="good"] {
|
|
406
|
-
color:
|
|
406
|
+
color: var(--accent);
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.stat-value[data-status="warning"] {
|
|
@@ -566,7 +566,7 @@ de.innerHTML = `
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
.mode-btn[data-active="true"] {
|
|
569
|
-
background:
|
|
569
|
+
background: var(--accent);
|
|
570
570
|
color: #ffffff;
|
|
571
571
|
}
|
|
572
572
|
|
|
@@ -641,7 +641,7 @@ de.innerHTML = `
|
|
|
641
641
|
font-size: 10px;
|
|
642
642
|
font-weight: 600;
|
|
643
643
|
text-transform: uppercase;
|
|
644
|
-
color:
|
|
644
|
+
color: var(--accent);
|
|
645
645
|
margin-left: auto;
|
|
646
646
|
display: none;
|
|
647
647
|
}
|
|
@@ -683,7 +683,7 @@ de.innerHTML = `
|
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
.copy-btn[data-copied="true"] {
|
|
686
|
-
background:
|
|
686
|
+
background: var(--accent);
|
|
687
687
|
color: white;
|
|
688
688
|
}
|
|
689
689
|
|