@vindral/web-sdk 4.8.2-8-g29a2b957 → 4.8.2-9-gec246501

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,5 +1,5 @@
1
1
  import { t as e } from "./CFqytvUK.js";
2
- import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, b as c, g as l, h as u, k as d, m as f, p as ee, t as te, v as ne, w as re, x as ie, y as ae } from "./B9To_Q7U.js";
2
+ import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, b as c, g as l, h as u, k as d, m as f, p as ee, t as te, v as ne, w as re, x as ie, y as ae } from "./C1ebXKEm.js";
3
3
  import { t as oe } from "./CuYn2z5X.js";
4
4
  import { i as p, n as m, r as h, t as g } from "./DSw1XhvD.js";
5
5
  import { t as _ } from "./CXMDq12B.js";
@@ -8390,7 +8390,7 @@ Av = Fv, e(Fv, "create", (e, t, n) => new Av(e, n, t));
8390
8390
  var Iv = (e, t) => {
8391
8391
  var n, r;
8392
8392
  let i = new URL("/subscribe", e);
8393
- return i.searchParams.append("channelId", t.channelId), i.searchParams.append("sessionId", t.sessionId), i.searchParams.append("clientId", t.clientId), (n = t.audio) != null && n.codec && (i.searchParams.append("audio.bitRate", Math.round(t.audio.bitRate).toString()), i.searchParams.append("audio.codec", t.audio.codec), t.audio.language && i.searchParams.append("audio.language", t.audio.language)), (r = t.video) != null && r.codec && (i.searchParams.append("video.width", t.video.width.toString()), i.searchParams.append("video.height", t.video.height.toString()), i.searchParams.append("video.bitRate", Math.round(t.video.bitRate).toString()), i.searchParams.append("video.codec", t.video.codec)), t.burstMs && i.searchParams.append("burstMs", t.burstMs.toString()), t.channelGroupId && i.searchParams.append("channelGroupId", t.channelGroupId), t.authToken && (i.searchParams.append("auth.token", t.authToken), i.searchParams.append("auth.type", "jwt")), i.toString();
8393
+ return i.searchParams.append("channelId", t.channelId), i.searchParams.append("sessionId", t.sessionId), i.searchParams.append("clientId", t.clientId), (n = t.audio) != null && n.codec && (i.searchParams.append("audio.bitRate", Math.round(t.audio.bitRate).toString()), i.searchParams.append("audio.codec", t.audio.codec), t.audio.language && i.searchParams.append("audio.language", t.audio.language)), (r = t.video) != null && r.codec && (i.searchParams.append("video.width", t.video.width.toString()), i.searchParams.append("video.height", t.video.height.toString()), i.searchParams.append("video.bitRate", Math.round(t.video.bitRate).toString()), i.searchParams.append("video.codec", t.video.codec)), t.burstMs !== void 0 && i.searchParams.append("burstMs", t.burstMs.toString()), t.channelGroupId && i.searchParams.append("channelGroupId", t.channelGroupId), t.authToken && (i.searchParams.append("auth.token", t.authToken), i.searchParams.append("auth.type", "jwt")), i.toString();
8394
8394
  }, Lv = (e) => {
8395
8395
  try {
8396
8396
  return e ? new URL(e).origin : void 0;
@@ -12428,7 +12428,7 @@ var QS = class {
12428
12428
  return this.inFlight.set(e, o), o;
12429
12429
  }), this.logger = t;
12430
12430
  }
