@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.
@@ -1,7 +1,8 @@
1
- import { n as e, t } from "./BsfwXDui.js";
2
- import { t as n } from "./DrWNJwZx.js";
3
- import { i as r, n as i, t as a } from "./BdMchGeH.js";
4
- import { t as o } from "./D1kpe8tT.js";
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 n(Infinity)), e(this, "priming", { remaining: 0 }), e(this, "sentCount", 0), e(this, "doneCount", 0), e(this, "errors", new n(10)), e(this, "resetDecoderState", () => {
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", t(function* () {
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 = t(function* (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
  });
@@ -1,4 +1,4 @@
1
- import { n as e } from "./BsfwXDui.js";
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/Emitter.ts
4
4
  var i = class {
package/api-client.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./D40eQS8l.js";
1
+ import { t as e } from "./BylishAR.js";
2
2
  export { e as ApiClient };
@@ -1,6 +1,6 @@
1
- import { n as e } from "./BsfwXDui.js";
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 "./Tj9xPXja.js";
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 "./CLvW8aae.js";
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 "./DfSvr6bR.js";
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 { n as e, t } from "./BsfwXDui.js";
2
- import { n, r } from "./Bg5VLlmK.js";
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) {