@vindral/web-sdk 4.8.2-1-gaf59eb9e → 4.8.2-10-g2eaf67d3
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/CG3eQNjj.js +196 -0
- package/{Bo90C4i_.js → CPv-eJJ_.js} +1545 -1548
- 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.d.ts +8 -0
- package/core.js +1 -1
- package/{CLvW8aae.js → daJ21AEO.js} +3 -2
- package/{UL5Z8kzc.js → iEs3KMee.js} +1986 -1989
- package/legacy.d.ts +8 -0
- package/legacy.es.js +169 -173
- package/legacy.umd.js +106 -106
- package/package.json +1 -1
- package/player.d.ts +8 -0
- package/player.js +3 -3
- package/react.d.ts +8 -0
- package/vindral-player-component.js +2 -2
- package/C2hzXxnL.js +0 -195
- /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.d.ts
CHANGED
|
@@ -1264,6 +1264,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1264
1264
|
private offscreenCanvasElement?;
|
|
1265
1265
|
private webCodecsRenditionSupport;
|
|
1266
1266
|
private hasCalledConnect;
|
|
1267
|
+
/** The next join is a rejoin after congestion or fatal QoS, which asks for a short burst. */
|
|
1268
|
+
private shortBurstRejoin;
|
|
1267
1269
|
/** The last upgrade check held, so the hold is logged once. */
|
|
1268
1270
|
private upgradeHeld;
|
|
1269
1271
|
private hasRequestedAudioSession;
|
|
@@ -1585,6 +1587,12 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1585
1587
|
* since another backlog or stall costs more than a few seconds at low quality.
|
|
1586
1588
|
*/
|
|
1587
1589
|
private lowerTargetForRejoin;
|
|
1590
|
+
/**
|
|
1591
|
+
* The join burst: the buffer target, or 0 when bursts are off. A link too thin for the target's burst, or a rejoin
|
|
1592
|
+
* after congestion or fatal QoS, gets a short burst instead, so it starts in the edge's live group without
|
|
1593
|
+
* resending history into a link that can't take it.
|
|
1594
|
+
*/
|
|
1595
|
+
private joinBurstMs;
|
|
1588
1596
|
private onPingTimeout;
|
|
1589
1597
|
private emitLanguagesIfChanged;
|
|
1590
1598
|
private updateTextTracks;
|
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 "./iEs3KMee.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) {
|