@blockcast/mmt-container 2.2.0-main.5da4e39e7fb8 → 2.2.0-main.5e3e277b4606
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/dist/__tests__/test-utils.d.ts +1 -0
- package/dist/__tests__/test-utils.d.ts.map +1 -1
- package/dist/block-policy.d.ts +12 -4
- package/dist/block-policy.d.ts.map +1 -1
- package/dist/block-policy.js +148 -19
- package/dist/block-policy.js.map +2 -2
- package/dist/browser-runtime.js +202 -45
- package/dist/browser-runtime.js.map +3 -3
- package/dist/carp-catalog.js.map +1 -1
- package/dist/catalog-network-source.d.ts +1 -17
- package/dist/catalog-network-source.d.ts.map +1 -1
- package/dist/catalog-network-source.js +25 -19
- package/dist/catalog-network-source.js.map +3 -3
- package/dist/fec-manager.js +148 -19
- package/dist/fec-manager.js.map +2 -2
- package/dist/mmtp-container-parser.d.ts +2 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -1
- package/dist/mmtp-container-parser.js +1 -0
- package/dist/mmtp-container-parser.js.map +2 -2
- package/dist/mmtp-container-parser.no-modules.js +26 -19
- package/dist/mmtp-container-parser.no-modules.js.map +4 -4
- package/dist/mmtp-decode-pipeline.js +1 -0
- package/dist/mmtp-decode-pipeline.js.map +2 -2
- package/dist/mmtp-router.d.ts.map +1 -1
- package/dist/mmtp-router.js +3 -1
- package/dist/mmtp-router.js.map +2 -2
- package/dist/multicast-auth-catalog.js.map +1 -1
- package/dist/multicast-input.js.map +1 -1
- package/dist/multicast-manager.d.ts +9 -1
- package/dist/multicast-manager.d.ts.map +1 -1
- package/dist/multicast-manager.js +154 -21
- package/dist/multicast-manager.js.map +2 -2
- package/dist/no-modules.js +26 -19
- package/dist/no-modules.js.map +4 -4
- package/dist/repair-fetch.d.ts +3 -1
- package/dist/repair-fetch.d.ts.map +1 -1
- package/dist/repair-fetch.js +31 -5
- package/dist/repair-fetch.js.map +2 -2
- package/dist/wasm-mmtp-container-parser.js +1 -0
- package/dist/wasm-mmtp-container-parser.js.map +2 -2
- package/package.json +5 -5
- package/src/block-policy.ts +206 -29
- package/src/catalog-network-source.ts +3 -37
- package/src/mmtp-container-parser.ts +3 -0
- package/src/mmtp-router.ts +1 -0
- package/src/multicast-manager.ts +10 -0
- package/src/repair-fetch.ts +46 -6
- package/test-vectors/repair-policy-v1.json +36 -3
|
@@ -532,6 +532,31 @@ var BlockcastMmt = (() => {
|
|
|
532
532
|
return serial32Precedes(a, b) ? Math.floor(serial32Distance(a, b) / kMax) : 0;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
+
// ../mmt-base/dist/multicast-catalog.js
|
|
536
|
+
function isObject(value) {
|
|
537
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
538
|
+
}
|
|
539
|
+
function isIntegerIn(value, min, max) {
|
|
540
|
+
return Number.isSafeInteger(value) && value >= min && value <= max;
|
|
541
|
+
}
|
|
542
|
+
function catalogAtsc3NetworkSource(networkSource) {
|
|
543
|
+
const entries = Array.isArray(networkSource) ? networkSource : networkSource ? [networkSource] : [];
|
|
544
|
+
for (const ns of entries) {
|
|
545
|
+
if (!isObject(ns))
|
|
546
|
+
continue;
|
|
547
|
+
if (ns.type !== "atsc3" || !isIntegerIn(ns.frequency, 1, Number.MAX_SAFE_INTEGER))
|
|
548
|
+
continue;
|
|
549
|
+
const slsUri = typeof ns.slsUri === "string" ? ns.slsUri.trim() : "";
|
|
550
|
+
return {
|
|
551
|
+
frequency: ns.frequency,
|
|
552
|
+
...isIntegerIn(ns.plpId, 0, 63) ? { plpId: ns.plpId } : {},
|
|
553
|
+
...isIntegerIn(ns.serviceId, 0, 65535) ? { serviceId: ns.serviceId } : {},
|
|
554
|
+
...slsUri ? { slsUri } : {}
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
return void 0;
|
|
558
|
+
}
|
|
559
|
+
|
|
535
560
|
// ../mmt-base/dist/fec-catalog.js
|
|
536
561
|
var DEFAULT_SCHEMES = ["reed-solomon", "raptorq"];
|
|
537
562
|
var DEFAULT_PROFILES = ["moq-object-v1", "iso-ssbg1-v1"];
|
|
@@ -6841,6 +6866,7 @@ var BlockcastMmt = (() => {
|
|
|
6841
6866
|
identity.sampleNumber = extraction.mfuDuHeader.sampleNumber;
|
|
6842
6867
|
identity.movieFragmentSequenceNumber = extraction.mfuDuHeader.movieFragmentSequenceNumber;
|
|
6843
6868
|
identity.offset = extraction.mfuDuHeader.offset;
|
|
6869
|
+
identity.dependencyCounter = extraction.mfuDuHeader.dependencyCounter;
|
|
6844
6870
|
}
|
|
6845
6871
|
return identity;
|
|
6846
6872
|
} catch {
|
|
@@ -9185,25 +9211,6 @@ var BlockcastMmt = (() => {
|
|
|
9185
9211
|
}
|
|
9186
9212
|
return void 0;
|
|
9187
9213
|
}
|
|
9188
|
-
function intIn2(value, min, max) {
|
|
9189
|
-
return Number.isInteger(value) && value >= min && value <= max;
|
|
9190
|
-
}
|
|
9191
|
-
function catalogAtsc3NetworkSource(networkSource) {
|
|
9192
|
-
const entries = Array.isArray(networkSource) ? networkSource : networkSource ? [networkSource] : [];
|
|
9193
|
-
for (const raw of entries) {
|
|
9194
|
-
if (!raw || typeof raw !== "object") continue;
|
|
9195
|
-
const ns = raw;
|
|
9196
|
-
if (ns.type !== "atsc3" || !intIn2(ns.frequency, 1, Number.MAX_SAFE_INTEGER)) continue;
|
|
9197
|
-
const slsUri = typeof ns.slsUri === "string" ? ns.slsUri.trim() : "";
|
|
9198
|
-
return {
|
|
9199
|
-
frequency: ns.frequency,
|
|
9200
|
-
...intIn2(ns.plpId, 0, 63) ? { plpId: ns.plpId } : {},
|
|
9201
|
-
...intIn2(ns.serviceId, 0, 65535) ? { serviceId: ns.serviceId } : {},
|
|
9202
|
-
...slsUri ? { slsUri } : {}
|
|
9203
|
-
};
|
|
9204
|
-
}
|
|
9205
|
-
return void 0;
|
|
9206
|
-
}
|
|
9207
9214
|
|
|
9208
9215
|
// src/mmtp-to-cmaf.ts
|
|
9209
9216
|
function box(type, ...children2) {
|