@vindral/web-sdk 4.8.2-4-gf1691d4a → 4.8.2-5-gd35674f2
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/{D1kpe8tT.js → 2sSTdNyC.js} +1 -1
- package/{DyoeX7Rz.js → B_i2EMYc.js} +245 -244
- package/{D40eQS8l.js → BylishAR.js} +3 -2
- package/{BsfwXDui.js → CFqytvUK.js} +1 -27
- package/{DfSvr6bR.js → CKobxU84.js} +1974 -1973
- package/{Crmp_GOH.js → CPClVQLz.js} +844 -843
- package/{BdMchGeH.js → CR_-dzIp.js} +1 -1
- package/CXMDq12B.js +27 -0
- package/{BEFbWAJ5.js → CZXxMdn3.js} +10 -9
- package/{DrWNJwZx.js → DJNS7hc2.js} +1 -1
- package/{Ct8GqCxq.js → DiWlRJyv.js} +18315 -15889
- package/{Z7yt7Imj.js → Dom0pf6K.js} +8 -7
- package/{Bg5VLlmK.js → Wh46-8RX.js} +1 -1
- package/api-client.js +1 -1
- package/{CoLAnqGB.js → c9cSjfkk.js} +2 -2
- package/cast-sender.js +1 -1
- package/core.js +1 -1
- package/{CLvW8aae.js → daJ21AEO.js} +3 -2
- package/{C2hzXxnL.js → gwIcUlXg.js} +8 -7
- package/legacy.es.js +1 -1
- package/legacy.umd.js +1 -1
- package/package.json +1 -1
- package/player.js +3 -3
- package/vindral-player-component.js +2 -2
- /package/{Tj9xPXja.js → DZ6JmYgs.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./CFqytvUK.js";
|
|
2
2
|
import { i as t, n, t as r } from "./DSw1XhvD.js";
|
|
3
3
|
//#region ../../libs/utils/src/BitReader.ts
|
|
4
4
|
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = class {
|
package/CXMDq12B.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/asyncToGenerator.js
|
|
2
|
+
function e(e, t, n, r, i, a, o) {
|
|
3
|
+
try {
|
|
4
|
+
var s = e[a](o), c = s.value;
|
|
5
|
+
} catch (e) {
|
|
6
|
+
n(e);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
10
|
+
}
|
|
11
|
+
function t(t) {
|
|
12
|
+
return function() {
|
|
13
|
+
var n = this, r = arguments;
|
|
14
|
+
return new Promise(function(i, a) {
|
|
15
|
+
var o = t.apply(n, r);
|
|
16
|
+
function s(t) {
|
|
17
|
+
e(o, i, a, s, c, "next", t);
|
|
18
|
+
}
|
|
19
|
+
function c(t) {
|
|
20
|
+
e(o, i, a, s, c, "throw", t);
|
|
21
|
+
}
|
|
22
|
+
s(void 0);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
1
|
+
import { t as e } from "./CFqytvUK.js";
|
|
2
|
+
import { t } from "./CuYn2z5X.js";
|
|
3
|
+
import { t as n } from "./DJNS7hc2.js";
|
|
4
|
+
import { t as r } from "./CXMDq12B.js";
|
|
5
|
+
import { t as i } from "./2sSTdNyC.js";
|
|
5
6
|
//#region ../../libs/wasm-decoders/src/opus/wasm/opus.js
|
|
6
7
|
var a = (function() {
|
|
7
8
|
var e = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
@@ -220,7 +221,7 @@ var a = (function() {
|
|
|
220
221
|
}
|
|
221
222
|
};
|
|
222
223
|
o = c, e(c, "MAX_OPUS_BUFFER", 16384), e(c, "MAX_SAMPLES", 6 * 960), e(c, "create", function() {
|
|
223
|
-
var e =
|
|
224
|
+
var e = r(function* (e, t) {
|
|
224
225
|
return new o(yield a(), e, t);
|
|
225
226
|
});
|
|
226
227
|
return function(t, n) {
|
|
@@ -230,8 +231,8 @@ o = c, e(c, "MAX_OPUS_BUFFER", 16384), e(c, "MAX_SAMPLES", 6 * 960), e(c, "creat
|
|
|
230
231
|
//#endregion
|
|
231
232
|
//#region ../../libs/web-sdk/src/decoders/OpusDecoderContext.ts
|
|
232
233
|
var l, u = class {
|
|
233
|
-
constructor(
|
|
234
|
-
e(this, "decodedSamples", []), e(this, "decoder", void 0), e(this, "errors", new
|
|
234
|
+
constructor(r) {
|
|
235
|
+
e(this, "decodedSamples", []), e(this, "decoder", void 0), e(this, "errors", new n(10)), e(this, "unload", () => {
|
|
235
236
|
this.decoder.unload();
|
|
236
237
|
}), e(this, "enqueue", (e) => {
|
|
237
238
|
try {
|
|
@@ -250,14 +251,14 @@ var l, u = class {
|
|
|
250
251
|
} catch (e) {
|
|
251
252
|
e instanceof Error && this.errors.push(e);
|
|
252
253
|
}
|
|
253
|
-
}), e(this, "initSegment",
|
|
254
|
+
}), e(this, "initSegment", t), e(this, "take", () => this.decodedSamples.shift()), this.decoder = r;
|
|
254
255
|
}
|
|
255
256
|
error() {
|
|
256
257
|
return this.errors.pop();
|
|
257
258
|
}
|
|
258
259
|
};
|
|
259
260
|
l = u, e(u, "create", function() {
|
|
260
|
-
var e =
|
|
261
|
+
var e = r(function* (e, t) {
|
|
261
262
|
return new l(yield c.create(e, t));
|
|
262
263
|
});
|
|
263
264
|
return function(t, n) {
|