12431
- }, gC = 1e4, _C = 300, vC = 3e3, yC = 1e4, bC = 1280 * 720, xC = /* @__PURE__ */ new WeakMap(), SC = /* @__PURE__ */ new WeakMap(), CC = /* @__PURE__ */ new WeakMap(), wC = class t extends te {
12431
+ }, gC = 1e4, _C = 300, vC = 3e3, yC = 1e4, bC = 250, xC = 1280 * 720, SC = /* @__PURE__ */ new WeakMap(), CC = /* @__PURE__ */ new WeakMap(), wC = /* @__PURE__ */ new WeakMap(), TC = class t extends te {
12432
12432
  handleListenerError(e, t) {
12433
12433
  let n = Object.assign(/* @__PURE__ */ Error(`Listener for "${String(t)}" threw`), { cause: e });
12434
12434
  setTimeout(() => {
@@ -12437,7 +12437,7 @@ var QS = class {
12437
12437
  }
12438
12438
  constructor(n) {
12439
12439
  var a, c, u;
12440
- super(), a = this, e(this, "pictureInPicture", void 0), e(this, "drm", void 0), e(this, "browser", We()), e(this, "options", void 0), e(this, "element", void 0), e(this, "playbackSource", void 0), e(this, "emitter", new te()), e(this, "logger", void 0), e(this, "modules", void 0), e(this, "clientIp", void 0), e(this, "sessionId", void 0), e(this, "clientId", sn()), e(this, "_channels", []), e(this, "createdAt", performance.now()), e(this, "offscreenCanvasElement", void 0), e(this, "webCodecsRenditionSupport", void 0), e(this, "hasCalledConnect", !1), e(this, "upgradeHeld", !1), e(this, "hasRequestedAudioSession", !1), e(this, "isUserPaused", !1), e(this, "isMediaElementPaused", !1), e(this, "latestEmittedLanguages", []), e(this, "wakeLock", void 0), e(this, "pool", new re(t.MAX_POOL_SIZE)), e(this, "userAgentInformation", new on()), e(this, "encryptedMediaExtensions", void 0), r(this, xC, 0), r(this, SC, []), e(this, "sampleProcessingSesssions", /* @__PURE__ */ new Map()), e(this, "unbackedSamplesWarned", new fx()), e(this, "unextractableSamplesWarned", new fx()), e(this, "sizes", /* @__PURE__ */ new Map()), e(this, "isSuspended", !0), e(this, "inactivityDisconnectInterval", void 0), e(this, "visiblePauseTimeout", void 0), e(this, "offscreenSubtitleInterval", void 0), r(this, CC, void 0), e(this, "attach", (e) => {
12440
+ super(), a = this, e(this, "pictureInPicture", void 0), e(this, "drm", void 0), e(this, "browser", We()), e(this, "options", void 0), e(this, "element", void 0), e(this, "playbackSource", void 0), e(this, "emitter", new te()), e(this, "logger", void 0), e(this, "modules", void 0), e(this, "clientIp", void 0), e(this, "sessionId", void 0), e(this, "clientId", sn()), e(this, "_channels", []), e(this, "createdAt", performance.now()), e(this, "offscreenCanvasElement", void 0), e(this, "webCodecsRenditionSupport", void 0), e(this, "hasCalledConnect", !1), e(this, "shortBurstRejoin", !1), e(this, "upgradeHeld", !1), e(this, "hasRequestedAudioSession", !1), e(this, "isUserPaused", !1), e(this, "isMediaElementPaused", !1), e(this, "latestEmittedLanguages", []), e(this, "wakeLock", void 0), e(this, "pool", new re(t.MAX_POOL_SIZE)), e(this, "userAgentInformation", new on()), e(this, "encryptedMediaExtensions", void 0), r(this, SC, 0), r(this, CC, []), e(this, "sampleProcessingSesssions", /* @__PURE__ */ new Map()), e(this, "unbackedSamplesWarned", new fx()), e(this, "unextractableSamplesWarned", new fx()), e(this, "sizes", /* @__PURE__ */ new Map()), e(this, "isSuspended", !0), e(this, "inactivityDisconnectInterval", void 0), e(this, "visiblePauseTimeout", void 0), e(this, "offscreenSubtitleInterval", void 0), r(this, wC, void 0), e(this, "attach", (e) => {
12441
12441
  var t;
12442
12442
  (t = this.wakeLock) == null || t.attach(e), e.appendChild(this.element);
12443
12443
  }), e(this, "setElement", (e) => {
@@ -12502,11 +12502,11 @@ var QS = class {
12502
12502
  }), a.modules.adaptivity.updateConfig({ cooldownTime: Math.max(a.options.get("minBufferTime", a.channelId), 2e3) }), a.targetBufferTime = a.options.get("minBufferTime", a.channelId)), a.applyBurstEnabled(a.channelId), a.emit("is live", r.isLive), !r.isLive) throw Xn();
12503
12503
  let l = a.modules.connection.estimatedBandwidth, u = a.modules.subscription.getCurrentSubscription().channelId !== a.channelId;
12504
12504
  a.patchSubscription(r, l), yield a.initializeDecodingModule(), a.resetModules(), a.emit("rendition levels", a.modules.renditions.getRenditionLevels()), a.emit("channels", a.channels), a.emitLanguagesIfChanged(), u && a.emit("channel switch", { channelId: a.channelId }), a.sampleProcessingSesssions.clear();
12505
- let d = a.options.get("burstEnabled", a.channelId) && a.burstFits(l);
12505
+ let d = a.joinBurstMs(l);
12506
12506
  return {
12507
12507
  video: a.targetSubscription.video,
12508
12508
  audio: a.targetSubscription.audio,
12509
- burstMs: d ? a.targetBufferTime : void 0,
12509
+ burstMs: d,
12510
12510
  sessionId: a.sessionId,
12511
12511
  clientId: a.clientId,
12512
12512
  channelId: a.channelId,
@@ -12529,28 +12529,28 @@ var QS = class {
12529
12529
  video: S(S({}, t.video), n.video),
12530
12530
  audio: S(S({}, t.audio), n.audio)
12531
12531
  })), n.audio && this.modules.subscription.setAudioBitRate(n.audio.bitRate), !0);
12532
- }), e(this, "onPingTimeout", () => {
12533
- this.lowerTargetForRejoin() && this.emitter.emit("adapted level");
12532
+ }), e(this, "joinBurstMs", (e) => this.options.get("burstEnabled", this.channelId) ? !this.shortBurstRejoin && this.burstFits(e) ? this.targetBufferTime : Math.min(bC, this.targetBufferTime) : 0), e(this, "onPingTimeout", () => {
12533
+ this.shortBurstRejoin = !0, this.lowerTargetForRejoin() && this.emitter.emit("adapted level");
12534
12534
  }), e(this, "emitLanguagesIfChanged", () => {
12535
12535
  let e = this.modules.renditions.getLanguages(), t = this.latestEmittedLanguages;
12536
12536
  e.length === t.length && e.every((e) => t.includes(e)) || (this.logger.debug("Emitting new languages", { currentLanguages: e }), this.latestEmittedLanguages = e, this.emit("languages", this.latestEmittedLanguages));
12537
12537
  }), e(this, "updateTextTracks", (e) => {
12538
12538
  let t = e.filter((e) => e.codec === "webvtt");
12539
12539
  t.forEach((e) => {
12540
- if (!o(SC, this).find((t) => t.language === e.language)) {
12540
+ if (!o(CC, this).find((t) => t.language === e.language)) {
12541
12541
  if (this.modules.canvasModule) {
12542
12542
  let t = this.modules.canvasModule.textTracks.addTextTrack(e.kind, e.label || e.language || "", e.language || "");
12543
- o(SC, this).push(t);
12543
+ o(CC, this).push(t);
12544
12544
  } else if (this.mediaElement instanceof HTMLVideoElement) {
12545
12545
  let t = this.mediaElement.addTextTrack(e.kind, e.label || e.language, e.language);
12546
- o(SC, this).push(t);
12546
+ o(CC, this).push(t);
12547
12547
  }
12548
12548
  }
12549
12549
  });
12550
- for (let e of o(SC, this)) t.find((t) => t.language === e.language) ? e.mode === "disabled" && (e.mode = "hidden") : e.mode = "disabled";
12550
+ for (let e of o(CC, this)) t.find((t) => t.language === e.language) ? e.mode === "disabled" && (e.mode = "hidden") : e.mode = "disabled";
12551
12551
  this.emit("text tracks", this.textTracks);
12552
12552
  }), e(this, "cleanupTextTracks", (e = this.currentTime - 2e4) => {
12553
- o(SC, this).forEach((t) => {
12553
+ o(CC, this).forEach((t) => {
12554
12554
  if (t.cues) for (let n of Array.from(t.cues)) n.endTime * 1e3 < e - 2e3 && t.removeCue(n);
12555
12555
  });
12556
12556
  }), e(this, "filterRenditions", function() {
@@ -12618,7 +12618,7 @@ var QS = class {
12618
12618
  }), e(this, "burstFits", (e) => {
12619
12619
  var t, n;
12620
12620
  let { video: r, audio: i, channelId: a } = this.modules.subscription.getTargetSubscription(), o = cc(((t = this.modules.renditions.getVideoRenditions(a)) == null ? [] : t).filter((e) => e.codec === r.codec).map((e) => e.bitRate), r.bitRate), s = cc(((n = this.modules.renditions.getAudioRenditions(a)) == null ? [] : n).filter((e) => e.codec === i.codec).filter((e) => !i.language || e.language === i.language).map((e) => e.bitRate), i.bitRate), c = lc(e, o + s);
12621
- return c || this.logger.info("Skipping the join burst: the starting rendition needs more than half the bandwidth", {
12621
+ return c || this.logger.info("Shortening the join burst: the starting rendition needs more than half the bandwidth", {
12622
12622
  estimatedBandwidth: e,
12623
12623
  videoBitRate: o,
12624
12624
  audioBitRate: s
@@ -12732,7 +12732,7 @@ var QS = class {
12732
12732
  (e = a.modules.decoder) == null || e.unload(), a.modules.decoder = p, a.isHiddenWithBackgroundPlayback() && a.modules.decoder.enableBackgroundTimers(), a.modules.decoder.setVideoRenderingEnabled(a.isVideoOnScreen()), a.modules.decoder.load(), a.setupOffscreenSubtitleRouting();
12733
12733
  })), e(this, "capturesCanvasOnWebKit", (e) => !!e && this.browser.platform.isWebKit && this.modules.canvasModule instanceof $x), e(this, "connectWebKitVideoOutput", (e, t) => {
12734
12734
  let n = () => {
12735
- t.setVideoTrack(void 0), this.browser.platform.isIOS && e.setMaxVideoCanvasPixels(bC);
12735
+ t.setVideoTrack(void 0), this.browser.platform.isIOS && e.setMaxVideoCanvasPixels(xC);
12736
12736
  };
12737
12737
  e.onVideoTrackLost((e) => {
12738
12738
  this.logger.warn("Worker video track lost, falling back to canvas capture", { error: e }), n();
@@ -12825,7 +12825,7 @@ var QS = class {
12825
12825
  let e = this.modules.canvasModule instanceof $x ? !0 : void 0;
12826
12826
  return S({
12827
12827
  uptime: this.uptime,
12828
- version: "4.8.2-8-g29a2b957",
12828
+ version: "4.8.2-9-gec246501",
12829
12829
  clientId: this.clientId,
12830
12830
  sessionId: this.sessionId,
12831
12831
  channelId: this.channelId,
@@ -13039,7 +13039,7 @@ var QS = class {
13039
13039
  }), this.emitter.on("buffer state event", this.onBufferEvent), this.emitter.on("playback state", (e) => this.emit("playback state", e)), this.emitter.on("rendition level changed", ({ to: e }) => {
13040
13040
  e && this.emit("rendition level", e);
13041
13041
  }), this.emitter.on("connection state", (e) => {
13042
- this.emit("connection state", e);
13042
+ e === "connected" && (this.shortBurstRejoin = !1), this.emit("connection state", e);
13043
13043
  }), this.emitter.on("recovered from media error", () => {
13044
13044
  this.modules.adaptivity.reset(this.targetBufferTime * 2), this.modules.qualityOfService.restartStallClock(), !this.isUserPaused && this.visiblePauseTimeout === void 0 && this.playbackSource.play();
13045
13045
  }), this.emitter.once("connect info", (e) => {
@@ -13070,7 +13070,7 @@ var QS = class {
13070
13070
  var d;
13071
13071
  let e = this.modules.connection.lastConnectionTime;
13072
13072
  if (e !== void 0 && performance.now() - e >= this.modules.qualityOfService.fatalQosGraceTime() && this.modules.connection.getState() === "connected" && (r === 0 || this.modules.qualityOfService.timeSpentBufferingLast(6e3) > 5e3)) {
13073
- this.modules.qualityOfService.incrementFatalQosCount(), this.logger.info("Reconnecting due to poor qos"), this.lowerTargetForRejoin(), this.modules.connection.reconnect("Fatal QOS"), this.emitter.emit("adapted level");
13073
+ this.modules.qualityOfService.incrementFatalQosCount(), this.logger.info("Reconnecting due to poor qos"), this.lowerTargetForRejoin(), this.shortBurstRejoin = !0, this.modules.connection.reconnect("Fatal QOS"), this.emitter.emit("adapted level");
13074
13074
  return;
13075
13075
  }
13076
13076
  if (this.modules.subscription.getTargetSubscription().channelId !== ((d = this.modules.subscription.getCurrentSubscription()) == null ? void 0 : d.channelId)) return;
@@ -13090,8 +13090,8 @@ var QS = class {
13090
13090
  audio: S(S({}, this.targetSubscription.audio), f == null ? void 0 : f.audio)
13091
13091
  })), this.emitter.emit("adapted level");
13092
13092
  }), this.emitter.on("ping timeout", this.onPingTimeout), this.emitter.on("text track data", (e) => {
13093
- let t = o(SC, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - o(xC, this);
13094
- if (i(xC, this, n), t) {
13093
+ let t = o(CC, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - o(SC, this);
13094
+ if (i(SC, this, n), t) {
13095
13095
  if (t.cues) for (let e of t.cues) e.startTime -= r, e.endTime -= r;
13096
13096
  for (let r of e.cues) {
13097
13097
  let e = new VTTCue(r.startTime - n, r.endTime - n, r.text);
@@ -13107,13 +13107,13 @@ var QS = class {
13107
13107
  this.clientIp = t.ip;
13108
13108
  break;
13109
13109
  case "renditions":
13110
- this.updateTextTracks(t.renditions), i(CC, this, this.filterRenditions(t.renditions, n.channelId).then((e) => {
13110
+ this.updateTextTracks(t.renditions), i(wC, this, this.filterRenditions(t.renditions, n.channelId).then((e) => {
13111
13111
  r === this.sessionId && (this.emitter.emit("renditions", {
13112
13112
  renditions: e,
13113
13113
  channelId: n.channelId
13114
13114
  }), this.emit("rendition levels", this.modules.renditions.getRenditionLevels()), this.emitLanguagesIfChanged());
13115
13115
  }).finally(() => {
13116
- i(CC, this, void 0);
13116
+ i(wC, this, void 0);
13117
13117
  }));
13118
13118
  break;
13119
13119
  case "subscription changed":
@@ -13250,7 +13250,7 @@ var QS = class {
13250
13250
  let ve = function() {
13251
13251
  var e = s(function* (e) {
13252
13252
  let t = e.channelId;
13253
- o(CC, a) && (yield o(CC, a));
13253
+ o(wC, a) && (yield o(wC, a));
13254
13254
  let n = a.modules.renditions.getRendition(e.renditionId, t);
13255
13255
  if (!zs(e.flags)) {
13256
13256
  if (Bs(e.flags)) {
@@ -13264,8 +13264,8 @@ var QS = class {
13264
13264
  } catch (e) {
13265
13265
  a.logger.warn("failed to parse WebVTT segment, dropping it", e);
13266
13266
  }
13267
- let s = n / 1e3, c = o(SC, a).find((t) => t.language === e.language), l = s - o(xC, a);
13268
- if (i(xC, a, s), c) {
13267
+ let s = n / 1e3, c = o(CC, a).find((t) => t.language === e.language), l = s - o(SC, a);
13268
+ if (i(SC, a, s), c) {
13269
13269
  if (c.cues) for (let e of c.cues) e.startTime -= l, e.endTime -= l;
13270
13270
  for (let e of r) {
13271
13271
  let t = new VTTCue(e.startTime - s, e.endTime - s, e.text);
@@ -13411,7 +13411,7 @@ var QS = class {
13411
13411
  this.modules.subscription.setLanguage(e), this.modules.qualityOfService.restartStallClock(), this.alignSizeAndBitRate(this.targetSubscription);
13412
13412
  }
13413
13413
  set textTrack(e) {
13414
- e !== this.textTrack && (o(SC, this).forEach((t) => {
13414
+ e !== this.textTrack && (o(CC, this).forEach((t) => {
13415
13415
  if (t.label === e) t.mode = "showing";
13416
13416
  else {
13417
13417
  if (t.mode === "showing" && t.cues) for (let e of [...t.cues]) t.removeCue(e);
@@ -13420,11 +13420,11 @@ var QS = class {
13420
13420
  }), this.emitter.emit("text track", e));
13421
13421
  }
13422
13422
  get textTracks() {
13423
- return o(SC, this).filter((e) => e.mode !== "disabled").map((e) => e.label);
13423
+ return o(CC, this).filter((e) => e.mode !== "disabled").map((e) => e.label);
13424
13424
  }
13425
13425
  get textTrack() {
13426
13426
  var e;
13427
- return (e = o(SC, this).find((e) => e.mode === "showing")) == null ? void 0 : e.label;
13427
+ return (e = o(CC, this).find((e) => e.mode === "showing")) == null ? void 0 : e.label;
13428
13428
  }
13429
13429
  get channelId() {
13430
13430
  var e, t;
@@ -13602,6 +13602,6 @@ var QS = class {
13602
13602
  return this.hasCalledConnect && this.isBackgroundPlayEnabled(e) && !this.isUserPaused;
13603
13603
  }
13604
13604
  };
13605
- e(wC, "MAX_POOL_SIZE", 10), e(wC, "REMOVE_CUE_THRESHOLD", 1e3 * 10), e(wC, "BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT", 1e3 * 15), e(wC, "VISIBLE_PAUSE_DISCONNECT_DELAY", 1e3);
13605
+ e(TC, "MAX_POOL_SIZE", 10), e(TC, "REMOVE_CUE_THRESHOLD", 1e3 * 10), e(TC, "BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT", 1e3 * 15), e(TC, "VISIBLE_PAUSE_DISCONNECT_DELAY", 1e3);
13606
13606
  //#endregion
13607
- export { lt as C, ft as D, ct as E, Re as O, dt as S, it as T, et as _, bn as a, $e as b, gn as c, Sn as d, j as f, Ze as g, tt as h, vn as i, Le as k, Dn as l, Qe as m, Nn as n, xn as o, Kt as p, yn as r, _n as s, wC as t, Cn as u, ot as v, st as w, rt as x, Xe as y };
13607
+ export { lt as C, ft as D, ct as E, Re as O, dt as S, it as T, et as _, bn as a, $e as b, gn as c, Sn as d, j as f, Ze as g, tt as h, vn as i, Le as k, Dn as l, Qe as m, Nn as n, xn as o, Kt as p, yn as r, _n as s, TC as t, Cn as u, ot as v, st as w, rt as x, Xe as y };
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 "./B9To_Q7U.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 "./C1ebXKEm.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 };
package/legacy.d.ts CHANGED
@@ -1279,6 +1279,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1279
1279
  private offscreenCanvasElement?;
1280
1280
  private webCodecsRenditionSupport;
1281
1281
  private hasCalledConnect;
1282
+ /** The next join is a rejoin after congestion or fatal QoS, which asks for a short burst. */
1283
+ private shortBurstRejoin;
1282
1284
  /** The last upgrade check held, so the hold is logged once. */
1283
1285
  private upgradeHeld;
1284
1286
  private hasRequestedAudioSession;
@@ -1600,6 +1602,12 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1600
1602
  * since another backlog or stall costs more than a few seconds at low quality.
1601
1603
  */
1602
1604
  private lowerTargetForRejoin;
1605
+ /**
1606
+ * The join burst: the buffer target, or 0 when bursts are off. A link too thin for the target's burst, or a rejoin
1607
+ * after congestion or fatal QoS, gets a short burst instead, so it starts in the edge's live group without
1608
+ * resending history into a link that can't take it.
1609
+ */
1610
+ private joinBurstMs;
1603
1611
  private onPingTimeout;
1604
1612
  private emitLanguagesIfChanged;
1605
1613
  private updateTextTracks;