@vindral/web-sdk 4.2.0-18-gae9be941 → 4.2.0-19-ga54422d4
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/{BDGPzaGj.js → C46SvlFM.js} +1 -1
- package/{BRQKAfSC.js → C_kTAAIj.js} +5 -5
- package/{Bm-cshdP.js → Cug44nXk.js} +14 -11
- package/D8EqUvsN.js +166 -0
- package/{BQPePwt2.js → De8D3gGg.js} +1 -1
- package/DrWNJwZx.js +35 -0
- package/core.js +1 -1
- package/legacy.es.js +41 -16
- package/legacy.umd.js +50 -21
- package/package.json +1 -1
- package/player.js +2 -2
- package/vindral-player-component.js +2 -2
- package/B4Xt-UHG.js +0 -13
- package/D2u3dh0E.js +0 -166
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./
|
|
2
|
+
import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./C_kTAAIj.js";
|
|
3
3
|
import { M as le } from "./C01DcfYu.js";
|
|
4
4
|
import { a as d, i as f, n as p, r as m, t as h } from "./B7hT-BKr.js";
|
|
5
5
|
import { n as ue, t as de } from "./B5bZayjf.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
2
|
import { A as n, C as r, D as i, E as a, M as o, O as s, S as c, T as l, _ as u, b as d, d as f, f as p, g as m, h, j as ee, k as te, m as ne, p as re, u as g, v as ie, w as ae, x as oe, y as se } from "./C01DcfYu.js";
|
|
3
|
-
import { t as _ } from "./
|
|
3
|
+
import { t as _ } from "./DrWNJwZx.js";
|
|
4
4
|
import { a as v, i as y, n as b, r as x, t as S } from "./B7hT-BKr.js";
|
|
5
5
|
import { a as ce, c as le, i as ue, l as de, n as fe, o as pe, r as me, s as he, t as ge } from "./B5bZayjf.js";
|
|
6
6
|
import { t as _e } from "./FYiEDBC4.js";
|
|
@@ -8130,7 +8130,7 @@ var jg = 5, Mg = 100, Ng = 1e3, Pg = class r {
|
|
|
8130
8130
|
case "audio": {
|
|
8131
8131
|
let r, a, o = !1;
|
|
8132
8132
|
if (l) {
|
|
8133
|
-
let { WebCodecsAudioDecoderContext: t } = yield import("./
|
|
8133
|
+
let { WebCodecsAudioDecoderContext: t } = yield import("./Cug44nXk.js");
|
|
8134
8134
|
if (o = t.isSupported(), o) try {
|
|
8135
8135
|
r = yield t.create(i.createContext("WebCodecsAudio")), m = !0;
|
|
8136
8136
|
} catch (t) {
|
|
@@ -8141,7 +8141,7 @@ var jg = 5, Mg = 100, Ng = 1e3, Pg = class r {
|
|
|
8141
8141
|
}
|
|
8142
8142
|
}
|
|
8143
8143
|
if (!r) if (e.codec === "opus") {
|
|
8144
|
-
let { OpusDecoderContext: e } = yield import("./
|
|
8144
|
+
let { OpusDecoderContext: e } = yield import("./De8D3gGg.js");
|
|
8145
8145
|
r = yield e.create(48e3, 2);
|
|
8146
8146
|
} else {
|
|
8147
8147
|
let t = l ? a ? `WebCodecs audio decoder initialization failed: ${a.message}` : o ? "WebCodecs audio decoder could not be initialized." : "WebCodecs AudioDecoder API is not supported in this environment." : "WebCodecs audio decoding is disabled.";
|
|
@@ -8157,7 +8157,7 @@ var jg = 5, Mg = 100, Ng = 1e3, Pg = class r {
|
|
|
8157
8157
|
break;
|
|
8158
8158
|
}
|
|
8159
8159
|
case "video": {
|
|
8160
|
-
let { VideoDecoderWorkerContext: n } = yield import("./
|
|
8160
|
+
let { VideoDecoderWorkerContext: n } = yield import("./D8EqUvsN.js"), r = yield n.create(i.createContext("VideoDecoderWorker"), a, c, l, u, d, () => s.currentTime);
|
|
8161
8161
|
p = r.isWebCodecs, h = r.usingOffscreenCanvas, t.set(e.type, {
|
|
8162
8162
|
buffer: [],
|
|
8163
8163
|
decoderContext: r,
|
|
@@ -10528,7 +10528,7 @@ var Z_ = class {
|
|
|
10528
10528
|
let e = this.modules.canvasModule instanceof a_ ? !0 : void 0;
|
|
10529
10529
|
return C({
|
|
10530
10530
|
uptime: Date.now() - this.createdAt,
|
|
10531
|
-
version: "4.2.0-
|
|
10531
|
+
version: "4.2.0-19-ga54422d4",
|
|
10532
10532
|
clientId: this.clientId,
|
|
10533
10533
|
sessionId: this.sessionId,
|
|
10534
10534
|
channelId: this.channelId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./BsfwXDui.js";
|
|
2
|
-
import { t as n } from "./
|
|
2
|
+
import { t as n } from "./DrWNJwZx.js";
|
|
3
3
|
import { t as r } from "./RxoWWyzp.js";
|
|
4
4
|
import { i, n as a, t as o } from "./Bt-ONXfO.js";
|
|
5
5
|
//#region ../../libs/web-sdk/src/decoders/PendingSampleMap.ts
|
|
@@ -8,27 +8,30 @@ var s = class {
|
|
|
8
8
|
e(this, "map", /* @__PURE__ */ new Map());
|
|
9
9
|
}
|
|
10
10
|
enqueue(e, t) {
|
|
11
|
-
let
|
|
12
|
-
|
|
11
|
+
let r = this.map.get(e);
|
|
12
|
+
if (r) r.push(t);
|
|
13
|
+
else {
|
|
14
|
+
let r = new n(Infinity);
|
|
15
|
+
r.push(t), this.map.set(e, r);
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
dequeue(e) {
|
|
15
19
|
let t = this.map.get(e);
|
|
16
|
-
if (t
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
+
if (!t) return;
|
|
21
|
+
let n = t.pop();
|
|
22
|
+
return t.isEmpty() && this.map.delete(e), n;
|
|
20
23
|
}
|
|
21
24
|
dequeueWithFallback(e) {
|
|
22
25
|
let t = this.dequeue(e);
|
|
23
26
|
if (t !== void 0) return t;
|
|
24
|
-
for (let [e, t] of this.map)
|
|
25
|
-
let n = t.
|
|
26
|
-
|
|
27
|
+
for (let [e, t] of this.map) {
|
|
28
|
+
let n = t.pop();
|
|
29
|
+
if (t.isEmpty() && this.map.delete(e), n !== void 0) return n;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
removeLast(e) {
|
|
30
33
|
let t = this.map.get(e);
|
|
31
|
-
|
|
34
|
+
t && (t.popLast(), t.isEmpty() && this.map.delete(e));
|
|
32
35
|
}
|
|
33
36
|
clear() {
|
|
34
37
|
this.map.clear();
|