@vindral/web-sdk 4.2.0-5-g7d2f2421 → 4.2.0-6-g76abf9e5
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/{DUiPjZzG.js → BIfIQRAg.js} +4 -4
- package/{CeNTkfvl.js → BULSLxj_.js} +1 -1
- package/{BlaVT4GS.js → BufqTvbm.js} +1 -1
- package/{DbI5whml.js → CucVjixA.js} +1 -1
- package/core.js +1 -1
- package/legacy.es.js +116 -116
- package/legacy.umd.js +2 -2
- package/package.json +1 -1
- package/player.js +95 -95
package/player.js
CHANGED
|
@@ -31,11 +31,11 @@ var q = (p, a, t) => new Promise((i, s) => {
|
|
|
31
31
|
}, c = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, u);
|
|
32
32
|
c((t = t.apply(p, a)).next());
|
|
33
33
|
});
|
|
34
|
-
import {
|
|
34
|
+
import { n as rh, i as ah, e as oh, g as lh, f as hh, s as ia, h as dh, j as ch, k as uh, l as ph, m as bh, o as sa, p as mh, L as da, V as vh, q as fh, r as gh, u as Eh, C as Ah, A as yh, t as kh, v as Ih } from "./BIfIQRAg.js";
|
|
35
35
|
import { E as Ys } from "./DGo74EDo.js";
|
|
36
|
-
import { CastSender as
|
|
37
|
-
import { A as
|
|
38
|
-
const Fn = 1e3, Hn = Fn * 1e3, na = Hn * 1e3, Dn = (p, a, t) => p % a === 0 ? p / a : (p / a).toFixed(t), ca = (p, a = 1) => p >= na ? `${Dn(p, na, a)} Gbit/s` : p >= Hn ? `${Dn(p, Hn, a)} Mbit/s` : p >= Fn ? `${Dn(p, Fn, a)} Kbit/s` : `${p} bit/s`, ua = ({ width: p, height: a }) => `${p}x${a}`,
|
|
36
|
+
import { CastSender as Lh } from "./cast-sender.js";
|
|
37
|
+
import { A as Th, d as Sh } from "./CuhQLT-7.js";
|
|
38
|
+
const Fn = 1e3, Hn = Fn * 1e3, na = Hn * 1e3, Dn = (p, a, t) => p % a === 0 ? p / a : (p / a).toFixed(t), ca = (p, a = 1) => p >= na ? `${Dn(p, na, a)} Gbit/s` : p >= Hn ? `${Dn(p, Hn, a)} Mbit/s` : p >= Fn ? `${Dn(p, Fn, a)} Kbit/s` : `${p} bit/s`, ua = ({ width: p, height: a }) => `${p}x${a}`, wh = ({
|
|
39
39
|
title: p,
|
|
40
40
|
subTitle: a = "Live stream",
|
|
41
41
|
poster: t
|
|
@@ -45,14 +45,14 @@ const Fn = 1e3, Hn = Fn * 1e3, na = Hn * 1e3, Dn = (p, a, t) => p % a === 0 ? p
|
|
|
45
45
|
artist: a,
|
|
46
46
|
artwork: t ? [{ src: t }] : []
|
|
47
47
|
}));
|
|
48
|
-
},
|
|
49
|
-
function
|
|
48
|
+
}, Ch = (p) => p === "mse" || p === "webcodecs" || p === "wasm";
|
|
49
|
+
function xh(p) {
|
|
50
50
|
if (p === null || p === "auto")
|
|
51
51
|
return;
|
|
52
|
-
const a = p.split(",").filter(
|
|
52
|
+
const a = p.split(",").filter(Ch);
|
|
53
53
|
return a.length > 0 ? a : void 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Nh(p) {
|
|
56
56
|
if (p === "no-preference" || p === "prefer-hardware" || p === "prefer-software")
|
|
57
57
|
return p;
|
|
58
58
|
}
|
|
@@ -130,14 +130,14 @@ function ba(p) {
|
|
|
130
130
|
function Mn(p) {
|
|
131
131
|
return p === "trace" || p === "debug" || p === "info" || p === "warn" || p === "error" || p === "off" ? p : "off";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Rh(p) {
|
|
134
134
|
if (p === null)
|
|
135
135
|
return;
|
|
136
136
|
const a = p.split(",").map((t) => t.trim()).filter((t) => t === "h264" || t === "av1");
|
|
137
137
|
if (a.length !== 0)
|
|
138
138
|
return a;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function _h(p) {
|
|
141
141
|
if (p !== null)
|
|
142
142
|
try {
|
|
143
143
|
const a = JSON.parse(p);
|
|
@@ -150,7 +150,7 @@ function Rh(p) {
|
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Uh(p) {
|
|
154
154
|
if (p !== null)
|
|
155
155
|
try {
|
|
156
156
|
const a = JSON.parse(p);
|
|
@@ -426,7 +426,7 @@ Be = new WeakMap(), ze = new WeakMap(), et = new WeakMap(), Fi = new WeakMap(),
|
|
|
426
426
|
var t, i, s;
|
|
427
427
|
(t = e(this, et)) != null && t.hidden && (e(this, et).hidden = !1, (i = e(this, Be)) == null || i.setAttribute("aria-expanded", "true"), (s = e(this, ze)) == null || s.focus(), this.dispatchEvent(new CustomEvent(y.LOCK_UI, { bubbles: !0, composed: !0 })));
|
|
428
428
|
};
|
|
429
|
-
const
|
|
429
|
+
const Ph = (
|
|
430
430
|
/* SVG */
|
|
431
431
|
`
|
|
432
432
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -443,7 +443,7 @@ ya.innerHTML = /* HTML */
|
|
|
443
443
|
}
|
|
444
444
|
</style>
|
|
445
445
|
|
|
446
|
-
<slot name="button">${
|
|
446
|
+
<slot name="button">${Ph}</slot>
|
|
447
447
|
<slot name="listbox" hidden>
|
|
448
448
|
<vindral-advanced-rendition-menu-list id="listbox" part="listbox"></vindral-advanced-rendition-menu-list>
|
|
449
449
|
</slot>
|
|
@@ -842,7 +842,7 @@ $e = new WeakMap(), Ae = new WeakMap(), it = new WeakMap(), Tt = new WeakMap(),
|
|
|
842
842
|
r.RENDITION_LEVEL,
|
|
843
843
|
r.SIZE_BASED_RESOLUTION_CAP_ENABLED
|
|
844
844
|
]);
|
|
845
|
-
const Pa = document.createElement("template"),
|
|
845
|
+
const Pa = document.createElement("template"), Dh = (
|
|
846
846
|
/* SVG */
|
|
847
847
|
`
|
|
848
848
|
<svg width="24" height="24" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -897,7 +897,7 @@ Pa.innerHTML = /* HTML */
|
|
|
897
897
|
}
|
|
898
898
|
</style>
|
|
899
899
|
|
|
900
|
-
<slot name="icon">${
|
|
900
|
+
<slot name="icon">${Dh}</slot>
|
|
901
901
|
`;
|
|
902
902
|
var Ke;
|
|
903
903
|
class Da extends HTMLElement {
|
|
@@ -1486,7 +1486,7 @@ qt = new WeakMap(), St = new WeakMap(), je = new WeakMap(), Z = new WeakMap(), z
|
|
|
1486
1486
|
"mode",
|
|
1487
1487
|
"hidden"
|
|
1488
1488
|
]);
|
|
1489
|
-
const
|
|
1489
|
+
const Mh = (
|
|
1490
1490
|
/* SVG */
|
|
1491
1491
|
`
|
|
1492
1492
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -1512,7 +1512,7 @@ oo.innerHTML = /* HTML */
|
|
|
1512
1512
|
display: none;
|
|
1513
1513
|
}
|
|
1514
1514
|
</style>
|
|
1515
|
-
<slot name="button">${
|
|
1515
|
+
<slot name="button">${Mh}</slot>
|
|
1516
1516
|
`;
|
|
1517
1517
|
var Je, X, st, pn, V, lo, Jn, Qs, Zn, Qn;
|
|
1518
1518
|
const Ii = class Ii extends mt {
|
|
@@ -1621,7 +1621,7 @@ class co extends HTMLElement {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
1623
|
v(co, "observedAttributes", []);
|
|
1624
|
-
class
|
|
1624
|
+
class Oh extends Ys {
|
|
1625
1625
|
constructor(t) {
|
|
1626
1626
|
super();
|
|
1627
1627
|
v(this, "config");
|
|
@@ -1675,9 +1675,9 @@ class Mh extends Ys {
|
|
|
1675
1675
|
* Show the AirPlay picker.
|
|
1676
1676
|
*/
|
|
1677
1677
|
showPlaybackTargetPicker() {
|
|
1678
|
-
this.element.paused && (this.element.play(), this.connectingTimeout = window.setTimeout(() => {
|
|
1678
|
+
"webkitShowPlaybackTargetPicker" in this.element && this.castingAvailable && (this.element.paused && (this.element.play().catch(rh), this.connectingTimeout = window.setTimeout(() => {
|
|
1679
1679
|
this.casting || (this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl);
|
|
1680
|
-
}, 3e4)), this.element.webkitShowPlaybackTargetPicker();
|
|
1680
|
+
}, 3e4)), this.element.webkitShowPlaybackTargetPicker());
|
|
1681
1681
|
}
|
|
1682
1682
|
/**
|
|
1683
1683
|
* Returns if AirPlay is supported.
|
|
@@ -1722,7 +1722,7 @@ const Fe = class Fe extends Ys {
|
|
|
1722
1722
|
}));
|
|
1723
1723
|
v(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen()));
|
|
1724
1724
|
// into the yolo zone
|
|
1725
|
-
v(this, "isFullscreen", () =>
|
|
1725
|
+
v(this, "isFullscreen", () => ah());
|
|
1726
1726
|
v(this, "isSupported", () => Fe.isFullscreenApiSupported(this.container) || !this.isInIframe());
|
|
1727
1727
|
v(this, "isFullscreenApiSupported", () => Fe.isFullscreenApiSupported(this.container));
|
|
1728
1728
|
v(this, "isInIframe", () => window.location !== window.parent.location);
|
|
@@ -1730,14 +1730,14 @@ const Fe = class Fe extends Ys {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
get requestFn() {
|
|
1732
1732
|
var t;
|
|
1733
|
-
return (t =
|
|
1733
|
+
return (t = lh(this.container)) != null ? t : (() => Promise.resolve());
|
|
1734
1734
|
}
|
|
1735
1735
|
get exitFn() {
|
|
1736
1736
|
var t;
|
|
1737
|
-
return Fe.isFullscreenApiSupported(this.container) && this.isFullscreen() ? (t =
|
|
1737
|
+
return Fe.isFullscreenApiSupported(this.container) && this.isFullscreen() ? (t = hh(this.container)) != null ? t : (() => Promise.resolve()) : () => Promise.resolve();
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
|
-
v(Fe, "isFullscreenApiSupported", (t) =>
|
|
1740
|
+
v(Fe, "isFullscreenApiSupported", (t) => oh(t));
|
|
1741
1741
|
let Lt = Fe;
|
|
1742
1742
|
var bn, mn, vn, fn, Ze, gn, En, Gi, Qe;
|
|
1743
1743
|
class aa extends Ys {
|
|
@@ -1768,17 +1768,17 @@ class aa extends Ys {
|
|
|
1768
1768
|
l(this, bn, () => e(this, Ze).call(this) ? e(this, vn).call(this) : e(this, Qe).call(this) ? e(this, Gi).call(this, "picture-in-picture") : Promise.resolve());
|
|
1769
1769
|
l(this, mn, () => this.isPictureInPictureActive() ? e(this, Ze).call(this) ? e(this, fn).call(this) : e(this, Qe).call(this) ? e(this, Gi).call(this, "inline") : Promise.resolve() : Promise.resolve());
|
|
1770
1770
|
l(this, vn, () => q(this, null, function* () {
|
|
1771
|
-
const t =
|
|
1771
|
+
const t = dh(this.element);
|
|
1772
1772
|
t && (yield t());
|
|
1773
1773
|
}));
|
|
1774
1774
|
l(this, fn, () => q(null, null, function* () {
|
|
1775
|
-
const t =
|
|
1775
|
+
const t = ch();
|
|
1776
1776
|
t && (yield t());
|
|
1777
1777
|
}));
|
|
1778
|
-
l(this, Ze, () =>
|
|
1779
|
-
l(this, gn, () =>
|
|
1780
|
-
l(this, En, () =>
|
|
1781
|
-
l(this, Gi, (t) => (sa(this.element) &&
|
|
1778
|
+
l(this, Ze, () => uh(this.element));
|
|
1779
|
+
l(this, gn, () => ph());
|
|
1780
|
+
l(this, En, () => bh(this.element) === "picture-in-picture");
|
|
1781
|
+
l(this, Gi, (t) => (sa(this.element) && mh(this.element, t), Promise.resolve()));
|
|
1782
1782
|
l(this, Qe, () => sa(this.element));
|
|
1783
1783
|
this.element = t, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), ia(this.element, !0);
|
|
1784
1784
|
}
|
|
@@ -1792,7 +1792,7 @@ const oa = (p) => {
|
|
|
1792
1792
|
let a = "observedAttributes" in p.constructor ? p.constructor.observedAttributes : void 0;
|
|
1793
1793
|
return !a && ((t = p.nodeName) != null && t.includes("-")) && (globalThis.customElements.upgrade(p), a = "observedAttributes" in p.constructor ? p.constructor.observedAttributes : void 0), Array.isArray(a) ? a.filter((i) => pa.includes(i)) : [];
|
|
1794
1794
|
};
|
|
1795
|
-
function
|
|
1795
|
+
function Fh(p) {
|
|
1796
1796
|
if (typeof p != "string") return NaN;
|
|
1797
1797
|
const a = /(\d+(?:\.\d+)?)([hms])/gi, t = [...p.matchAll(a)];
|
|
1798
1798
|
return t.length === 0 ? NaN : t.reduce((i, s) => {
|
|
@@ -2165,7 +2165,7 @@ f = new WeakMap(), $ = new WeakMap(), x = new WeakMap(), ti = new WeakMap(), wt
|
|
|
2165
2165
|
return e(this, Ki) === a;
|
|
2166
2166
|
}, l(Gt, Xi, ["waiting", "seeking", "stalled", "loadstart"]), l(Gt, ji, ["canplay", "canplaythrough", "seeked", "loadeddata"]);
|
|
2167
2167
|
let tr = Gt;
|
|
2168
|
-
class
|
|
2168
|
+
class Hh {
|
|
2169
2169
|
constructor(a) {
|
|
2170
2170
|
this.vindral = a;
|
|
2171
2171
|
}
|
|
@@ -2650,7 +2650,7 @@ const Li = class Li extends HTMLElement {
|
|
|
2650
2650
|
o.searchParams.set("channelId", (N = e(this, At)) != null ? N : "");
|
|
2651
2651
|
const u = this.getAttribute("authentication-token");
|
|
2652
2652
|
u && o.searchParams.set("authToken", u);
|
|
2653
|
-
const c =
|
|
2653
|
+
const c = Fh(s);
|
|
2654
2654
|
if (isNaN(c)) {
|
|
2655
2655
|
e(this, K).error(`Invalid duration format: ${s}`);
|
|
2656
2656
|
return;
|
|
@@ -2855,14 +2855,14 @@ const Li = class Li extends HTMLElement {
|
|
|
2855
2855
|
const t = (s = e(this, b)) == null ? void 0 : s.currentRenditionLevel;
|
|
2856
2856
|
if (!(t != null && t.video))
|
|
2857
2857
|
return;
|
|
2858
|
-
const i =
|
|
2858
|
+
const i = gh(
|
|
2859
2859
|
t.video.width > t.video.height ? "landscape-primary" : "portrait-primary"
|
|
2860
2860
|
);
|
|
2861
2861
|
i && i.catch(() => {
|
|
2862
2862
|
});
|
|
2863
2863
|
});
|
|
2864
2864
|
l(this, xn, () => {
|
|
2865
|
-
|
|
2865
|
+
Eh();
|
|
2866
2866
|
});
|
|
2867
2867
|
this.attachShadow({ mode: "open" }).appendChild(ko.content.cloneNode(!0));
|
|
2868
2868
|
const i = Mn(this.getAttribute("log-level"));
|
|
@@ -3062,7 +3062,7 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3062
3062
|
if (!e(this, At)) return;
|
|
3063
3063
|
const t = e(this, M) === e(this, Jt);
|
|
3064
3064
|
yield (Zr = e(this, b)) == null ? void 0 : Zr.unload(), t && h(this, M, void 0);
|
|
3065
|
-
const i = this.hasAttribute(r.PAUSED), s = this.hasAttribute(r.MUTED), o = Bt(this.getAttribute(r.VOLUME)), u = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = ba(this.getAttribute(r.MEDIA)), m = this.getAttribute(r.TEXT_TRACK) || void 0, E = this.getAttribute("edge-url") || void 0, N = this.getAttribute("authentication-token") || void 0, H = Bt(this.getAttribute("max-video-bit-rate")), G = Bt(this.getAttribute("max-initial-bit-rate")), vt =
|
|
3065
|
+
const i = this.hasAttribute(r.PAUSED), s = this.hasAttribute(r.MUTED), o = Bt(this.getAttribute(r.VOLUME)), u = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = ba(this.getAttribute(r.MEDIA)), m = this.getAttribute(r.TEXT_TRACK) || void 0, E = this.getAttribute("edge-url") || void 0, N = this.getAttribute("authentication-token") || void 0, H = Bt(this.getAttribute("max-video-bit-rate")), G = Bt(this.getAttribute("max-initial-bit-rate")), vt = _h(this.getAttribute("max-size")), ft = Bt(this.getAttribute("min-buffer-time")), gt = Bt(this.getAttribute("max-buffer-time")), de = R(this.getAttribute("burst-enabled")), ce = R(this.getAttribute("mse-enabled")), ue = R(this.getAttribute("mse-opus-enabled")), pe = R(this.getAttribute("ios-background-play-enabled")), be = R(this.getAttribute("ios-wake-lock-enabled")), B = R(this.getAttribute("stream-to-media-element-enabled")), Dl = R(this.getAttribute("ios-media-element-enabled")), Ml = R(this.getAttribute("abr-enabled"), !0), Ol = R(this.getAttribute("size-based-resolution-cap-enabled")), Fl = R(this.getAttribute("telemetry-enabled")), Hl = Rh(this.getAttribute("video-codecs")), Yr = ma(this.getAttribute("poster")), Bl = Uh(this.getAttribute("advanced")), zl = Mn(this.getAttribute("log-level")), $l = {
|
|
3066
3066
|
headers: Ws(this.getAttribute("drm-headers")),
|
|
3067
3067
|
queryParams: Ws(this.getAttribute("drm-queryparams")),
|
|
3068
3068
|
widevine: {
|
|
@@ -3073,10 +3073,10 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3073
3073
|
videoRobustness: Js(this.getAttribute("drm-playready-video-robustness")),
|
|
3074
3074
|
audioRobustness: Js(this.getAttribute("drm-playready-audio-robustness"))
|
|
3075
3075
|
}
|
|
3076
|
-
}, Gl =
|
|
3076
|
+
}, Gl = Nh(
|
|
3077
3077
|
this.getAttribute("webcodecs-hardware-acceleration")
|
|
3078
|
-
), Kl =
|
|
3079
|
-
h(this, b, new
|
|
3078
|
+
), Kl = xh(this.getAttribute("decoders")), ql = R(this.getAttribute("offscreen-canvas-enabled")), Vl = R(this.getAttribute("webtransport-enabled")), Wr = Bt(this.getAttribute("reconnect-retries")), Xl = Wr !== void 0 ? (th) => th.reconnectRetries < Wr : void 0, jl = this.getAttribute("language") || void 0;
|
|
3079
|
+
h(this, b, new vh({
|
|
3080
3080
|
url: e(this, Qi),
|
|
3081
3081
|
channelId: e(this, At),
|
|
3082
3082
|
channelGroupId: e(this, Nt),
|
|
@@ -3112,7 +3112,7 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3112
3112
|
decoders: Kl,
|
|
3113
3113
|
offscreenCanvasEnabled: ql,
|
|
3114
3114
|
reconnectHandler: Xl
|
|
3115
|
-
})), h(this, Jt, new
|
|
3115
|
+
})), h(this, Jt, new Hh(e(this, b))), e(this, M) || h(this, M, e(this, Jt)), n(this, d, rr).call(this), h(this, Wt, (Qr = this.shadowRoot) == null ? void 0 : Qr.querySelector("#video")), e(this, Wt) && e(this, b).attach(e(this, Wt)), this.setAttribute(r.MEDIA, e(this, b).media), e(this, b).muted && n(this, d, A).call(this, r.MUTED, ""), e(this, b).abrEnabled ? n(this, d, A).call(this, r.ABR_ENABLED, "") : n(this, d, w).call(this, r.ABR_ENABLED), n(this, d, A).call(this, r.SIZE_BASED_RESOLUTION_CAP_ENABLED, e(this, b).sizeBasedResolutionCapEnabled ? "true" : "false"), n(this, d, A).call(this, r.VOLUME, e(this, b).volume.toString()), U(Yr) || n(this, d, A).call(this, r.POSTER_SRC, e(this, b).getThumbnailUrl());
|
|
3116
3116
|
const Yl = R(this.getAttribute(r.AIRPLAY_ENABLED), !1), Wl = R(this.getAttribute(r.CAST_ENABLED), !0), Jr = R(this.getAttribute(r.FULLSCREEN_ENABLED), !0), Jl = R(this.getAttribute(r.PIP_ENABLED), !0), Zl = R(this.getAttribute(r.VU_METER_ENABLED), !1), Ql = R(this.getAttribute(r.TIMESHIFT_ENABLED), !1);
|
|
3117
3117
|
Yl && n(this, d, xo).call(this, e(this, b)), Wl && n(this, d, wo).call(this, e(this, b)), Jr && n(this, d, To).call(this, e(this, b)), Jl && n(this, d, Lo).call(this, e(this, b)), i || e(this, b).play(), Zl && n(this, d, No).call(this, e(this, b)), this.dispatchEvent(
|
|
3118
3118
|
new CustomEvent("vindral-instance-ready", { bubbles: !0, composed: !0, detail: e(this, b) })
|
|
@@ -3160,7 +3160,7 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3160
3160
|
}, en = function() {
|
|
3161
3161
|
return this.hasAttribute(r.TIMESHIFT_POSITION) ? e(this, Le) : e(this, Rt);
|
|
3162
3162
|
}, wo = function(t) {
|
|
3163
|
-
h(this, _t, new
|
|
3163
|
+
h(this, _t, new Lh({
|
|
3164
3164
|
background: e(this, es),
|
|
3165
3165
|
receiverApplicationId: e(this, ts),
|
|
3166
3166
|
options: t.getCastOptions()
|
|
@@ -3181,7 +3181,7 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3181
3181
|
var s;
|
|
3182
3182
|
(s = e(this, ht)) == null || s.unload();
|
|
3183
3183
|
const i = t.getCastOptions();
|
|
3184
|
-
h(this, ht, new
|
|
3184
|
+
h(this, ht, new Oh({
|
|
3185
3185
|
url: i.url,
|
|
3186
3186
|
channelId: i.channelId,
|
|
3187
3187
|
authenticationToken: i.authenticationToken,
|
|
@@ -3195,7 +3195,7 @@ An = new WeakMap(), xt = new WeakMap(), Ji = new WeakMap(), lt = new WeakMap(),
|
|
|
3195
3195
|
});
|
|
3196
3196
|
}, No = function(t) {
|
|
3197
3197
|
var i;
|
|
3198
|
-
if ((i = e(this, Q)) == null || i.unload(), !
|
|
3198
|
+
if ((i = e(this, Q)) == null || i.unload(), !fh()) {
|
|
3199
3199
|
if (t.audioNode)
|
|
3200
3200
|
h(this, Q, new la(t.audioNode));
|
|
3201
3201
|
else if (t.mediaElement instanceof HTMLMediaElement)
|
|
@@ -3349,12 +3349,12 @@ Mo = function() {
|
|
|
3349
3349
|
"language"
|
|
3350
3350
|
]), l(Li, An, "https://lb.cdn.vindral.com");
|
|
3351
3351
|
let Pi = Li;
|
|
3352
|
-
const Fo = document.createElement("template"),
|
|
3352
|
+
const Fo = document.createElement("template"), Bh = (
|
|
3353
3353
|
/* SVG */
|
|
3354
3354
|
`
|
|
3355
3355
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-maximize"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /></svg>
|
|
3356
3356
|
`
|
|
3357
|
-
),
|
|
3357
|
+
), zh = (
|
|
3358
3358
|
/* SVG */
|
|
3359
3359
|
`
|
|
3360
3360
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-minimize"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 19v-2a2 2 0 0 1 2 -2h2" /><path d="M15 5v2a2 2 0 0 0 2 2h2" /><path d="M5 15h2a2 2 0 0 1 2 2v2" /><path d="M5 9h2a2 2 0 0 0 2 -2v-2" /></svg>
|
|
@@ -3377,8 +3377,8 @@ Fo.innerHTML = /* HTML */
|
|
|
3377
3377
|
</style>
|
|
3378
3378
|
|
|
3379
3379
|
<slot name="icon">
|
|
3380
|
-
<slot name="enter">${
|
|
3381
|
-
<slot name="exit">${
|
|
3380
|
+
<slot name="enter">${Bh}</slot>
|
|
3381
|
+
<slot name="exit">${zh}</slot>
|
|
3382
3382
|
</slot>
|
|
3383
3383
|
`;
|
|
3384
3384
|
const Ti = class Ti extends mt {
|
|
@@ -3408,7 +3408,7 @@ const Ti = class Ti extends mt {
|
|
|
3408
3408
|
};
|
|
3409
3409
|
v(Ti, "observedAttributes", [...W(Ti, Ti, "observedAttributes"), r.FULLSCREEN]);
|
|
3410
3410
|
let mr = Ti;
|
|
3411
|
-
const
|
|
3411
|
+
const $h = (
|
|
3412
3412
|
/* SVG */
|
|
3413
3413
|
`
|
|
3414
3414
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 5h7" /><path d="M9 3v2c0 4.418 -2.239 8 -5 8" /><path d="M5 9c0 2.144 2.952 3.908 6.7 4" /><path d="M12 20l4 -9l4 9" /><path d="M19.1 18h-6.2" /></svg>
|
|
@@ -3422,7 +3422,7 @@ Ho.innerHTML = /* HTML */
|
|
|
3422
3422
|
}
|
|
3423
3423
|
</style>
|
|
3424
3424
|
|
|
3425
|
-
<slot name="button">${
|
|
3425
|
+
<slot name="button">${$h}</slot>
|
|
3426
3426
|
<slot name="listbox" hidden>
|
|
3427
3427
|
<vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
|
|
3428
3428
|
</slot>
|
|
@@ -3447,7 +3447,7 @@ Ls = new WeakSet(), fr = function() {
|
|
|
3447
3447
|
i && s ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
|
|
3448
3448
|
}, v(Si, "observedAttributes", [...W(Si, Si, "observedAttributes"), r.LANGUAGES, r.TEXT_TRACKS]);
|
|
3449
3449
|
let vr = Si;
|
|
3450
|
-
const Bo = document.createElement("template"),
|
|
3450
|
+
const Bo = document.createElement("template"), Gh = (
|
|
3451
3451
|
/* SVG */
|
|
3452
3452
|
`
|
|
3453
3453
|
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="#fff" viewBox="0 0 78.369 78.369" xml:space="preserve"><path d="M78.049 19.015 29.458 67.606a1.094 1.094 0 0 1-1.548 0L.32 40.015a1.094 1.094 0 0 1 0-1.547l6.704-6.704a1.095 1.095 0 0 1 1.548 0l20.113 20.112 41.113-41.113a1.095 1.095 0 0 1 1.548 0l6.703 6.704a1.094 1.094 0 0 1 0 1.548z"/></svg>
|
|
@@ -3529,7 +3529,7 @@ Bo.innerHTML = /* HTML */
|
|
|
3529
3529
|
}
|
|
3530
3530
|
|
|
3531
3531
|
[role="menuitem"][aria-selected="true"]::before {
|
|
3532
|
-
content: url("data:image/svg+xml,${encodeURIComponent(
|
|
3532
|
+
content: url("data:image/svg+xml,${encodeURIComponent(Gh)}");
|
|
3533
3533
|
position: absolute;
|
|
3534
3534
|
left: var(--padding-3);
|
|
3535
3535
|
top: calc(50% - 8px);
|
|
@@ -3698,7 +3698,7 @@ Ts = new WeakMap(), Ss = new WeakMap(), ws = new WeakMap(), Cs = new WeakMap(),
|
|
|
3698
3698
|
r.LANGUAGE,
|
|
3699
3699
|
r.TEXT_TRACK
|
|
3700
3700
|
]);
|
|
3701
|
-
const jo = document.createElement("template"),
|
|
3701
|
+
const jo = document.createElement("template"), Kh = (
|
|
3702
3702
|
/* SVG */
|
|
3703
3703
|
`
|
|
3704
3704
|
<svg xmlns="http://www.w3.org/2000/svg" width="5" height="5" viewBox="0 0 5 5" fill="currentColor">
|
|
@@ -3768,7 +3768,7 @@ jo.innerHTML = /* HTML */
|
|
|
3768
3768
|
}
|
|
3769
3769
|
</style>
|
|
3770
3770
|
|
|
3771
|
-
<slot name="icon">${
|
|
3771
|
+
<slot name="icon">${Kh}</slot>
|
|
3772
3772
|
<span class="live-text">LIVE</span>
|
|
3773
3773
|
`;
|
|
3774
3774
|
const wi = class wi extends mt {
|
|
@@ -3808,7 +3808,7 @@ v(wi, "observedAttributes", [
|
|
|
3808
3808
|
r.DURATION
|
|
3809
3809
|
]);
|
|
3810
3810
|
let kr = wi;
|
|
3811
|
-
const Yo = document.createElement("template"),
|
|
3811
|
+
const Yo = document.createElement("template"), qh = (
|
|
3812
3812
|
/* SVG */
|
|
3813
3813
|
`
|
|
3814
3814
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <g fill="none" stroke="currentColor">
|
|
@@ -3816,7 +3816,7 @@ const Yo = document.createElement("template"), Kh = (
|
|
|
3816
3816
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" />
|
|
3817
3817
|
</g></svg>
|
|
3818
3818
|
`
|
|
3819
|
-
),
|
|
3819
|
+
), Vh = (
|
|
3820
3820
|
/* SVG */
|
|
3821
3821
|
`
|
|
3822
3822
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <g fill="none" stroke="currentColor">
|
|
@@ -3840,8 +3840,8 @@ Yo.innerHTML = /* HTML */
|
|
|
3840
3840
|
</style>
|
|
3841
3841
|
|
|
3842
3842
|
<slot name="icon">
|
|
3843
|
-
<slot name="mute">${
|
|
3844
|
-
<slot name="unmute">${
|
|
3843
|
+
<slot name="mute">${qh}</slot>
|
|
3844
|
+
<slot name="unmute">${Vh}</slot>
|
|
3845
3845
|
</slot>
|
|
3846
3846
|
`;
|
|
3847
3847
|
const Ci = class Ci extends mt {
|
|
@@ -3871,7 +3871,7 @@ const Ci = class Ci extends mt {
|
|
|
3871
3871
|
};
|
|
3872
3872
|
v(Ci, "observedAttributes", [...W(Ci, Ci, "observedAttributes"), r.MUTED]);
|
|
3873
3873
|
let Ir = Ci;
|
|
3874
|
-
const Wo = document.createElement("template"),
|
|
3874
|
+
const Wo = document.createElement("template"), Xh = (
|
|
3875
3875
|
/* SVG */
|
|
3876
3876
|
`
|
|
3877
3877
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
|
|
@@ -3888,7 +3888,7 @@ Wo.innerHTML = /* HTML */
|
|
|
3888
3888
|
display: none !important;
|
|
3889
3889
|
}
|
|
3890
3890
|
</style>
|
|
3891
|
-
<slot name="icon">${
|
|
3891
|
+
<slot name="icon">${Xh}</slot>
|
|
3892
3892
|
`;
|
|
3893
3893
|
const xi = class xi extends mt {
|
|
3894
3894
|
constructor() {
|
|
@@ -3923,12 +3923,12 @@ const xi = class xi extends mt {
|
|
|
3923
3923
|
};
|
|
3924
3924
|
v(xi, "observedAttributes", [...W(xi, xi, "observedAttributes"), r.IS_PIP, r.PIP_AVAILABLE]);
|
|
3925
3925
|
let Lr = xi;
|
|
3926
|
-
const Jo = document.createElement("template"),
|
|
3926
|
+
const Jo = document.createElement("template"), jh = (
|
|
3927
3927
|
/* SVG */
|
|
3928
3928
|
`
|
|
3929
3929
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
|
|
3930
3930
|
`
|
|
3931
|
-
),
|
|
3931
|
+
), Yh = (
|
|
3932
3932
|
/* SVG */
|
|
3933
3933
|
`
|
|
3934
3934
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z" /><path d="M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z" /></svg>
|
|
@@ -3951,8 +3951,8 @@ Jo.innerHTML = /* HTML */
|
|
|
3951
3951
|
</style>
|
|
3952
3952
|
|
|
3953
3953
|
<slot name="icon">
|
|
3954
|
-
<slot name="play">${
|
|
3955
|
-
<slot name="pause">${
|
|
3954
|
+
<slot name="play">${jh}</slot>
|
|
3955
|
+
<slot name="pause">${Yh}</slot>
|
|
3956
3956
|
</slot>
|
|
3957
3957
|
`;
|
|
3958
3958
|
const Ni = class Ni extends mt {
|
|
@@ -3988,9 +3988,9 @@ const J = {
|
|
|
3988
3988
|
ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
|
|
3989
3989
|
REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
|
|
3990
3990
|
STREAM_POLL_ENABLED: "stream-poll-enabled"
|
|
3991
|
-
},
|
|
3991
|
+
}, Wh = Object.values(J);
|
|
3992
3992
|
var Ns, ri, ie, we, se, ne, Pt, tt, Sr, Zo, wr, Cr;
|
|
3993
|
-
class
|
|
3993
|
+
class Jh extends Ys {
|
|
3994
3994
|
constructor(t) {
|
|
3995
3995
|
super();
|
|
3996
3996
|
l(this, tt);
|
|
@@ -4001,7 +4001,7 @@ class Wh extends Ys {
|
|
|
4001
4001
|
l(this, se, !0);
|
|
4002
4002
|
l(this, ne, null);
|
|
4003
4003
|
l(this, Pt, null);
|
|
4004
|
-
h(this, ri, t), h(this, Ns, new
|
|
4004
|
+
h(this, ri, t), h(this, Ns, new Th({
|
|
4005
4005
|
publicEndpoint: t.url,
|
|
4006
4006
|
tokenFactory: () => t.authenticationToken
|
|
4007
4007
|
}));
|
|
@@ -4028,7 +4028,7 @@ Ns = new WeakMap(), ri = new WeakMap(), ie = new WeakMap(), we = new WeakMap(),
|
|
|
4028
4028
|
return;
|
|
4029
4029
|
}
|
|
4030
4030
|
} catch (s) {
|
|
4031
|
-
|
|
4031
|
+
Sh(s) && (s.status === 403 || s.status === 401) && (t = "Forbidden", i = "You do not have permission to view this stream");
|
|
4032
4032
|
}
|
|
4033
4033
|
e(this, se) && this.emit("error", { title: t, message: i }), h(this, ie, !1);
|
|
4034
4034
|
});
|
|
@@ -4039,7 +4039,7 @@ Ns = new WeakMap(), ri = new WeakMap(), ie = new WeakMap(), we = new WeakMap(),
|
|
|
4039
4039
|
}, Cr = function() {
|
|
4040
4040
|
n(this, tt, wr).call(this), h(this, se, !0);
|
|
4041
4041
|
};
|
|
4042
|
-
const
|
|
4042
|
+
const Zh = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Qh = navigator.userAgent.toLowerCase(), td = Zh.test(Qh), ed = (p) => Pi.observedAttributes.includes(p), Qo = (
|
|
4043
4043
|
/* HTML */
|
|
4044
4044
|
`
|
|
4045
4045
|
<style>
|
|
@@ -4051,7 +4051,7 @@ const Jh = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
|
|
|
4051
4051
|
display: flex;
|
|
4052
4052
|
justify-content: center;
|
|
4053
4053
|
|
|
4054
|
-
--vindral-volume-range-display: ${
|
|
4054
|
+
--vindral-volume-range-display: ${td ? "none" : "flex"};
|
|
4055
4055
|
--vindral-airplay-button-display: none;
|
|
4056
4056
|
--vindral-play-overlay-display: none;
|
|
4057
4057
|
--vindral-grid-item-offline-display: none;
|
|
@@ -4133,7 +4133,7 @@ const Jh = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
|
|
|
4133
4133
|
}
|
|
4134
4134
|
</style>
|
|
4135
4135
|
`
|
|
4136
|
-
),
|
|
4136
|
+
), id = (p) => {
|
|
4137
4137
|
const a = p ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
|
|
4138
4138
|
return (
|
|
4139
4139
|
/* HTML */
|
|
@@ -4173,7 +4173,7 @@ const Jh = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
|
|
|
4173
4173
|
</vindral-controller>
|
|
4174
4174
|
`
|
|
4175
4175
|
);
|
|
4176
|
-
},
|
|
4176
|
+
}, sd = (
|
|
4177
4177
|
/* HTML */
|
|
4178
4178
|
`
|
|
4179
4179
|
${Qo}
|
|
@@ -4217,7 +4217,7 @@ class tl extends HTMLElement {
|
|
|
4217
4217
|
});
|
|
4218
4218
|
});
|
|
4219
4219
|
l(this, _s, (t, i) => {
|
|
4220
|
-
|
|
4220
|
+
ed(t) && (U(i) ? e(this, O).setAttribute(t, i) : e(this, O).removeAttribute(t));
|
|
4221
4221
|
});
|
|
4222
4222
|
l(this, Rn, () => {
|
|
4223
4223
|
Array.from(this.children).forEach((t) => {
|
|
@@ -4235,11 +4235,11 @@ class tl extends HTMLElement {
|
|
|
4235
4235
|
const s = t.channels.find((o) => o.channelId === i);
|
|
4236
4236
|
s && n(this, F, on).call(this, s);
|
|
4237
4237
|
}), t.on("error", (i) => {
|
|
4238
|
-
if (i.code() ===
|
|
4238
|
+
if (i.code() === Ah) {
|
|
4239
4239
|
n(this, F, $t).call(this, "Stream is offline", "Please stand by");
|
|
4240
4240
|
return;
|
|
4241
4241
|
}
|
|
4242
|
-
i.isFatal() && (i.code() ===
|
|
4242
|
+
i.isFatal() && (i.code() === yh ? n(this, F, $t).call(this, "Forbidden", "You do not have permission to view this stream") : i.code() === kh ? n(this, F, $t).call(this, "Stream is offline", "Please stand by") : n(this, F, $t).call(this, "An error occurred", i.message), e(this, rt).removeAttribute("hidden"), this.setAttribute(J.OFFLINE, ""), e(this, O).dispatchEvent(new CustomEvent(y.EXIT_FULLSCREEN)), e(this, O).dispatchEvent(new CustomEvent(y.EXIT_PIP)));
|
|
4243
4243
|
}));
|
|
4244
4244
|
});
|
|
4245
4245
|
l(this, xe, () => {
|
|
@@ -4276,7 +4276,7 @@ dt = new WeakMap(), O = new WeakMap(), Y = new WeakMap(), rt = new WeakMap(), ct
|
|
|
4276
4276
|
this.getAttribute(J.ADVANCED_RENDITION_MENU_ENABLED),
|
|
4277
4277
|
!1
|
|
4278
4278
|
);
|
|
4279
|
-
return t === "audio" ?
|
|
4279
|
+
return t === "audio" ? sd : id(i);
|
|
4280
4280
|
}, Rn = new WeakMap(), xr = function() {
|
|
4281
4281
|
const t = e(this, dt).hasChildNodes(), i = t ? e(this, O) : void 0, s = t ? e(this, rt) : void 0;
|
|
4282
4282
|
this.isConnected && i && i.removeEventListener("vindral-instance-ready", e(this, Ce)), this.isConnected && s && e(this, ct) && s.removeEventListener("click", e(this, xe)), ha.innerHTML = n(this, F, el).call(this);
|
|
@@ -4293,7 +4293,7 @@ dt = new WeakMap(), O = new WeakMap(), Y = new WeakMap(), rt = new WeakMap(), ct
|
|
|
4293
4293
|
this.setAttribute(J.OFFLINE, ""), n(this, F, $t).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
|
|
4294
4294
|
return;
|
|
4295
4295
|
}
|
|
4296
|
-
h(this, ct, new
|
|
4296
|
+
h(this, ct, new Jh({
|
|
4297
4297
|
url: t,
|
|
4298
4298
|
channelId: i,
|
|
4299
4299
|
authenticationToken: s,
|
|
@@ -4311,7 +4311,7 @@ dt = new WeakMap(), O = new WeakMap(), Y = new WeakMap(), rt = new WeakMap(), ct
|
|
|
4311
4311
|
if (!i) return;
|
|
4312
4312
|
const s = this.getAttribute("poster"), o = typeof i == "string" ? i : t.name;
|
|
4313
4313
|
let u;
|
|
4314
|
-
typeof s == "string" ? u = s : u = (m = (c = this.instance) == null ? void 0 : c.getThumbnailUrl()) != null ? m : t.thumbnailUrls.length ? t.thumbnailUrls[0] : void 0,
|
|
4314
|
+
typeof s == "string" ? u = s : u = (m = (c = this.instance) == null ? void 0 : c.getThumbnailUrl()) != null ? m : t.thumbnailUrls.length ? t.thumbnailUrls[0] : void 0, wh({
|
|
4315
4315
|
title: o,
|
|
4316
4316
|
poster: u
|
|
4317
4317
|
});
|
|
@@ -4319,7 +4319,7 @@ dt = new WeakMap(), O = new WeakMap(), Y = new WeakMap(), rt = new WeakMap(), ct
|
|
|
4319
4319
|
e(this, Y).setAttribute("title", t), e(this, Y).setAttribute("description", i);
|
|
4320
4320
|
const s = this.getAttribute("poster");
|
|
4321
4321
|
s && e(this, Y).setAttribute("background-image", s), e(this, Y).removeAttribute("hidden");
|
|
4322
|
-
}, v(tl, "observedAttributes", [...Pi.observedAttributes, ...
|
|
4322
|
+
}, v(tl, "observedAttributes", [...Pi.observedAttributes, ...Wh]);
|
|
4323
4323
|
const sl = document.createElement("template");
|
|
4324
4324
|
sl.innerHTML = /* HTML */
|
|
4325
4325
|
`
|
|
@@ -4357,7 +4357,7 @@ sl.innerHTML = /* HTML */
|
|
|
4357
4357
|
}
|
|
4358
4358
|
</style>
|
|
4359
4359
|
`;
|
|
4360
|
-
const
|
|
4360
|
+
const nd = 6e3;
|
|
4361
4361
|
var ai, re, Ne, oi, bt, rl, ln, Nr, _n;
|
|
4362
4362
|
class nl extends HTMLElement {
|
|
4363
4363
|
constructor() {
|
|
@@ -4401,7 +4401,7 @@ class nl extends HTMLElement {
|
|
|
4401
4401
|
}
|
|
4402
4402
|
}
|
|
4403
4403
|
ai = new WeakMap(), re = new WeakMap(), Ne = new WeakMap(), oi = new WeakMap(), bt = new WeakSet(), rl = function() {
|
|
4404
|
-
e(this, re) === null && (n(this, bt, ln).call(this), h(this, re, window.setInterval(() => n(this, bt, Nr).call(this),
|
|
4404
|
+
e(this, re) === null && (n(this, bt, ln).call(this), h(this, re, window.setInterval(() => n(this, bt, Nr).call(this), nd)));
|
|
4405
4405
|
}, ln = function() {
|
|
4406
4406
|
e(this, re) !== null && (clearInterval(e(this, re)), h(this, re, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
|
|
4407
4407
|
}, Nr = function() {
|
|
@@ -4414,7 +4414,7 @@ ai = new WeakMap(), re = new WeakMap(), Ne = new WeakMap(), oi = new WeakMap(),
|
|
|
4414
4414
|
"disabled",
|
|
4415
4415
|
"intersecting"
|
|
4416
4416
|
]);
|
|
4417
|
-
const
|
|
4417
|
+
const rd = (
|
|
4418
4418
|
/* SVG */
|
|
4419
4419
|
`
|
|
4420
4420
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -4431,7 +4431,7 @@ al.innerHTML = /* HTML */
|
|
|
4431
4431
|
}
|
|
4432
4432
|
</style>
|
|
4433
4433
|
|
|
4434
|
-
<slot name="button">${
|
|
4434
|
+
<slot name="button">${rd}</slot>
|
|
4435
4435
|
<slot name="listbox" hidden>
|
|
4436
4436
|
<vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
|
|
4437
4437
|
</slot>
|
|
@@ -4456,7 +4456,7 @@ Us = new WeakSet(), _r = function() {
|
|
|
4456
4456
|
!t || t === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
4457
4457
|
}, v(Ri, "observedAttributes", [...W(Ri, Ri, "observedAttributes"), r.RENDITION_LEVELS]);
|
|
4458
4458
|
let Rr = Ri;
|
|
4459
|
-
const ol = document.createElement("template"),
|
|
4459
|
+
const ol = document.createElement("template"), ad = (
|
|
4460
4460
|
/* SVG */
|
|
4461
4461
|
`
|
|
4462
4462
|
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="#fff" viewBox="0 0 78.369 78.369" xml:space="preserve"><path d="M78.049 19.015 29.458 67.606a1.094 1.094 0 0 1-1.548 0L.32 40.015a1.094 1.094 0 0 1 0-1.547l6.704-6.704a1.095 1.095 0 0 1 1.548 0l20.113 20.112 41.113-41.113a1.095 1.095 0 0 1 1.548 0l6.703 6.704a1.094 1.094 0 0 1 0 1.548z"/></svg>
|
|
@@ -4535,7 +4535,7 @@ ol.innerHTML = /* HTML */
|
|
|
4535
4535
|
}
|
|
4536
4536
|
|
|
4537
4537
|
[role="menuitem"][aria-selected="true"]::before {
|
|
4538
|
-
content: url("data:image/svg+xml,${encodeURIComponent(
|
|
4538
|
+
content: url("data:image/svg+xml,${encodeURIComponent(ad)}");
|
|
4539
4539
|
position: absolute;
|
|
4540
4540
|
left: calc(var(--padding-3) - var(--padding-1));
|
|
4541
4541
|
top: calc(50% - 8px);
|
|
@@ -4801,7 +4801,7 @@ class vl extends HTMLElement {
|
|
|
4801
4801
|
if (t instanceof Document || t instanceof ShadowRoot) {
|
|
4802
4802
|
h(this, at, t.querySelector("vindral-controller")), (i = e(this, at)) == null || i.connectListener(this), h(this, Mt, (s = this.shadowRoot) == null ? void 0 : s.querySelector("#scroll-area")), (o = e(this, Mt)) == null || o.addEventListener("click", e(this, Ms));
|
|
4803
4803
|
const E = this.hasAttribute("touch-enabled");
|
|
4804
|
-
h(this, li,
|
|
4804
|
+
h(this, li, Ih() && E), e(this, li) ? ((u = e(this, at)) == null || u.addEventListener("touchstart", this, { passive: !0 }), (c = e(this, at)) == null || c.addEventListener("touchmove", this, { passive: !1 }), (m = e(this, at)) == null || m.addEventListener("touchend", this, { passive: !0 })) : this.setAttribute("snap", ""), this.addEventListener("scroll", e(this, Os));
|
|
4805
4805
|
}
|
|
4806
4806
|
}
|
|
4807
4807
|
disconnectedCallback() {
|
|
@@ -5113,12 +5113,12 @@ P = new WeakMap(), It = new WeakMap(), Ot = new WeakMap(), pt = new WeakMap(), F
|
|
|
5113
5113
|
r.TIMESHIFT_POSITION,
|
|
5114
5114
|
r.DURATION
|
|
5115
5115
|
]);
|
|
5116
|
-
const Cl = document.createElement("template"),
|
|
5116
|
+
const Cl = document.createElement("template"), od = (
|
|
5117
5117
|
/* SVG */
|
|
5118
5118
|
`
|
|
5119
5119
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
|
|
5120
5120
|
`
|
|
5121
|
-
),
|
|
5121
|
+
), ld = (
|
|
5122
5122
|
/* SVG */
|
|
5123
5123
|
`
|
|
5124
5124
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" clip-rule="evenodd" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" /></g></svg>
|
|
@@ -5177,8 +5177,8 @@ Cl.innerHTML = /* HTML */
|
|
|
5177
5177
|
</style>
|
|
5178
5178
|
|
|
5179
5179
|
<slot name="icon">
|
|
5180
|
-
<slot name="play">${
|
|
5181
|
-
<slot name="unmute">${
|
|
5180
|
+
<slot name="play">${od}</slot>
|
|
5181
|
+
<slot name="unmute">${ld}</slot>
|
|
5182
5182
|
</slot>
|
|
5183
5183
|
`;
|
|
5184
5184
|
var hi, Gs, De, Ks;
|
|
@@ -5339,7 +5339,7 @@ class Rl extends HTMLElement {
|
|
|
5339
5339
|
}
|
|
5340
5340
|
}
|
|
5341
5341
|
qs = new WeakMap(), Vs = new WeakMap(), Xs = new WeakMap(), v(Rl, "observedAttributes", ["title", "description", "background-image", "hidden"]);
|
|
5342
|
-
const _l = document.createElement("template"),
|
|
5342
|
+
const _l = document.createElement("template"), hd = (
|
|
5343
5343
|
/* SVG */
|
|
5344
5344
|
`
|
|
5345
5345
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
|
|
@@ -5395,7 +5395,7 @@ _l.innerHTML = /* HTML */
|
|
|
5395
5395
|
}
|
|
5396
5396
|
</style>
|
|
5397
5397
|
|
|
5398
|
-
<slot id="play" name="icon">${
|
|
5398
|
+
<slot id="play" name="icon">${hd}</slot>
|
|
5399
5399
|
`;
|
|
5400
5400
|
var di;
|
|
5401
5401
|
class Ul extends HTMLElement {
|
|
@@ -5437,7 +5437,7 @@ Pl.innerHTML = /* HTML */
|
|
|
5437
5437
|
}
|
|
5438
5438
|
</style>
|
|
5439
5439
|
`;
|
|
5440
|
-
const
|
|
5440
|
+
const dd = (p) => `${Math.round(p * 100)}%`;
|
|
5441
5441
|
var js;
|
|
5442
5442
|
const _i = class _i extends Ui {
|
|
5443
5443
|
constructor() {
|
|
@@ -5456,7 +5456,7 @@ const _i = class _i extends Ui {
|
|
|
5456
5456
|
super.disconnectedCallback(), this.range.removeEventListener("input", e(this, js));
|
|
5457
5457
|
}
|
|
5458
5458
|
attributeChangedCallback(t, i, s) {
|
|
5459
|
-
super.attributeChangedCallback(t, i, s), (t === r.MUTED || t === r.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext",
|
|
5459
|
+
super.attributeChangedCallback(t, i, s), (t === r.MUTED || t === r.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", dd(this.range.valueAsNumber)), this.updateBar());
|
|
5460
5460
|
}
|
|
5461
5461
|
get volume() {
|
|
5462
5462
|
var t;
|
|
@@ -5468,9 +5468,9 @@ const _i = class _i extends Ui {
|
|
|
5468
5468
|
};
|
|
5469
5469
|
js = new WeakMap(), v(_i, "observedAttributes", [...W(_i, _i, "observedAttributes"), r.MUTED, r.VOLUME]);
|
|
5470
5470
|
let Xr = _i;
|
|
5471
|
-
function
|
|
5471
|
+
function vd() {
|
|
5472
5472
|
customElements.define("vindral-controller", Pi), customElements.define("vindral-control-bar", co), customElements.define("vindral-advanced-rendition-menu", $n), customElements.define("vindral-advanced-rendition-menu-list", Ia), customElements.define("vindral-play-button", Tr), customElements.define("vindral-mute-button", Ir), customElements.define("vindral-buffering-overlay", Oa), customElements.define("vindral-scroll-overlay", vl), customElements.define("vindral-play-overlay", Ul), customElements.define("vindral-user-input-play-overlay", xl), customElements.define("vindral-fullscreen-button", mr), customElements.define("vindral-rendition-levels-menu", Rr), customElements.define("vindral-rendition-levels-menu-list", ll), customElements.define("vindral-channel-grid-button", Wn), customElements.define("vindral-channel-grid", qa), customElements.define("vindral-channel-grid-item", jr), customElements.define("vindral-pip-button", Lr), customElements.define("vindral-airplay-button", Bn), customElements.define("vindral-cast-button", Vn), customElements.define("vindral-cast-overlay", za), customElements.define("vindral-buffering-icon", Da), customElements.define("vindral-language-menu", vr), customElements.define("vindral-language-menu-list", zo), customElements.define("vindral-message", Rl), customElements.define("vindral-volume-range", Xr), customElements.define("vindral-poster-overlay", nl), customElements.define("vindral-player", tl), customElements.define("vindral-seek-bar", Sl), customElements.define("vindral-live-button", kr);
|
|
5473
5473
|
}
|
|
5474
5474
|
export {
|
|
5475
|
-
|
|
5475
|
+
vd as registerComponents
|
|
5476
5476
|
};
|