@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
package/dist/no-modules.js
CHANGED
|
@@ -467,6 +467,31 @@ function isoBlocksBehindLowerBound(a, b, kMax) {
|
|
|
467
467
|
return serial32Precedes(a, b) ? Math.floor(serial32Distance(a, b) / kMax) : 0;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
// ../mmt-base/dist/multicast-catalog.js
|
|
471
|
+
function isObject(value) {
|
|
472
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
473
|
+
}
|
|
474
|
+
function isIntegerIn(value, min, max) {
|
|
475
|
+
return Number.isSafeInteger(value) && value >= min && value <= max;
|
|
476
|
+
}
|
|
477
|
+
function catalogAtsc3NetworkSource(networkSource) {
|
|
478
|
+
const entries = Array.isArray(networkSource) ? networkSource : networkSource ? [networkSource] : [];
|
|
479
|
+
for (const ns of entries) {
|
|
480
|
+
if (!isObject(ns))
|
|
481
|
+
continue;
|
|
482
|
+
if (ns.type !== "atsc3" || !isIntegerIn(ns.frequency, 1, Number.MAX_SAFE_INTEGER))
|
|
483
|
+
continue;
|
|
484
|
+
const slsUri = typeof ns.slsUri === "string" ? ns.slsUri.trim() : "";
|
|
485
|
+
return {
|
|
486
|
+
frequency: ns.frequency,
|
|
487
|
+
...isIntegerIn(ns.plpId, 0, 63) ? { plpId: ns.plpId } : {},
|
|
488
|
+
...isIntegerIn(ns.serviceId, 0, 65535) ? { serviceId: ns.serviceId } : {},
|
|
489
|
+
...slsUri ? { slsUri } : {}
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
return void 0;
|
|
493
|
+
}
|
|
494
|
+
|
|
470
495
|
// ../mmt-base/dist/fec-catalog.js
|
|
471
496
|
var DEFAULT_SCHEMES = ["reed-solomon", "raptorq"];
|
|
472
497
|
var DEFAULT_PROFILES = ["moq-object-v1", "iso-ssbg1-v1"];
|
|
@@ -6825,6 +6850,7 @@ var MmtpContainerParser = class _MmtpContainerParser {
|
|
|
6825
6850
|
identity.sampleNumber = extraction.mfuDuHeader.sampleNumber;
|
|
6826
6851
|
identity.movieFragmentSequenceNumber = extraction.mfuDuHeader.movieFragmentSequenceNumber;
|
|
6827
6852
|
identity.offset = extraction.mfuDuHeader.offset;
|
|
6853
|
+
identity.dependencyCounter = extraction.mfuDuHeader.dependencyCounter;
|
|
6828
6854
|
}
|
|
6829
6855
|
return identity;
|
|
6830
6856
|
} catch {
|
|
@@ -9021,25 +9047,6 @@ function catalogAmtNetworkSource(networkSource) {
|
|
|
9021
9047
|
}
|
|
9022
9048
|
return void 0;
|
|
9023
9049
|
}
|
|
9024
|
-
function intIn2(value, min, max) {
|
|
9025
|
-
return Number.isInteger(value) && value >= min && value <= max;
|
|
9026
|
-
}
|
|
9027
|
-
function catalogAtsc3NetworkSource(networkSource) {
|
|
9028
|
-
const entries = Array.isArray(networkSource) ? networkSource : networkSource ? [networkSource] : [];
|
|
9029
|
-
for (const raw of entries) {
|
|
9030
|
-
if (!raw || typeof raw !== "object") continue;
|
|
9031
|
-
const ns = raw;
|
|
9032
|
-
if (ns.type !== "atsc3" || !intIn2(ns.frequency, 1, Number.MAX_SAFE_INTEGER)) continue;
|
|
9033
|
-
const slsUri = typeof ns.slsUri === "string" ? ns.slsUri.trim() : "";
|
|
9034
|
-
return {
|
|
9035
|
-
frequency: ns.frequency,
|
|
9036
|
-
...intIn2(ns.plpId, 0, 63) ? { plpId: ns.plpId } : {},
|
|
9037
|
-
...intIn2(ns.serviceId, 0, 65535) ? { serviceId: ns.serviceId } : {},
|
|
9038
|
-
...slsUri ? { slsUri } : {}
|
|
9039
|
-
};
|
|
9040
|
-
}
|
|
9041
|
-
return void 0;
|
|
9042
|
-
}
|
|
9043
9050
|
|
|
9044
9051
|
// src/mmtp-to-cmaf.ts
|
|
9045
9052
|
function box(type, ...children2) {
|