@vindral/web-sdk 4.1.2-2-g81b4d14f → 4.1.2-3-g38090293
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/{D5RXPeL0.js → BbmtbPyU.js} +26 -20
- package/C8tavA1t.js +125 -0
- package/{D6oEhqNi.js → CtZ07NBI.js} +9 -9
- package/{hRzek83o.js → DP53RvxV.js} +3 -3
- package/api-client.js +1 -1
- package/core.js +1 -1
- package/legacy.es.js +7329 -7325
- package/legacy.umd.js +9 -9
- package/package.json +1 -1
- package/player.js +4 -4
- package/BKQfyHyd.js +0 -127
- package/style.css +0 -1
|
@@ -95,8 +95,14 @@ var f = (s, e, t) => new Promise((i, n) => {
|
|
|
95
95
|
var Ne = (s, e, t) => {
|
|
96
96
|
if (e != null) {
|
|
97
97
|
typeof e != "object" && typeof e != "function" && kt("Object expected");
|
|
98
|
-
var i;
|
|
99
|
-
t && (i = e[ht("asyncDispose")]), i === void 0 && (i = e[ht("dispose")]), typeof i != "function" && kt("Object not disposable"),
|
|
98
|
+
var i, n;
|
|
99
|
+
t && (i = e[ht("asyncDispose")]), i === void 0 && (i = e[ht("dispose")], t && (n = i)), typeof i != "function" && kt("Object not disposable"), n && (i = function() {
|
|
100
|
+
try {
|
|
101
|
+
n.call(this);
|
|
102
|
+
} catch (o) {
|
|
103
|
+
return Promise.reject(o);
|
|
104
|
+
}
|
|
105
|
+
}), s.push([t, i, e]);
|
|
100
106
|
} else t && s.push([t]);
|
|
101
107
|
return e;
|
|
102
108
|
}, Ve = (s, e, t) => {
|
|
@@ -115,7 +121,7 @@ var Ne = (s, e, t) => {
|
|
|
115
121
|
return o();
|
|
116
122
|
};
|
|
117
123
|
import { E as bi } from "./Bx7s5QdT.js";
|
|
118
|
-
import { a as Xe, p as Au, i as wu, c as om, b as cm, A as hm, d as dm, t as um, e as lm } from "./
|
|
124
|
+
import { a as Xe, p as Au, i as wu, c as om, b as cm, A as hm, d as dm, t as um, e as lm } from "./DP53RvxV.js";
|
|
119
125
|
class yd {
|
|
120
126
|
constructor(e) {
|
|
121
127
|
r(this, "maxSize", 0);
|
|
@@ -854,11 +860,11 @@ function Tu(s) {
|
|
|
854
860
|
const Td = () => {
|
|
855
861
|
const s = [...Array(256).keys()].map((t) => t.toString(16).padStart(2, "0")), e = crypto.getRandomValues(new Uint8Array(16));
|
|
856
862
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, [...e.entries()].map(([t, i]) => [4, 6, 8, 10].includes(t) ? `-${s[i]}` : s[i]).join("");
|
|
857
|
-
}, gs = (s) => f(
|
|
863
|
+
}, gs = (s) => f(null, null, function* () {
|
|
858
864
|
return new Promise((e) => setTimeout(e, s));
|
|
859
|
-
}), id = (t, ...i) => f(
|
|
865
|
+
}), id = (t, ...i) => f(null, [t, ...i], function* (s, e = new Error("Timeout")) {
|
|
860
866
|
return new Promise((n, o) => setTimeout(() => o(e), s));
|
|
861
|
-
}), Rm = (s, e) => f(
|
|
867
|
+
}), Rm = (s, e) => f(null, null, function* () {
|
|
862
868
|
throw yield s, new Error(e);
|
|
863
869
|
}), fs = (s) => "width" in s && typeof s.width == "number", ps = (s) => "sampleRate" in s && typeof s.sampleRate == "number", Ui = (s) => {
|
|
864
870
|
switch (s.codec) {
|
|
@@ -1037,10 +1043,10 @@ const qm = (s, e) => new P(
|
|
|
1037
1043
|
keySystem: "org.w3.clearkey",
|
|
1038
1044
|
supportedConfig: zc
|
|
1039
1045
|
}
|
|
1040
|
-
}, Ru = (s, e) => f(
|
|
1046
|
+
}, Ru = (s, e) => f(null, null, function* () {
|
|
1041
1047
|
return navigator.requestMediaKeySystemAccess(s, [e]).catch(() => {
|
|
1042
1048
|
});
|
|
1043
|
-
}), Pd = (s, e, t, i, n, o) => f(
|
|
1049
|
+
}), Pd = (s, e, t, i, n, o) => f(null, null, function* () {
|
|
1044
1050
|
let c;
|
|
1045
1051
|
for (const h of i) {
|
|
1046
1052
|
const d = t == null ? void 0 : t.map((p) => F(v({}, p), {
|
|
@@ -1055,7 +1061,7 @@ const qm = (s, e) => new P(
|
|
|
1055
1061
|
c = d;
|
|
1056
1062
|
}
|
|
1057
1063
|
return c;
|
|
1058
|
-
}), hf = (s, e, t, i) => f(
|
|
1064
|
+
}), hf = (s, e, t, i) => f(null, null, function* () {
|
|
1059
1065
|
const { keySystem: n, supportedConfig: o } = cf[s], { initDataTypes: c, videoCapabilities: h, audioCapabilities: d } = o, m = i == null ? void 0 : i[s], p = (m == null ? void 0 : m.videoRobustness) || Ud[s], g = (m == null ? void 0 : m.audioRobustness) || Ud[s], [w, b] = yield Promise.all([
|
|
1060
1066
|
Pd(
|
|
1061
1067
|
n,
|
|
@@ -1079,7 +1085,7 @@ const qm = (s, e) => new P(
|
|
|
1079
1085
|
videoCapabilities: w,
|
|
1080
1086
|
audioCapabilities: b
|
|
1081
1087
|
});
|
|
1082
|
-
}), df = (s, e, t, i) => f(
|
|
1088
|
+
}), df = (s, e, t, i) => f(null, null, function* () {
|
|
1083
1089
|
let n;
|
|
1084
1090
|
for (const o of s)
|
|
1085
1091
|
if (n = yield hf(o, e, t, i), n)
|
|
@@ -1468,7 +1474,7 @@ const bf = 7, yf = 8, vf = (s) => {
|
|
|
1468
1474
|
}), { sequenceParameterSets: e, pictureParameterSets: t };
|
|
1469
1475
|
}, If = (s) => {
|
|
1470
1476
|
var S;
|
|
1471
|
-
const e = new DataView(s), t = e.getUint8(1), i = e.getUint8(2), n = e.getUint8(3), o = new yu(s,
|
|
1477
|
+
const e = new DataView(s), t = e.getUint8(1), i = e.getUint8(2), n = e.getUint8(3), o = new yu(s, 32);
|
|
1472
1478
|
o.readUnsignedExpGolomb();
|
|
1473
1479
|
let c = 1;
|
|
1474
1480
|
switch (t) {
|
|
@@ -1542,7 +1548,7 @@ const bf = 7, yf = 8, vf = (s) => {
|
|
|
1542
1548
|
], kf = 184549376;
|
|
1543
1549
|
function Bf(s) {
|
|
1544
1550
|
const e = new zn(s), t = Rf(e);
|
|
1545
|
-
t.flags & kf && Uf(e);
|
|
1551
|
+
(t.flags & kf) !== 0 && Uf(e);
|
|
1546
1552
|
const i = Pf(e);
|
|
1547
1553
|
if (String.fromCharCode(...i.frameId) === "TXXX") {
|
|
1548
1554
|
const o = new zn(e.readBytes(i.size));
|
|
@@ -8109,7 +8115,7 @@ class ad {
|
|
|
8109
8115
|
for (const h of i)
|
|
8110
8116
|
switch (h.type) {
|
|
8111
8117
|
case "audio": {
|
|
8112
|
-
const { OpusDecoderContext: d } = yield import("./
|
|
8118
|
+
const { OpusDecoderContext: d } = yield import("./CtZ07NBI.js");
|
|
8113
8119
|
c.set(h.type, {
|
|
8114
8120
|
buffer: [],
|
|
8115
8121
|
decoderContext: yield d.create(48e3, 2),
|
|
@@ -8120,7 +8126,7 @@ class ad {
|
|
|
8120
8126
|
break;
|
|
8121
8127
|
}
|
|
8122
8128
|
case "video": {
|
|
8123
|
-
const { H264DecoderWorkerContext: d } = yield import("./
|
|
8129
|
+
const { H264DecoderWorkerContext: d } = yield import("./C8tavA1t.js");
|
|
8124
8130
|
c.set(h.type, {
|
|
8125
8131
|
buffer: [],
|
|
8126
8132
|
decoderContext: yield d.create(o),
|
|
@@ -9651,7 +9657,7 @@ const Jd = (s, e) => {
|
|
|
9651
9657
|
const t = s.renditionId !== e.renditionId, i = s.channelId !== e.channelId, n = ((h = s.timestamp) != null ? h : 0) > e.timestamp, o = s.type === "video" && e.type === "video" && "levelIdc" in s && "levelIdc" in e && s.levelIdc !== e.levelIdc;
|
|
9652
9658
|
let c = !1;
|
|
9653
9659
|
return s.type === "video" && e.type === "video" && "width" in s && "width" in e && (c = e.width !== s.width || e.height !== s.height), i || t || n || c || o;
|
|
9654
|
-
}, qA = (s, e, t) => f(
|
|
9660
|
+
}, qA = (s, e, t) => f(null, null, function* () {
|
|
9655
9661
|
for (s.isWorkingOnPendingSamples = !0; s.pendingSamples.length > 0; ) {
|
|
9656
9662
|
const i = [];
|
|
9657
9663
|
let n = 0;
|
|
@@ -9703,7 +9709,7 @@ const Jd = (s, e) => {
|
|
|
9703
9709
|
r(this, "requestStandardPictureInPicture", () => f(this, null, function* () {
|
|
9704
9710
|
return yield this.element.requestPictureInPicture();
|
|
9705
9711
|
}));
|
|
9706
|
-
r(this, "exitStandardPictureInPicture", () => f(
|
|
9712
|
+
r(this, "exitStandardPictureInPicture", () => f(null, null, function* () {
|
|
9707
9713
|
return yield document.exitPictureInPicture();
|
|
9708
9714
|
}));
|
|
9709
9715
|
r(this, "isStandardPictureInPictureSupported", () => !!this.element && !!this.element.requestPictureInPicture && !!document.pictureInPictureEnabled);
|
|
@@ -10606,11 +10612,11 @@ class sw {
|
|
|
10606
10612
|
deviceMemory: navigator.deviceMemory
|
|
10607
10613
|
};
|
|
10608
10614
|
if (self.navigator.userAgentData && this.highEntropyValues) {
|
|
10609
|
-
const
|
|
10615
|
+
const w = [...(c = this.highEntropyValues.brands) != null ? c : []];
|
|
10610
10616
|
w.sort((T, U) => T.brand.localeCompare(U.brand));
|
|
10611
10617
|
const b = [...(h = this.highEntropyValues.fullVersionList) != null ? h : []];
|
|
10612
10618
|
b.sort((T, U) => T.brand.localeCompare(U.brand));
|
|
10613
|
-
const S = b.map((T) => T.version), x = w.map((T) => T.brand), R = w.map((T) => T.version), M = parseInt((m = (d = this.highEntropyValues.platformVersion) == null ? void 0 : d.split(".")[0]) != null ? m :
|
|
10619
|
+
const S = b.map((T) => T.version), x = w.map((T) => T.brand), R = w.map((T) => T.version), M = parseInt((m = (d = this.highEntropyValues.platformVersion) == null ? void 0 : d.split(".")[0]) != null ? m : "1");
|
|
10614
10620
|
return v({
|
|
10615
10621
|
userAgentLegacy: window.navigator.userAgent,
|
|
10616
10622
|
ua: {
|
|
@@ -10622,7 +10628,7 @@ class sw {
|
|
|
10622
10628
|
device: this.highEntropyValues.model || "Other",
|
|
10623
10629
|
os: {
|
|
10624
10630
|
family: this.highEntropyValues.platform || "Other",
|
|
10625
|
-
version: (p = this.highEntropyValues.platformVersion) != null ? p :
|
|
10631
|
+
version: (p = this.highEntropyValues.platformVersion) != null ? p : "1",
|
|
10626
10632
|
major_version: Number.isFinite(M) ? M : 0
|
|
10627
10633
|
}
|
|
10628
10634
|
}
|
|
@@ -10989,7 +10995,7 @@ const Ge = class Ge extends bi {
|
|
|
10989
10995
|
const t = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
|
|
10990
10996
|
return v({
|
|
10991
10997
|
uptime: Date.now() - this.createdAt,
|
|
10992
|
-
version: "4.1.2-
|
|
10998
|
+
version: "4.1.2-3-g38090293",
|
|
10993
10999
|
clientId: this.clientId,
|
|
10994
11000
|
sessionId: this.sessionId,
|
|
10995
11001
|
channelId: this.channelId,
|