@vindral/web-sdk 4.5.1-1-g7401e41cc → 4.5.1

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.
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
2
  import { a as n, i as r, n as i, r as a, t as o } from "./B7hT-BKr.js";
3
- import { _ as s, b as c, g as l, i as ee, r as te, t as u, y as ne } from "./C4DIyUFR.js";
3
+ import { g as s, h as c, n as l, r as ee, t as u, v as te, y as ne } from "./D7vM_Gpt.js";
4
4
  import { t as d } from "./RxoWWyzp.js";
5
5
  //#region \0rolldown/runtime.js
6
6
  var f = Object.defineProperty, p = (e, t) => {
@@ -40,13 +40,13 @@ var ie = class extends ee {
40
40
  t !== n && e === "disabled" && (n === null ? this.enable() : this.disable());
41
41
  }
42
42
  handleClick(e) {
43
- this.dispatchEvent(new CustomEvent(l.TOGGLE_DEBUG_PANEL, {
43
+ this.dispatchEvent(new CustomEvent(c.TOGGLE_DEBUG_PANEL, {
44
44
  bubbles: !0,
45
45
  composed: !0
46
46
  }));
47
47
  }
48
48
  };
49
- m = ie, e(ie, "observedAttributes", [...te(m, "observedAttributes", m), s.DEBUG_PANEL_OPEN]);
49
+ m = ie, e(ie, "observedAttributes", [...l(m, "observedAttributes", m), s.DEBUG_PANEL_OPEN]);
50
50
  //#endregion
51
51
  //#region ../../libs/player-next/src/components/DebugPanel.constants.ts
52
52
  var ae = "Adaptive around current target", g = [
@@ -1041,7 +1041,7 @@ var fe = de, v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(
1041
1041
  r(K, this, $).call(this, "Connection", `Channel ${e ? "live" : "offline"}`);
1042
1042
  }), n(this, ye, (e) => {
1043
1043
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
1044
- n || r || i || t === "Escape" && (e.preventDefault(), e.stopPropagation(), this.dispatchEvent(new CustomEvent(l.TOGGLE_DEBUG_PANEL, {
1044
+ n || r || i || t === "Escape" && (e.preventDefault(), e.stopPropagation(), this.dispatchEvent(new CustomEvent(c.TOGGLE_DEBUG_PANEL, {
1045
1045
  bubbles: !0,
1046
1046
  composed: !0
1047
1047
  })));
@@ -1125,7 +1125,7 @@ function Ce() {
1125
1125
  function we() {
1126
1126
  let e = r(K, this, q).call(this, ".close-btn");
1127
1127
  e == null || e.addEventListener("click", (e) => {
1128
- e.stopPropagation(), this.dispatchEvent(new CustomEvent(l.TOGGLE_DEBUG_PANEL, {
1128
+ e.stopPropagation(), this.dispatchEvent(new CustomEvent(c.TOGGLE_DEBUG_PANEL, {
1129
1129
  bubbles: !0,
1130
1130
  composed: !0
1131
1131
  }));
@@ -1311,7 +1311,7 @@ function He() {
1311
1311
  };
1312
1312
  }
1313
1313
  function Ue() {
1314
- this.dispatchEvent(new CustomEvent(l.SET_TARGET_BUFFER_TIME, {
1314
+ this.dispatchEvent(new CustomEvent(c.SET_TARGET_BUFFER_TIME, {
1315
1315
  bubbles: !0,
1316
1316
  composed: !0,
1317
1317
  detail: i(w, this)
@@ -1395,7 +1395,7 @@ function Je() {
1395
1395
  function Ye() {
1396
1396
  let e = r(K, this, q).call(this, "#abr-auto-btn"), t = r(K, this, q).call(this, "#abr-fixed-btn");
1397
1397
  e == null || e.addEventListener("click", (e) => {
1398
- e.stopPropagation(), a(x, this, !0), r(K, this, Ze).call(this), this.dispatchEvent(new CustomEvent(l.SET_ABR_MODE, {
1398
+ e.stopPropagation(), a(x, this, !0), r(K, this, Ze).call(this), this.dispatchEvent(new CustomEvent(c.SET_ABR_MODE, {
1399
1399
  bubbles: !0,
1400
1400
  composed: !0,
1401
1401
  detail: !0
@@ -1403,11 +1403,11 @@ function Ye() {
1403
1403
  }), t == null || t.addEventListener("click", (e) => {
1404
1404
  e.stopPropagation();
1405
1405
  let t = r(K, this, Xe).call(this);
1406
- t && this.dispatchEvent(new CustomEvent(l.SET_RENDITION, {
1406
+ t && this.dispatchEvent(new CustomEvent(c.SET_RENDITION, {
1407
1407
  bubbles: !0,
1408
1408
  composed: !0,
1409
1409
  detail: t
1410
- })), a(x, this, !1), r(K, this, Ze).call(this), this.dispatchEvent(new CustomEvent(l.SET_ABR_MODE, {
1410
+ })), a(x, this, !1), r(K, this, Ze).call(this), this.dispatchEvent(new CustomEvent(c.SET_ABR_MODE, {
1411
1411
  bubbles: !0,
1412
1412
  composed: !0,
1413
1413
  detail: !1
@@ -1415,7 +1415,7 @@ function Ye() {
1415
1415
  });
1416
1416
  let n = r(K, this, q).call(this, "#size-cap-toggle");
1417
1417
  n == null || n.addEventListener("click", (e) => {
1418
- e.stopPropagation(), a(S, this, !i(S, this)), r(K, this, Qe).call(this), this.dispatchEvent(new CustomEvent(l.SET_SIZE_BASED_RESOLUTION_CAP_MODE, {
1418
+ e.stopPropagation(), a(S, this, !i(S, this)), r(K, this, Qe).call(this), this.dispatchEvent(new CustomEvent(c.SET_SIZE_BASED_RESOLUTION_CAP_MODE, {
1419
1419
  bubbles: !0,
1420
1420
  composed: !0,
1421
1421
  detail: i(S, this)
@@ -1447,25 +1447,25 @@ function $e() {
1447
1447
  var n, r;
1448
1448
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
1449
1449
  }).forEach((e) => {
1450
- var n, i, a, o, s, ee, te;
1450
+ var n, i, a, o, s, l, ee;
1451
1451
  let u = document.createElement("button");
1452
- u.className = "quality-item", u.type = "button", u.setAttribute("data-id", String(((n = e.video) == null ? void 0 : n.id) || 0)), u.setAttribute("data-bitrate", String(((i = e.video) == null ? void 0 : i.bitRate) || 0)), u.setAttribute("aria-label", e.video ? `Set quality to ${c(e.video)}` : "Set quality");
1452
+ u.className = "quality-item", u.type = "button", u.setAttribute("data-id", String(((n = e.video) == null ? void 0 : n.id) || 0)), u.setAttribute("data-bitrate", String(((i = e.video) == null ? void 0 : i.bitRate) || 0)), u.setAttribute("aria-label", e.video ? `Set quality to ${ne(e.video)}` : "Set quality");
1453
1453
  let d = document.createElement("div");
1454
1454
  d.className = "quality-item-info";
1455
1455
  let f = document.createElement("span");
1456
- f.className = "quality-item-title", f.textContent = e.video ? c(e.video) : "";
1456
+ f.className = "quality-item-title", f.textContent = e.video ? ne(e.video) : "";
1457
1457
  let p = document.createElement("span");
1458
1458
  p.className = "quality-item-subtitle";
1459
1459
  let m = r(K, this, et).call(this, (a = e.video) == null ? void 0 : a.frameRate), re = m ? `, ${m}fps` : "";
1460
- p.textContent = `${ne(((o = (s = e.video) == null ? void 0 : s.bitRate) == null ? 0 : o) + ((ee = (te = e.audio) == null ? void 0 : te.bitRate) == null ? 0 : ee))}${re}`, d.appendChild(f), d.appendChild(p), u.appendChild(d);
1460
+ p.textContent = `${te(((o = (s = e.video) == null ? void 0 : s.bitRate) == null ? 0 : o) + ((l = (ee = e.audio) == null ? void 0 : ee.bitRate) == null ? 0 : l))}${re}`, d.appendChild(f), d.appendChild(p), u.appendChild(d);
1461
1461
  let h = document.createElement("span");
1462
1462
  h.className = "quality-current-label", h.textContent = "Current", u.appendChild(h), u.addEventListener("click", (t) => {
1463
- t.stopPropagation(), this.dispatchEvent(new CustomEvent(l.SET_RENDITION, {
1463
+ t.stopPropagation(), this.dispatchEvent(new CustomEvent(c.SET_RENDITION, {
1464
1464
  bubbles: !0,
1465
1465
  composed: !0,
1466
1466
  detail: e
1467
1467
  }));
1468
- let n = e.video ? c(e.video) : "unknown";
1468
+ let n = e.video ? ne(e.video) : "unknown";
1469
1469
  r(K, this, $).call(this, "Quality", `Selected: ${n}`);
1470
1470
  }), t.appendChild(u);
1471
1471
  }), r(K, this, tt).call(this));
@@ -1488,7 +1488,7 @@ function tt() {
1488
1488
  return;
1489
1489
  }
1490
1490
  if (typeof c == "number" && c > 0) {
1491
- r(K, this, Y).call(this, "quality-section", ne(c, 1));
1491
+ r(K, this, Y).call(this, "quality-section", te(c, 1));
1492
1492
  return;
1493
1493
  }
1494
1494
  r(K, this, Y).call(this, "quality-section", i(x, this) ? "Auto" : "Fixed");
@@ -1556,7 +1556,7 @@ function ut(e, t = 1) {
1556
1556
  return typeof e != "number" || Number.isNaN(e) ? "-" : `${(e * 100).toFixed(t)}%`;
1557
1557
  }
1558
1558
  function dt(e) {
1559
- return typeof e != "number" || e <= 0 || Number.isNaN(e) ? "-" : ne(e, 2);
1559
+ return typeof e != "number" || e <= 0 || Number.isNaN(e) ? "-" : te(e, 2);
1560
1560
  }
1561
1561
  function ft(e, t) {
1562
1562
  return typeof e != "number" || Number.isNaN(e) ? "-" : `${e.toFixed(2)}/${t}`;
@@ -11360,7 +11360,7 @@ var cy = class {
11360
11360
  let e = this.modules.canvasModule instanceof bv ? !0 : void 0;
11361
11361
  return O({
11362
11362
  uptime: this.uptime,
11363
- version: "4.5.1-1-g7401e41cc",
11363
+ version: "4.5.1",
11364
11364
  clientId: this.clientId,
11365
11365
  sessionId: this.sessionId,
11366
11366
  channelId: this.channelId,
@@ -220,6 +220,6 @@ function N(e, t, n, r) {
220
220
  }
221
221
  //#endregion
222
222
  //#region ../../libs/player-next/src/constants.ts
223
- var P = 5e3, F = "https://lb.cdn.vindral.com";
223
+ var P = 5e3;
224
224
  //#endregion
225
- export { u as _, y as a, l as b, x as c, g as d, p as f, f as g, h, k as i, m as l, C as m, F as n, _ as o, v as p, N as r, b as s, P as t, S as u, d as v, c as y };
225
+ export { d as _, _ as a, m as c, p as d, v as f, u as g, f as h, y as i, S as l, h as m, N as n, b as o, C as p, k as r, x as s, P as t, g as u, c as v, l as y };