@vindral/web-sdk 4.1.4-4-g5b507b07 → 4.1.4-6-g7bc4e5ae
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/{C4Un0avq.js → CVqfrCDH.js} +881 -886
- package/{BEOJhpYf.js → D3kGf05a.js} +1 -1
- package/{B2Zh92gb.js → DZKKTJrC.js} +1 -1
- package/core.js +1 -1
- package/legacy.es.js +1267 -1274
- package/legacy.umd.js +9 -9
- package/package.json +1 -1
- package/player.js +14 -22
package/package.json
CHANGED
package/player.js
CHANGED
|
@@ -24,7 +24,7 @@ var G = (d, a, t) => new Promise((i, s) => {
|
|
|
24
24
|
}, u = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(o, p);
|
|
25
25
|
u((t = t.apply(d, a)).next());
|
|
26
26
|
});
|
|
27
|
-
import { L as jr, V as Vr, i as Yr, C as Jr, A as Qr, a as Wr, b as Zr } from "./
|
|
27
|
+
import { L as jr, V as Vr, i as Yr, C as Jr, A as Qr, a as Wr, b as Zr } from "./CVqfrCDH.js";
|
|
28
28
|
import { E as li } from "./Bx7s5QdT.js";
|
|
29
29
|
import { CastSender as to } from "./cast-sender.js";
|
|
30
30
|
import { A as eo, d as io } from "./Bs3ZbgIy.js";
|
|
@@ -940,9 +940,7 @@ mt = new WeakMap(), vt = new WeakMap(), Xt = new WeakMap(), O = new WeakMap(), T
|
|
|
940
940
|
return e(this, O).filter((u) => u.element.getBoundingClientRect().width > 0).forEach((u, v) => {
|
|
941
941
|
const g = u.element.getBoundingClientRect(), P = i === 0 || i < 0 && g.top < t.top || i > 0 && g.top > t.top, et = s === 0 || s < 0 && g.left < t.left || s > 0 && g.left > t.left;
|
|
942
942
|
if (P && et) {
|
|
943
|
-
const J = Math.sqrt(
|
|
944
|
-
Math.pow(g.top - t.top, 2) + Math.pow(g.left - t.left, 2)
|
|
945
|
-
);
|
|
943
|
+
const J = Math.sqrt((g.top - t.top) ** 2 + (g.left - t.left) ** 2);
|
|
946
944
|
J < p && (p = J, o = v);
|
|
947
945
|
}
|
|
948
946
|
}), o;
|
|
@@ -1138,7 +1136,6 @@ class uo extends li {
|
|
|
1138
1136
|
*/
|
|
1139
1137
|
set channelId(t) {
|
|
1140
1138
|
}
|
|
1141
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-call */
|
|
1142
1139
|
/**
|
|
1143
1140
|
* Show the AirPlay picker.
|
|
1144
1141
|
*/
|
|
@@ -1166,7 +1163,6 @@ class uo extends li {
|
|
|
1166
1163
|
}
|
|
1167
1164
|
});
|
|
1168
1165
|
}
|
|
1169
|
-
/* eslint-enable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-call */
|
|
1170
1166
|
}
|
|
1171
1167
|
const St = class St extends li {
|
|
1172
1168
|
constructor(t) {
|
|
@@ -1191,7 +1187,6 @@ const St = class St extends li {
|
|
|
1191
1187
|
}));
|
|
1192
1188
|
m(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen()));
|
|
1193
1189
|
// into the yolo zone
|
|
1194
|
-
/* eslint-disable @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/unbound-method */
|
|
1195
1190
|
m(this, "isFullscreen", () => !!(document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen));
|
|
1196
1191
|
m(this, "isSupported", () => St.isFullscreenApiSupported(this.container) || !this.isInIframe());
|
|
1197
1192
|
m(this, "isFullscreenApiSupported", () => St.isFullscreenApiSupported(this.container));
|
|
@@ -1212,7 +1207,6 @@ const St = class St extends li {
|
|
|
1212
1207
|
t();
|
|
1213
1208
|
});
|
|
1214
1209
|
}
|
|
1215
|
-
/* eslint-enable @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/unbound-method */
|
|
1216
1210
|
};
|
|
1217
1211
|
m(St, "isFullscreenApiSupported", (t) => (t.requestFullscreen || t.webkitRequestFullscreen || t.webkitEnterFullscreen || t.mozRequestFullScreen) !== void 0);
|
|
1218
1212
|
let be = St;
|
|
@@ -1259,7 +1253,12 @@ class po extends li {
|
|
|
1259
1253
|
}
|
|
1260
1254
|
}
|
|
1261
1255
|
Ii = new WeakMap(), Ci = new WeakMap(), Li = new WeakMap(), Ti = new WeakMap(), Yt = new WeakMap(), xi = new WeakMap(), Si = new WeakMap(), _e = new WeakMap(), Jt = new WeakMap();
|
|
1262
|
-
|
|
1256
|
+
const Ks = (d) => {
|
|
1257
|
+
var t;
|
|
1258
|
+
let a = "observedAttributes" in d.constructor ? d.constructor.observedAttributes : void 0;
|
|
1259
|
+
return !a && ((t = d.nodeName) != null && t.includes("-")) && (globalThis.customElements.upgrade(d), a = "observedAttributes" in d.constructor ? d.constructor.observedAttributes : void 0), Array.isArray(a) ? a.filter((i) => js.includes(i)) : [];
|
|
1260
|
+
};
|
|
1261
|
+
class qs extends li {
|
|
1263
1262
|
constructor(t) {
|
|
1264
1263
|
super();
|
|
1265
1264
|
m(this, "audioContext");
|
|
@@ -1322,11 +1321,7 @@ class Ks extends li {
|
|
|
1322
1321
|
return this.source instanceof HTMLMediaElement;
|
|
1323
1322
|
}
|
|
1324
1323
|
}
|
|
1325
|
-
const
|
|
1326
|
-
var t;
|
|
1327
|
-
let a = "observedAttributes" in d.constructor ? d.constructor.observedAttributes : void 0;
|
|
1328
|
-
return !a && ((t = d.nodeName) != null && t.includes("-")) && (globalThis.customElements.upgrade(d), a = "observedAttributes" in d.constructor ? d.constructor.observedAttributes : void 0), Array.isArray(a) ? a.filter((i) => js.includes(i)) : [];
|
|
1329
|
-
}, Cn = document.createElement("template");
|
|
1324
|
+
const Cn = document.createElement("template");
|
|
1330
1325
|
Cn.innerHTML = /* HTML */
|
|
1331
1326
|
`
|
|
1332
1327
|
<style>
|
|
@@ -1976,7 +1971,7 @@ const fe = class fe extends HTMLElement {
|
|
|
1976
1971
|
}
|
|
1977
1972
|
}
|
|
1978
1973
|
connectListener(t) {
|
|
1979
|
-
|
|
1974
|
+
Ks(t).forEach((s) => {
|
|
1980
1975
|
var p, u;
|
|
1981
1976
|
const o = e(this, it).get(s);
|
|
1982
1977
|
switch (o ? o.push(t) : e(this, it).set(s, [t]), s) {
|
|
@@ -2004,7 +1999,7 @@ const fe = class fe extends HTMLElement {
|
|
|
2004
1999
|
});
|
|
2005
2000
|
}
|
|
2006
2001
|
disconnectListener(t) {
|
|
2007
|
-
|
|
2002
|
+
Ks(t).forEach((s) => {
|
|
2008
2003
|
const o = e(this, it).get(s);
|
|
2009
2004
|
o && e(this, it).set(
|
|
2010
2005
|
s,
|
|
@@ -2162,9 +2157,9 @@ Ri = new WeakMap(), it = new WeakMap(), Oe = new WeakMap(), gt = new WeakMap(),
|
|
|
2162
2157
|
var i;
|
|
2163
2158
|
if ((i = e(this, F)) == null || i.unload(), !Yr()) {
|
|
2164
2159
|
if (t.audioNode)
|
|
2165
|
-
c(this, F, new
|
|
2160
|
+
c(this, F, new qs(t.audioNode));
|
|
2166
2161
|
else if (t.mediaElement instanceof HTMLMediaElement)
|
|
2167
|
-
c(this, F, new
|
|
2162
|
+
c(this, F, new qs(t.mediaElement));
|
|
2168
2163
|
else
|
|
2169
2164
|
return;
|
|
2170
2165
|
e(this, F).on("on decibel change", (s) => {
|
|
@@ -2875,10 +2870,7 @@ Ye = new WeakMap(), se = new WeakMap(), yt = new WeakMap(), Pt = new WeakMap(),
|
|
|
2875
2870
|
}, ys = function() {
|
|
2876
2871
|
r(this, H, As).call(this), c(this, kt, !0);
|
|
2877
2872
|
};
|
|
2878
|
-
const Co =
|
|
2879
|
-
"/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/",
|
|
2880
|
-
"i"
|
|
2881
|
-
), Lo = navigator.userAgent.toLowerCase(), To = Co.test(Lo), xo = (d) => Le.observedAttributes.includes(d), nr = (
|
|
2873
|
+
const Co = /\/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, Lo = navigator.userAgent.toLowerCase(), To = Co.test(Lo), xo = (d) => Le.observedAttributes.includes(d), nr = (
|
|
2882
2874
|
/* HTML */
|
|
2883
2875
|
`
|
|
2884
2876
|
<style>
|