@blockcast/mmt-container 1.0.0 → 1.0.1-main.a3b5ae176fff
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/README.md +1 -1
- package/dist/browser-runtime.js +10 -1
- package/dist/browser-runtime.js.map +2 -2
- package/dist/repair-fetch.d.ts +3 -1
- package/dist/repair-fetch.d.ts.map +1 -1
- package/dist/repair-fetch.js +10 -1
- package/dist/repair-fetch.js.map +2 -2
- package/package.json +5 -5
- package/src/repair-fetch.ts +27 -3
package/README.md
CHANGED
|
@@ -275,7 +275,7 @@ per-commit `0.1.0-main.<sha>` prerelease from `stamp-prerelease.mjs`), and a
|
|
|
275
275
|
> Superseded by BLO-40665. Every package is now bumped in lockstep by a `v*`
|
|
276
276
|
> tag and the sibling ranges move with it, so the objection above no longer
|
|
277
277
|
> applies -- it was an argument against bumping *one* package. The set is at
|
|
278
|
-
> `1.0.
|
|
278
|
+
> `1.0.1`; see `RELEASES.md`.
|
|
279
279
|
|
|
280
280
|
#### Track-role convention (Phase 14)
|
|
281
281
|
|
package/dist/browser-runtime.js
CHANGED
|
@@ -30982,6 +30982,9 @@ function wireRepairFetch(mc, opts) {
|
|
|
30982
30982
|
};
|
|
30983
30983
|
const moot = (entry) => {
|
|
30984
30984
|
if (entry.priority !== 0) return false;
|
|
30985
|
+
const rttMs = readRtt();
|
|
30986
|
+
const sentAt = entry.running?.sentAt ?? performance.now();
|
|
30987
|
+
if (rttMs !== null && sentAt + rttMs < entry.playoutDeadlineAt) return false;
|
|
30985
30988
|
const last = lastSsId(entry);
|
|
30986
30989
|
if (last === void 0) return false;
|
|
30987
30990
|
try {
|
|
@@ -31076,7 +31079,7 @@ function wireRepairFetch(mc, opts) {
|
|
|
31076
31079
|
bound: entry.bound,
|
|
31077
31080
|
...entry.range ? { range: true } : {}
|
|
31078
31081
|
});
|
|
31079
|
-
const run = { controller: new AbortController(), stopped: null };
|
|
31082
|
+
const run = { controller: new AbortController(), sentAt: now, stopped: null };
|
|
31080
31083
|
entry.running = run;
|
|
31081
31084
|
if (!entry.range) {
|
|
31082
31085
|
mc.fecManager.holdBlockForRepair(
|
|
@@ -31235,6 +31238,10 @@ function wireRepairFetch(mc, opts) {
|
|
|
31235
31238
|
);
|
|
31236
31239
|
if (promotedDeadline !== null && promotedDeadline.deadlineAt > entry2.deadlineAt) {
|
|
31237
31240
|
entry2.deadlineAt = promotedDeadline.deadlineAt;
|
|
31241
|
+
entry2.playoutDeadlineAt = Math.max(
|
|
31242
|
+
entry2.playoutDeadlineAt,
|
|
31243
|
+
promotedDeadline.deadlineAt - promotedDeadline.extensionMs
|
|
31244
|
+
);
|
|
31238
31245
|
entry2.anchorAt = promotedDeadline.anchorAt;
|
|
31239
31246
|
entry2.delayMs = promotedDeadline.delayMs;
|
|
31240
31247
|
entry2.bound = promotedDeadline.bound;
|
|
@@ -31366,6 +31373,7 @@ function wireRepairFetch(mc, opts) {
|
|
|
31366
31373
|
priority,
|
|
31367
31374
|
subscriberPriority: wire.subscriberPriority,
|
|
31368
31375
|
deadlineAt: deadline.deadlineAt,
|
|
31376
|
+
playoutDeadlineAt: deadline.deadlineAt - deadline.extensionMs,
|
|
31369
31377
|
anchorAt: deadline.anchorAt,
|
|
31370
31378
|
delayMs: deadline.delayMs,
|
|
31371
31379
|
bound: deadline.bound,
|
|
@@ -31435,6 +31443,7 @@ function wireRepairFetch(mc, opts) {
|
|
|
31435
31443
|
priority,
|
|
31436
31444
|
subscriberPriority: wire.subscriberPriority,
|
|
31437
31445
|
deadlineAt: deadline.deadlineAt,
|
|
31446
|
+
playoutDeadlineAt: deadline.deadlineAt - deadline.extensionMs,
|
|
31438
31447
|
anchorAt: deadline.anchorAt,
|
|
31439
31448
|
delayMs: deadline.delayMs,
|
|
31440
31449
|
bound: deadline.bound,
|