@vindral/web-sdk 4.7.1-1-g9d41bb8aa → 4.7.1-10-g16084e8a
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/{DKr8WNnY.js → BVBH0VM9.js} +2985 -2945
- package/{DIsNeRuI.js → DjZxyh_V.js} +133 -131
- package/cast-sender.d.ts +11 -0
- package/core.d.ts +13 -1
- package/core.js +1 -1
- package/legacy.d.ts +13 -1
- package/legacy.es.js +3763 -3723
- package/legacy.umd.js +16 -16
- package/package.json +1 -1
- package/player.d.ts +15 -2
- package/player.js +2 -2
- package/react.d.ts +15 -2
- package/vindral-player-component.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./
|
|
2
|
+
import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./BVBH0VM9.js";
|
|
3
3
|
import { t as ce } from "./CuYn2z5X.js";
|
|
4
4
|
import { i as f, n as p, r as m, t as h } from "./DSw1XhvD.js";
|
|
5
5
|
import { c as le, n as ue, t as de } from "./D40eQS8l.js";
|
|
@@ -2505,7 +2505,7 @@ function ka() {
|
|
|
2505
2505
|
videoRobustness: ge(e.getAttribute("drm-playready-video-robustness")),
|
|
2506
2506
|
audioRobustness: ge(e.getAttribute("drm-playready-audio-robustness"))
|
|
2507
2507
|
}
|
|
2508
|
-
}, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = be(e.getAttribute("reconnect-retries")),
|
|
2508
|
+
}, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = b(e.getAttribute("unstable-webtransport-enabled")), Me = be(e.getAttribute("reconnect-retries")), Ne = Me === void 0 ? void 0 : (e) => e.reconnectRetries < Me, Ie = e.getAttribute("language") || void 0;
|
|
2509
2509
|
p(I, e, new re({
|
|
2510
2510
|
url: h(Ni, e),
|
|
2511
2511
|
channelId: h(Pi, e),
|
|
@@ -2537,24 +2537,25 @@ function ka() {
|
|
|
2537
2537
|
textTrack: l,
|
|
2538
2538
|
advanced: Te,
|
|
2539
2539
|
logLevel: y,
|
|
2540
|
-
language:
|
|
2540
|
+
language: Ie,
|
|
2541
2541
|
drm: De,
|
|
2542
2542
|
webtransportEnabled: S,
|
|
2543
|
+
unstableWebtransportEnabled: je,
|
|
2543
2544
|
webcodecsHardwareAcceleration: Oe,
|
|
2544
2545
|
decoders: Ae,
|
|
2545
2546
|
offscreenCanvasEnabled: x,
|
|
2546
|
-
reconnectHandler:
|
|
2547
|
+
reconnectHandler: Ne
|
|
2547
2548
|
})), p(Mi, e, new yi(h(I, e))), h(L, e) || p(L, e, h(Mi, e)), m(H, e, Aa).call(e), p(Ai, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), h(Ai, e) && (h(I, e).attach(h(Ai, e)), h(qi, e).observe(h(Ai, e))), e.setAttribute(g.MEDIA, h(I, e).media);
|
|
2548
|
-
let
|
|
2549
|
+
let Le = h(I, e);
|
|
2549
2550
|
h(Zi, e).call(e, () => {
|
|
2550
|
-
|
|
2551
|
+
Le.muted && m(H, e, U).call(e, g.MUTED, ""), Le.abrEnabled ? m(H, e, U).call(e, g.ABR_ENABLED, "") : m(H, e, W).call(e, g.ABR_ENABLED), m(H, e, U).call(e, g.SIZE_BASED_RESOLUTION_CAP_ENABLED, Le.sizeBasedResolutionCapEnabled ? "true" : "false"), m(H, e, U).call(e, g.VOLUME, Le.volume.toString());
|
|
2551
2552
|
}), _(we) || m(H, e, U).call(e, g.POSTER_SRC, h(I, e).getThumbnailUrl());
|
|
2552
|
-
let
|
|
2553
|
-
|
|
2553
|
+
let C = b(e.getAttribute(g.AIRPLAY_ENABLED), !1), Re = b(e.getAttribute(g.CAST_ENABLED), !0), ze = b(e.getAttribute(g.FULLSCREEN_ENABLED), !0), Be = b(e.getAttribute(g.PIP_ENABLED), !0), Ve = b(e.getAttribute(g.VU_METER_ENABLED), !1), He = b(e.getAttribute(g.TIMESHIFT_ENABLED), !1);
|
|
2554
|
+
C && m(H, e, Ga).call(e, h(I, e)), Re && m(H, e, Va).call(e, h(I, e)), ze && m(H, e, Ra).call(e, h(I, e)), Be && m(H, e, Ia).call(e, h(I, e)), i || h(I, e).play(), Ve && m(H, e, Ka).call(e, h(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
|
|
2554
2555
|
bubbles: !0,
|
|
2555
2556
|
composed: !0,
|
|
2556
2557
|
detail: h(I, e)
|
|
2557
|
-
})),
|
|
2558
|
+
})), He && (m(H, e, Na).call(e), ze && m(H, e, za).call(e));
|
|
2558
2559
|
})();
|
|
2559
2560
|
}
|
|
2560
2561
|
function Aa() {
|
|
@@ -2853,6 +2854,7 @@ e(Oa, "observedAttributes", [
|
|
|
2853
2854
|
"drm-playready-video-robustness",
|
|
2854
2855
|
"drm-playready-audio-robustness",
|
|
2855
2856
|
"webtransport-enabled",
|
|
2857
|
+
"unstable-webtransport-enabled",
|
|
2856
2858
|
"webcodecs-hardware-acceleration",
|
|
2857
2859
|
"decoders",
|
|
2858
2860
|
"offscreen-canvas-enabled",
|
|
@@ -3070,12 +3072,12 @@ Eo.innerHTML = `
|
|
|
3070
3072
|
<div class="menu"></div>
|
|
3071
3073
|
</div>
|
|
3072
3074
|
`;
|
|
3073
|
-
var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(),
|
|
3075
|
+
var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), zo = class extends HTMLElement {
|
|
3074
3076
|
constructor() {
|
|
3075
|
-
super(), S(this,
|
|
3077
|
+
super(), S(this, G), f(this, Do, []), f(this, Oo, []), f(this, ko, void 0), f(this, Ao, void 0), f(this, jo, []), f(this, Mo, []), f(this, No, null), f(this, Po, null), f(this, Fo, null), f(this, Io, null), f(this, Lo, null), f(this, Ro, null), e(this, "handleEvent", (e) => {
|
|
3076
3078
|
switch (e.type) {
|
|
3077
3079
|
case "keydown":
|
|
3078
|
-
m(
|
|
3080
|
+
m(G, this, Jo).call(this, e);
|
|
3079
3081
|
break;
|
|
3080
3082
|
}
|
|
3081
3083
|
}), this.attachShadow({ mode: "open" }).appendChild(Eo.content.cloneNode(!0));
|
|
@@ -3084,7 +3086,7 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
|
|
|
3084
3086
|
let e = this.getRootNode();
|
|
3085
3087
|
if (e instanceof ShadowRoot) {
|
|
3086
3088
|
var t, n, r;
|
|
3087
|
-
p(
|
|
3089
|
+
p(Fo, this, e.host.closest("vindral-controller")), (t = h(Fo, this)) == null || t.connectListener(this), p(No, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), p(Po, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), m(G, this, Bo).call(this), m(G, this, Vo).call(this), p(Io, this, e.host), this.addEventListener("keydown", this);
|
|
3088
3090
|
}
|
|
3089
3091
|
}
|
|
3090
3092
|
disconnectedCallback() {
|
|
@@ -3094,16 +3096,16 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
|
|
|
3094
3096
|
t !== n && (e === g.LANGUAGES && n && (this.languages = JSON.parse(n)), e === g.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === g.LANGUAGE && (this.language = n), e === g.TEXT_TRACK && (this.textTrack = n));
|
|
3095
3097
|
}
|
|
3096
3098
|
set languages(e) {
|
|
3097
|
-
p(Do, this, e), m(
|
|
3099
|
+
p(Do, this, e), m(G, this, Uo).call(this), m(G, this, Go).call(this);
|
|
3098
3100
|
}
|
|
3099
3101
|
set textTracks(e) {
|
|
3100
|
-
p(Oo, this, e), m(
|
|
3102
|
+
p(Oo, this, e), m(G, this, Ho).call(this), m(G, this, Ko).call(this);
|
|
3101
3103
|
}
|
|
3102
3104
|
set language(e) {
|
|
3103
|
-
p(ko, this, e), m(
|
|
3105
|
+
p(ko, this, e), m(G, this, Go).call(this);
|
|
3104
3106
|
}
|
|
3105
3107
|
set textTrack(e) {
|
|
3106
|
-
p(Ao, this, e), m(
|
|
3108
|
+
p(Ao, this, e), m(G, this, Ko).call(this);
|
|
3107
3109
|
}
|
|
3108
3110
|
get keysUsed() {
|
|
3109
3111
|
return [
|
|
@@ -3120,10 +3122,10 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
|
|
|
3120
3122
|
];
|
|
3121
3123
|
}
|
|
3122
3124
|
focus() {
|
|
3123
|
-
h(
|
|
3125
|
+
h(Lo, this) ? h(Lo, this).focus() : h(Ro, this) && h(Ro, this).focus();
|
|
3124
3126
|
}
|
|
3125
3127
|
};
|
|
3126
|
-
function
|
|
3128
|
+
function Bo() {
|
|
3127
3129
|
new IntersectionObserver((e) => {
|
|
3128
3130
|
e.forEach((e) => {
|
|
3129
3131
|
if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
|
|
@@ -3132,55 +3134,55 @@ function zo() {
|
|
|
3132
3134
|
} else this.style.height = "auto";
|
|
3133
3135
|
});
|
|
3134
3136
|
}, {
|
|
3135
|
-
root: h(
|
|
3137
|
+
root: h(Fo, this),
|
|
3136
3138
|
threshold: 0
|
|
3137
3139
|
}).observe(this);
|
|
3138
3140
|
}
|
|
3139
|
-
function Bo() {
|
|
3140
|
-
h(Mo, this) && (m(K, this, Ho).call(this), m(K, this, Wo).call(this)), h(No, this) && (m(K, this, Vo).call(this), m(K, this, Go).call(this));
|
|
3141
|
-
}
|
|
3142
3141
|
function Vo() {
|
|
3143
|
-
h(No, this).
|
|
3144
|
-
|
|
3145
|
-
|
|
3142
|
+
h(No, this) && (m(G, this, Uo).call(this), m(G, this, Go).call(this)), h(Po, this) && (m(G, this, Ho).call(this), m(G, this, Ko).call(this));
|
|
3143
|
+
}
|
|
3144
|
+
function Ho() {
|
|
3145
|
+
h(Po, this).innerHTML = "", p(Mo, this, []);
|
|
3146
|
+
let e = m(G, this, Wo).call(this, "Off", "textTrack", void 0);
|
|
3147
|
+
h(Po, this).appendChild(e), h(Mo, this).push({
|
|
3146
3148
|
element: e,
|
|
3147
3149
|
value: void 0
|
|
3148
3150
|
}), h(Oo, this).forEach((e) => {
|
|
3149
|
-
let t = m(
|
|
3150
|
-
h(
|
|
3151
|
+
let t = m(G, this, Wo).call(this, e, "textTrack", e);
|
|
3152
|
+
h(Po, this).appendChild(t), h(Mo, this).push({
|
|
3151
3153
|
element: t,
|
|
3152
3154
|
value: e
|
|
3153
3155
|
});
|
|
3154
|
-
}), m(
|
|
3156
|
+
}), m(G, this, Ko).call(this);
|
|
3155
3157
|
}
|
|
3156
|
-
function
|
|
3157
|
-
h(
|
|
3158
|
-
let t = m(
|
|
3159
|
-
h(
|
|
3158
|
+
function Uo() {
|
|
3159
|
+
h(No, this).innerHTML = "", p(jo, this, []), h(Do, this).forEach((e) => {
|
|
3160
|
+
let t = m(G, this, Wo).call(this, e, "language", e);
|
|
3161
|
+
h(No, this).appendChild(t), h(jo, this).push({
|
|
3160
3162
|
element: t,
|
|
3161
3163
|
value: e
|
|
3162
3164
|
});
|
|
3163
|
-
}), m(
|
|
3165
|
+
}), m(G, this, Go).call(this);
|
|
3164
3166
|
}
|
|
3165
|
-
function
|
|
3167
|
+
function Wo(e, t, n) {
|
|
3166
3168
|
let r = document.createElement("div");
|
|
3167
|
-
return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(
|
|
3168
|
-
}
|
|
3169
|
-
function Wo() {
|
|
3170
|
-
h(Io, this) && (h(Io, this).removeAttribute("aria-selected"), h(Io, this).tabIndex = -1);
|
|
3171
|
-
let e = h(jo, this).find((e) => e.value === h(ko, this));
|
|
3172
|
-
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Io, this, e.element));
|
|
3169
|
+
return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(G, this, qo).call(this, n, t)), r;
|
|
3173
3170
|
}
|
|
3174
3171
|
function Go() {
|
|
3175
3172
|
h(Lo, this) && (h(Lo, this).removeAttribute("aria-selected"), h(Lo, this).tabIndex = -1);
|
|
3176
|
-
let e = h(
|
|
3177
|
-
|
|
3173
|
+
let e = h(jo, this).find((e) => e.value === h(ko, this));
|
|
3174
|
+
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Lo, this, e.element));
|
|
3175
|
+
}
|
|
3176
|
+
function Ko() {
|
|
3177
|
+
h(Ro, this) && (h(Ro, this).removeAttribute("aria-selected"), h(Ro, this).tabIndex = -1);
|
|
3178
|
+
let e = h(Mo, this).find((e) => e.value === h(Ao, this));
|
|
3179
|
+
if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element);
|
|
3178
3180
|
else {
|
|
3179
|
-
let e = h(
|
|
3180
|
-
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(
|
|
3181
|
+
let e = h(Mo, this).find((e) => e.value === void 0);
|
|
3182
|
+
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element));
|
|
3181
3183
|
}
|
|
3182
3184
|
}
|
|
3183
|
-
function
|
|
3185
|
+
function qo(e, t) {
|
|
3184
3186
|
this.dispatchEvent(new Event("change", {
|
|
3185
3187
|
bubbles: !0,
|
|
3186
3188
|
composed: !0
|
|
@@ -3192,36 +3194,36 @@ function Ko(e, t) {
|
|
|
3192
3194
|
detail: e
|
|
3193
3195
|
}));
|
|
3194
3196
|
}
|
|
3195
|
-
function
|
|
3197
|
+
function Jo(e) {
|
|
3196
3198
|
let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
|
|
3197
3199
|
if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
|
|
3198
3200
|
var a;
|
|
3199
|
-
(a = h(
|
|
3201
|
+
(a = h(Io, this)) == null || a.hide();
|
|
3200
3202
|
} else if (t === "Enter" || t === " ") {
|
|
3201
3203
|
var o;
|
|
3202
|
-
(o = m(
|
|
3203
|
-
} else m(
|
|
3204
|
+
(o = m(G, this, Zo).call(this)) == null || (o = o.element) == null || o.click();
|
|
3205
|
+
} else m(G, this, Yo).call(this, e);
|
|
3204
3206
|
}
|
|
3205
|
-
function
|
|
3207
|
+
function Yo(e) {
|
|
3206
3208
|
var t;
|
|
3207
|
-
let { key: n } = e, r = [...h(jo, this), ...h(
|
|
3209
|
+
let { key: n } = e, r = [...h(jo, this), ...h(Mo, this)], i = (t = m(G, this, Zo).call(this)) == null ? r[0] : t;
|
|
3208
3210
|
if (!i) return;
|
|
3209
3211
|
let a = r.indexOf(i), o = Math.max(0, a);
|
|
3210
|
-
n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(
|
|
3212
|
+
n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(G, this, Xo).call(this, a, "left") : n === "ArrowRight" ? o = m(G, this, Xo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
|
|
3211
3213
|
let s = r[o];
|
|
3212
|
-
s && (m(
|
|
3214
|
+
s && (m(G, this, Qo).call(this, s.value), s.element.focus());
|
|
3213
3215
|
}
|
|
3214
|
-
function
|
|
3215
|
-
let n = h(jo, this).length, r = h(
|
|
3216
|
+
function Xo(e, t) {
|
|
3217
|
+
let n = h(jo, this).length, r = h(Mo, this).length;
|
|
3216
3218
|
return t === "left" ? e < n ? n + r - 1 : e - n - 1 : e >= n ? 0 : e + n;
|
|
3217
3219
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return [...h(jo, this), ...h(
|
|
3220
|
+
function Zo() {
|
|
3221
|
+
return [...h(jo, this), ...h(Mo, this)].find((e) => e.element.tabIndex === 0);
|
|
3220
3222
|
}
|
|
3221
|
-
function
|
|
3222
|
-
for (let t of [...h(jo, this), ...h(
|
|
3223
|
+
function Qo(e) {
|
|
3224
|
+
for (let t of [...h(jo, this), ...h(Mo, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
|
|
3223
3225
|
}
|
|
3224
|
-
e(
|
|
3226
|
+
e(zo, "observedAttributes", [
|
|
3225
3227
|
g.LANGUAGES,
|
|
3226
3228
|
g.TEXT_TRACKS,
|
|
3227
3229
|
g.LANGUAGE,
|
|
@@ -3229,12 +3231,12 @@ e(Ro, "observedAttributes", [
|
|
|
3229
3231
|
]);
|
|
3230
3232
|
//#endregion
|
|
3231
3233
|
//#region ../../libs/player-next/src/components/LiveButton.ts
|
|
3232
|
-
var
|
|
3233
|
-
|
|
3234
|
-
var
|
|
3234
|
+
var $o, es = document.createElement("template");
|
|
3235
|
+
es.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
|
|
3236
|
+
var ts = class extends v {
|
|
3235
3237
|
constructor() {
|
|
3236
3238
|
var e;
|
|
3237
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3239
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(es.content.cloneNode(!0));
|
|
3238
3240
|
}
|
|
3239
3241
|
connectedCallback() {
|
|
3240
3242
|
super.connectedCallback(), this.updateState();
|
|
@@ -3265,15 +3267,15 @@ var es = class extends v {
|
|
|
3265
3267
|
}));
|
|
3266
3268
|
}
|
|
3267
3269
|
};
|
|
3268
|
-
|
|
3269
|
-
...y(
|
|
3270
|
+
$o = ts, e(ts, "observedAttributes", [
|
|
3271
|
+
...y($o, "observedAttributes", $o),
|
|
3270
3272
|
g.TIMESHIFT_POSITION,
|
|
3271
3273
|
g.DURATION
|
|
3272
3274
|
]);
|
|
3273
3275
|
//#endregion
|
|
3274
3276
|
//#region ../../libs/player-next/src/components/MuteButton.ts
|
|
3275
|
-
var
|
|
3276
|
-
|
|
3277
|
+
var ns, rs = document.createElement("template");
|
|
3278
|
+
rs.innerHTML = `
|
|
3277
3279
|
<style>
|
|
3278
3280
|
:host {
|
|
3279
3281
|
display: var(--mute-button-display);
|
|
@@ -3301,10 +3303,10 @@ ns.innerHTML = `
|
|
|
3301
3303
|
</slot>
|
|
3302
3304
|
</slot>
|
|
3303
3305
|
`;
|
|
3304
|
-
var
|
|
3306
|
+
var is = class extends v {
|
|
3305
3307
|
constructor() {
|
|
3306
3308
|
var e;
|
|
3307
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3309
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(rs.content.cloneNode(!0));
|
|
3308
3310
|
}
|
|
3309
3311
|
connectedCallback() {
|
|
3310
3312
|
super.connectedCallback(), this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
|
|
@@ -3329,11 +3331,11 @@ var rs = class extends v {
|
|
|
3329
3331
|
}));
|
|
3330
3332
|
}
|
|
3331
3333
|
};
|
|
3332
|
-
|
|
3334
|
+
ns = is, e(is, "observedAttributes", [...y(ns, "observedAttributes", ns), g.MUTED]);
|
|
3333
3335
|
//#endregion
|
|
3334
3336
|
//#region ../../libs/player-next/src/components/PictureInPictureButton.ts
|
|
3335
|
-
var
|
|
3336
|
-
|
|
3337
|
+
var as, os = document.createElement("template");
|
|
3338
|
+
os.innerHTML = `
|
|
3337
3339
|
<style>
|
|
3338
3340
|
:host {
|
|
3339
3341
|
display: var(--pip-button-display);
|
|
@@ -3347,10 +3349,10 @@ as.innerHTML = `
|
|
|
3347
3349
|
<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>
|
|
3348
3350
|
</slot>
|
|
3349
3351
|
`;
|
|
3350
|
-
var
|
|
3352
|
+
var ss = class extends v {
|
|
3351
3353
|
constructor() {
|
|
3352
3354
|
var e;
|
|
3353
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3355
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(os.content.cloneNode(!0));
|
|
3354
3356
|
}
|
|
3355
3357
|
connectedCallback() {
|
|
3356
3358
|
super.connectedCallback(), this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
|
|
@@ -3375,15 +3377,15 @@ var os = class extends v {
|
|
|
3375
3377
|
}));
|
|
3376
3378
|
}
|
|
3377
3379
|
};
|
|
3378
|
-
|
|
3379
|
-
...y(
|
|
3380
|
+
as = ss, e(ss, "observedAttributes", [
|
|
3381
|
+
...y(as, "observedAttributes", as),
|
|
3380
3382
|
g.IS_PIP,
|
|
3381
3383
|
g.PIP_AVAILABLE
|
|
3382
3384
|
]);
|
|
3383
3385
|
//#endregion
|
|
3384
3386
|
//#region ../../libs/player-next/src/components/PlayButton.ts
|
|
3385
|
-
var
|
|
3386
|
-
|
|
3387
|
+
var cs, ls = document.createElement("template");
|
|
3388
|
+
ls.innerHTML = `
|
|
3387
3389
|
<style>
|
|
3388
3390
|
:host {
|
|
3389
3391
|
display: var(--play-button-display);
|
|
@@ -3407,10 +3409,10 @@ cs.innerHTML = `
|
|
|
3407
3409
|
</slot>
|
|
3408
3410
|
</slot>
|
|
3409
3411
|
`;
|
|
3410
|
-
var
|
|
3412
|
+
var us = class extends v {
|
|
3411
3413
|
constructor() {
|
|
3412
3414
|
var e;
|
|
3413
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3415
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(ls.content.cloneNode(!0));
|
|
3414
3416
|
}
|
|
3415
3417
|
connectedCallback() {
|
|
3416
3418
|
super.connectedCallback(), this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
|
|
@@ -3435,64 +3437,64 @@ var ls = class extends v {
|
|
|
3435
3437
|
}));
|
|
3436
3438
|
}
|
|
3437
3439
|
};
|
|
3438
|
-
|
|
3440
|
+
cs = us, e(us, "observedAttributes", [...y(cs, "observedAttributes", cs), g.PAUSED]);
|
|
3439
3441
|
//#endregion
|
|
3440
3442
|
//#region ../../libs/player-next/src/PlayerAttributes.ts
|
|
3441
|
-
var
|
|
3443
|
+
var K = {
|
|
3442
3444
|
TITLE: "title",
|
|
3443
3445
|
OFFLINE: "offline",
|
|
3444
3446
|
ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
|
|
3445
3447
|
REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
|
|
3446
3448
|
STREAM_POLL_ENABLED: "stream-poll-enabled"
|
|
3447
|
-
},
|
|
3449
|
+
}, ds = Object.values(K), fs = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakSet(), bs = class extends pe {
|
|
3448
3450
|
constructor(e) {
|
|
3449
|
-
super(), S(this,
|
|
3451
|
+
super(), S(this, ys), f(this, fs, void 0), f(this, ps, void 0), f(this, ms, !1), f(this, hs, !1), f(this, gs, !0), f(this, _s, null), f(this, vs, null), p(ps, this, e), p(fs, this, new de({
|
|
3450
3452
|
publicEndpoint: e.url,
|
|
3451
3453
|
tokenFactory: () => e.authenticationToken
|
|
3452
3454
|
}));
|
|
3453
3455
|
}
|
|
3454
3456
|
start(e = 5e3) {
|
|
3455
|
-
h(
|
|
3456
|
-
!h(
|
|
3457
|
+
h(vs, this) && clearInterval(h(vs, this)), p(ms, this, !1), p(hs, this, !1), m(ys, this, ws).call(this), m(ys, this, xs).call(this), p(vs, this, window.setInterval(() => {
|
|
3458
|
+
!h(hs, this) && !h(ps, this).infiniteReconnect && !h(_s, this) && h(gs, this) && p(_s, this, window.setTimeout(() => m(ys, this, Ss).call(this), 300 * 1e3)), !h(hs, this) && h(gs, this) && m(ys, this, xs).call(this);
|
|
3457
3459
|
}, e));
|
|
3458
3460
|
}
|
|
3459
3461
|
stop() {
|
|
3460
|
-
m(
|
|
3462
|
+
m(ys, this, Cs).call(this), h(vs, this) && (window.clearInterval(h(vs, this)), p(vs, this, null));
|
|
3461
3463
|
}
|
|
3462
3464
|
};
|
|
3463
|
-
function
|
|
3465
|
+
function xs() {
|
|
3464
3466
|
var e = this;
|
|
3465
3467
|
return t(function* () {
|
|
3466
|
-
if (h(
|
|
3467
|
-
p(
|
|
3468
|
+
if (h(ms, e)) return;
|
|
3469
|
+
p(ms, e, !0);
|
|
3468
3470
|
let t = "Stream is offline", n = "Please stand by";
|
|
3469
3471
|
try {
|
|
3470
|
-
let t = yield h(
|
|
3472
|
+
let t = yield h(fs, e).getChannel(h(ps, e).channelId);
|
|
3471
3473
|
if (t.isLive) {
|
|
3472
|
-
p(
|
|
3474
|
+
p(hs, e, !0), m(ys, e, ws).call(e), e.emit("live", t), p(ms, e, !1);
|
|
3473
3475
|
return;
|
|
3474
3476
|
}
|
|
3475
3477
|
} catch (e) {
|
|
3476
3478
|
ue(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
|
|
3477
3479
|
}
|
|
3478
|
-
h(
|
|
3480
|
+
h(gs, e) && e.emit("error", {
|
|
3479
3481
|
title: t,
|
|
3480
3482
|
message: n
|
|
3481
|
-
}), p(
|
|
3483
|
+
}), p(ms, e, !1);
|
|
3482
3484
|
})();
|
|
3483
3485
|
}
|
|
3484
|
-
function xs() {
|
|
3485
|
-
this.stop(), p(hs, this, !1), this.emit("timeout");
|
|
3486
|
-
}
|
|
3487
3486
|
function Ss() {
|
|
3488
|
-
|
|
3487
|
+
this.stop(), p(gs, this, !1), this.emit("timeout");
|
|
3489
3488
|
}
|
|
3490
3489
|
function Cs() {
|
|
3491
|
-
|
|
3490
|
+
h(_s, this) && (window.clearTimeout(h(_s, this)), p(_s, this, null));
|
|
3491
|
+
}
|
|
3492
|
+
function ws() {
|
|
3493
|
+
m(ys, this, Cs).call(this), p(gs, this, !0);
|
|
3492
3494
|
}
|
|
3493
3495
|
//#endregion
|
|
3494
3496
|
//#region ../../libs/player-next/src/utils/browser.ts
|
|
3495
|
-
var
|
|
3497
|
+
var Ts = /\/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, Es = navigator.userAgent.toLowerCase(), Ds = Ts.test(Es), Os = (e) => Oa.observedAttributes.includes(e), ks = `
|
|
3496
3498
|
<style>
|
|
3497
3499
|
:host {
|
|
3498
3500
|
container-type: inline-size;
|
|
@@ -3502,7 +3504,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3502
3504
|
display: flex;
|
|
3503
3505
|
justify-content: center;
|
|
3504
3506
|
|
|
3505
|
-
--vindral-volume-range-display: ${
|
|
3507
|
+
--vindral-volume-range-display: ${Ds ? "none" : "flex"};
|
|
3506
3508
|
--vindral-airplay-button-display: none;
|
|
3507
3509
|
--vindral-play-overlay-display: none;
|
|
3508
3510
|
--vindral-grid-item-offline-display: none;
|
|
@@ -3538,7 +3540,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3538
3540
|
// needs to be higher than bottom bar/UI
|
|
3539
3541
|
}
|
|
3540
3542
|
|
|
3541
|
-
:host([${
|
|
3543
|
+
:host([${K.OFFLINE}]) {
|
|
3542
3544
|
aspect-ratio: 16 / 9;
|
|
3543
3545
|
vindral-controller {
|
|
3544
3546
|
--vindral-ui-display: none;
|
|
@@ -3583,10 +3585,10 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3583
3585
|
--vindral-subtitle-offset: -48px;
|
|
3584
3586
|
}
|
|
3585
3587
|
</style>
|
|
3586
|
-
`,
|
|
3588
|
+
`, As = (e) => {
|
|
3587
3589
|
let t = e ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
|
|
3588
3590
|
return `
|
|
3589
|
-
${
|
|
3591
|
+
${ks}
|
|
3590
3592
|
|
|
3591
3593
|
<vindral-controller>
|
|
3592
3594
|
<vindral-control-bar slot="top-bar">
|
|
@@ -3624,8 +3626,8 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3624
3626
|
</vindral-center-overlay>
|
|
3625
3627
|
</vindral-controller>
|
|
3626
3628
|
`;
|
|
3627
|
-
},
|
|
3628
|
-
${
|
|
3629
|
+
}, js = `
|
|
3630
|
+
${ks}
|
|
3629
3631
|
|
|
3630
3632
|
<style>
|
|
3631
3633
|
#control-bar {
|
|
@@ -3649,14 +3651,14 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3649
3651
|
<vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
|
|
3650
3652
|
</vindral-center-overlay>
|
|
3651
3653
|
</vindral-controller>
|
|
3652
|
-
`,
|
|
3654
|
+
`, Ms = document.createElement("template"), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Bs = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), Us = class extends HTMLElement {
|
|
3653
3655
|
constructor() {
|
|
3654
|
-
super(), S(this, Y), f(this,
|
|
3656
|
+
super(), S(this, Y), f(this, q, void 0), f(this, J, void 0), f(this, Ns, void 0), f(this, Ps, void 0), f(this, Fs, void 0), f(this, Is, void 0), f(this, Ls, /* @__PURE__ */ new Set()), f(this, Rs, () => {
|
|
3655
3657
|
Array.from(this.attributes).forEach((e) => {
|
|
3656
3658
|
h(zs, this).call(this, e.name, e.value);
|
|
3657
3659
|
});
|
|
3658
3660
|
}), f(this, zs, (e, t) => {
|
|
3659
|
-
|
|
3661
|
+
Os(e) && (_(t) ? h(J, this).setAttribute(e, t) : h(J, this).removeAttribute(e));
|
|
3660
3662
|
}), f(this, Bs, () => {
|
|
3661
3663
|
Array.from(this.children).forEach((e) => {
|
|
3662
3664
|
h(Ls, this).add(e);
|
|
@@ -3664,7 +3666,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3664
3666
|
}), f(this, Vs, () => {
|
|
3665
3667
|
let e = h(J, this).instance;
|
|
3666
3668
|
e && (e.on("is live", (e) => {
|
|
3667
|
-
e ? (this.removeAttribute(
|
|
3669
|
+
e ? (this.removeAttribute(K.OFFLINE), m(Y, this, Xs).call(this)) : (this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Stream is offline", "Please stand by"));
|
|
3668
3670
|
}), e.on("channels", (e) => {
|
|
3669
3671
|
let t = h(J, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
|
|
3670
3672
|
n && m(Y, this, qs).call(this, n);
|
|
@@ -3676,24 +3678,24 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3676
3678
|
m(Y, this, Ys).call(this, "Stream is offline", "Please stand by");
|
|
3677
3679
|
return;
|
|
3678
3680
|
}
|
|
3679
|
-
e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ys).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ys).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ys).call(this, "An error occurred", e.message), h(Ps, this).removeAttribute("hidden"), this.setAttribute(
|
|
3681
|
+
e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ys).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ys).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ys).call(this, "An error occurred", e.message), h(Ps, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_FULLSCREEN)), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_PIP)));
|
|
3680
3682
|
}));
|
|
3681
3683
|
}), f(this, Hs, () => {
|
|
3682
3684
|
h(J, this).connect(), h(Ps, this).setAttribute("hidden", ""), m(Y, this, Xs).call(this), h(J, this).focus();
|
|
3683
|
-
}), p(
|
|
3685
|
+
}), p(q, this, this.attachShadow({ mode: "open" })), m(Y, this, Gs).call(this), p(J, this, h(q, this).querySelector("vindral-controller")), p(Ns, this, h(q, this).querySelector("#vindral-message")), p(Ps, this, h(q, this).querySelector("#play-overlay")), p(Fs, this, h(q, this).querySelector("#center-overlay"));
|
|
3684
3686
|
}
|
|
3685
3687
|
connectedCallback() {
|
|
3686
|
-
this.setAttribute(
|
|
3688
|
+
this.setAttribute(K.OFFLINE, ""), h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), m(Y, this, Ks).call(this);
|
|
3687
3689
|
}
|
|
3688
3690
|
disconnectedCallback() {
|
|
3689
3691
|
var e;
|
|
3690
3692
|
h(J, this).removeEventListener("vindral-instance-ready", h(Vs, this)), h(Ps, this).removeEventListener("click", h(Hs, this)), (e = h(Is, this)) == null || e.stop();
|
|
3691
3693
|
}
|
|
3692
3694
|
attributeChangedCallback(e, t, n) {
|
|
3693
|
-
if (t !== n) if (e === g.MEDIA || e ===
|
|
3694
|
-
else if (e ===
|
|
3695
|
-
let e = h(
|
|
3696
|
-
e && (e.disabled = b(this.getAttribute(
|
|
3695
|
+
if (t !== n) if (e === g.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) m(Y, this, Gs).call(this);
|
|
3696
|
+
else if (e === K.REFRESH_POSTER_ENABLED) {
|
|
3697
|
+
let e = h(q, this).querySelector("vindral-poster-overlay");
|
|
3698
|
+
e && (e.disabled = b(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
|
|
3697
3699
|
} else h(zs, this).call(this, e, n);
|
|
3698
3700
|
}
|
|
3699
3701
|
get instance() {
|
|
@@ -3710,26 +3712,26 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3710
3712
|
}
|
|
3711
3713
|
};
|
|
3712
3714
|
function Ws() {
|
|
3713
|
-
let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(
|
|
3714
|
-
return e === "audio" ?
|
|
3715
|
+
let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
|
|
3716
|
+
return e === "audio" ? js : As(t);
|
|
3715
3717
|
}
|
|
3716
3718
|
function Gs() {
|
|
3717
|
-
let e = h(
|
|
3718
|
-
this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Vs, this)), this.isConnected && n && h(Is, this) && n.removeEventListener("click", h(Hs, this)),
|
|
3719
|
-
let r =
|
|
3719
|
+
let e = h(q, this).hasChildNodes(), t = e ? h(J, this) : void 0, n = e ? h(Ps, this) : void 0;
|
|
3720
|
+
this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Vs, this)), this.isConnected && n && h(Is, this) && n.removeEventListener("click", h(Hs, this)), Ms.innerHTML = m(Y, this, Ws).call(this);
|
|
3721
|
+
let r = Ms.content.cloneNode(!0);
|
|
3720
3722
|
p(J, this, r.querySelector("vindral-controller")), p(Ns, this, r.querySelector("#vindral-message")), p(Ps, this, r.querySelector("#play-overlay")), p(Fs, this, r.querySelector("#center-overlay")), h(Bs, this).call(this), h(Ls, this).forEach((e) => {
|
|
3721
3723
|
h(J, this).appendChild(e);
|
|
3722
|
-
}), h(Rs, this).call(this), h(
|
|
3724
|
+
}), h(Rs, this).call(this), h(q, this).innerHTML = "", h(q, this).appendChild(r), this.isConnected && (h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), h(Is, this) && h(Ps, this).addEventListener("click", h(Hs, this)));
|
|
3723
3725
|
}
|
|
3724
3726
|
function Ks() {
|
|
3725
3727
|
var e;
|
|
3726
|
-
if (b(this.getAttribute(
|
|
3728
|
+
if (b(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
|
|
3727
3729
|
let t = this.getAttribute("url") || "https://lb.cdn.vindral.com", n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
|
|
3728
3730
|
if (!n) {
|
|
3729
|
-
this.setAttribute(
|
|
3731
|
+
this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Invalid options", "Please enter a channel id to start the stream");
|
|
3730
3732
|
return;
|
|
3731
3733
|
}
|
|
3732
|
-
p(Is, this, new
|
|
3734
|
+
p(Is, this, new bs({
|
|
3733
3735
|
url: t,
|
|
3734
3736
|
channelId: n,
|
|
3735
3737
|
authenticationToken: r,
|
|
@@ -3739,7 +3741,7 @@ function Ks() {
|
|
|
3739
3741
|
}), h(Is, this).on("timeout", () => {
|
|
3740
3742
|
m(Y, this, Xs).call(this), h(Ps, this).removeAttribute("hidden");
|
|
3741
3743
|
}), h(Is, this).on("error", (e) => {
|
|
3742
|
-
this.setAttribute(
|
|
3744
|
+
this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, e.title, e.message);
|
|
3743
3745
|
}), h(Ps, this).addEventListener("click", h(Hs, this)), this.hasAttribute("paused") && h(Is, this).start();
|
|
3744
3746
|
}
|
|
3745
3747
|
function qs(e) {
|
|
@@ -3762,7 +3764,7 @@ function Ys(e, t) {
|
|
|
3762
3764
|
function Xs() {
|
|
3763
3765
|
h(Ns, this).setAttribute("hidden", ""), h(Fs, this).removeAttribute("backdrop");
|
|
3764
3766
|
}
|
|
3765
|
-
e(Us, "observedAttributes", [...Oa.observedAttributes, ...
|
|
3767
|
+
e(Us, "observedAttributes", [...Oa.observedAttributes, ...ds]);
|
|
3766
3768
|
//#endregion
|
|
3767
3769
|
//#region ../../libs/player-next/src/components/PosterOverlay.ts
|
|
3768
3770
|
var Zs = document.createElement("template");
|
|
@@ -4775,7 +4777,7 @@ tu = cu, e(cu, "observedAttributes", [
|
|
|
4775
4777
|
//#endregion
|
|
4776
4778
|
//#region ../../libs/player-next/src/registerComponents.ts
|
|
4777
4779
|
function lu() {
|
|
4778
|
-
customElements.define("vindral-controller", Oa), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button",
|
|
4780
|
+
customElements.define("vindral-controller", Oa), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button", us), customElements.define("vindral-mute-button", is), customElements.define("vindral-buffering-overlay", Ft), customElements.define("vindral-scroll-overlay", Vc), customElements.define("vindral-play-overlay", eu), customElements.define("vindral-user-input-play-overlay", Gl), customElements.define("vindral-fullscreen-button", yo), customElements.define("vindral-rendition-levels-menu", pc), customElements.define("vindral-rendition-levels-menu-list", Sc), customElements.define("vindral-channel-grid-button", Pn), customElements.define("vindral-channel-grid", on), customElements.define("vindral-channel-grid-item", Yt), customElements.define("vindral-pip-button", ss), customElements.define("vindral-airplay-button", Ot), customElements.define("vindral-cast-button", zt), customElements.define("vindral-cast-overlay", Gt), customElements.define("vindral-buffering-icon", Mt), customElements.define("vindral-language-menu", wo), customElements.define("vindral-language-menu-list", zo), customElements.define("vindral-center-overlay", ql), customElements.define("vindral-message", Zl), customElements.define("vindral-volume-range", cu), customElements.define("vindral-poster-overlay", ac), customElements.define("vindral-player", Us), customElements.define("vindral-seek-bar", xl), customElements.define("vindral-live-button", ts);
|
|
4779
4781
|
}
|
|
4780
4782
|
//#endregion
|
|
4781
4783
|
export { lu as t };
|