@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,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { t as e } from "./CFqytvUK.js";
|
|
2
|
+
import { t } from "./DJNS7hc2.js";
|
|
3
|
+
import { t as n } from "./CXMDq12B.js";
|
|
4
|
+
import { i as r, n as i, t as a } from "./CR_-dzIp.js";
|
|
5
|
+
import { t as o } from "./2sSTdNyC.js";
|
|
5
6
|
//#region ../../libs/web-sdk/src/decoders/WebCodecsAudioDecoderContext.ts
|
|
6
7
|
var s, c = globalThis, l = (e) => {
|
|
7
8
|
var t, n;
|
|
@@ -22,7 +23,7 @@ var s, c = globalThis, l = (e) => {
|
|
|
22
23
|
}, u = class {
|
|
23
24
|
constructor(s) {
|
|
24
25
|
var c = this;
|
|
25
|
-
e(this, "decodedSamples", []), e(this, "decoder", null), e(this, "logger", void 0), e(this, "initSegments", /* @__PURE__ */ new Map()), e(this, "previousSample", void 0), e(this, "previousCodec", void 0), e(this, "pendingSamples", new
|
|
26
|
+
e(this, "decodedSamples", []), e(this, "decoder", null), e(this, "logger", void 0), e(this, "initSegments", /* @__PURE__ */ new Map()), e(this, "previousSample", void 0), e(this, "previousCodec", void 0), e(this, "pendingSamples", new t(Infinity)), e(this, "priming", { remaining: 0 }), e(this, "sentCount", 0), e(this, "doneCount", 0), e(this, "errors", new t(10)), e(this, "resetDecoderState", () => {
|
|
26
27
|
this.pendingSamples.clear(), this.doneCount = this.sentCount, this.previousSample = void 0, this.previousCodec = void 0;
|
|
27
28
|
}), e(this, "dropUndecoded", (e) => {
|
|
28
29
|
for (; this.doneCount < e && this.pendingSamples.pop();) this.doneCount++;
|
|
@@ -131,7 +132,7 @@ var s, c = globalThis, l = (e) => {
|
|
|
131
132
|
} catch (e) {
|
|
132
133
|
this.logger.error("Failed to decode chunk:", e), this.pendingSamples.popLast(), this.sentCount--, r.state === "closed" && (this.resetDecoderState(), this.ensureDecoder());
|
|
133
134
|
}
|
|
134
|
-
}), e(this, "flush",
|
|
135
|
+
}), e(this, "flush", n(function* () {
|
|
135
136
|
if (c.decoder && c.decoder.state === "configured") try {
|
|
136
137
|
let e = c.sentCount;
|
|
137
138
|
yield c.decoder.flush(), c.dropUndecoded(e);
|
|
@@ -142,7 +143,7 @@ var s, c = globalThis, l = (e) => {
|
|
|
142
143
|
}
|
|
143
144
|
};
|
|
144
145
|
s = u, e(u, "isSupported", () => c.AudioDecoder !== void 0), e(u, "create", function() {
|
|
145
|
-
var e =
|
|
146
|
+
var e = n(function* (e) {
|
|
146
147
|
if (!s.isSupported()) throw Error("WebCodecs AudioDecoder is not supported in this environment");
|
|
147
148
|
return new s(e);
|
|
148
149
|
});
|
package/api-client.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./BylishAR.js";
|
|
2
2
|
export { e as ApiClient };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./CFqytvUK.js";
|
|
2
2
|
import { i as t, n, r, t as i } from "./DSw1XhvD.js";
|
|
3
|
-
import { t as a } from "./
|
|
3
|
+
import { t as a } from "./DZ6JmYgs.js";
|
|
4
4
|
//#region ../../libs/utils/src/formatting.ts
|
|
5
5
|
var o = 1e3, s = o * 1e3, c = s * 1e3, l = (e, t, n) => e % t === 0 ? e / t : (e / t).toFixed(n), u = (e, t = 1) => e >= c ? `${l(e, c, t)} Gbit/s` : e >= s ? `${l(e, s, t)} Mbit/s` : e >= o ? `${l(e, o, t)} Kbit/s` : `${e} bit/s`, d = ({ width: e, height: t }) => `${e}x${t}`, f = {
|
|
6
6
|
PAUSED: "paused",
|
package/cast-sender.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./daJ21AEO.js";
|
|
2
2
|
export { e as CastSender };
|
package/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./CKobxU84.js";
|
|
2
2
|
export { s as AUTHENTICATION_EXPIRED_CODE, i as AUTHENTICATION_FAILED_CODE, e as CHANNEL_NOT_FOUND_CODE, o as CHANNEL_NOT_LIVE_CODE, c as CONNECTION_FAILED_AFTER_RETRIES_CODE, t as CONNECTION_FAILED_CODE, a as DISCONNECTED_BY_EDGE, u as INACTIVITY_CODE, n as NO_INCOMING_DATA, l as Vindral, r as VindralError };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./CFqytvUK.js";
|
|
2
|
+
import { t } from "./CXMDq12B.js";
|
|
3
|
+
import { n, r } from "./Wh46-8RX.js";
|
|
3
4
|
//#region ../../libs/cast-sender/src/CastSender.ts
|
|
4
5
|
var i = 1e4, a = "CastSender was unloaded before the Google Cast SDK finished initializing", o = class extends r {
|
|
5
6
|
constructor(r) {
|