@blockcast/mmt-container 0.4.0 → 0.4.1-main.22841c1f0a2d
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 +37 -21
- package/dist/align.d.ts +24 -18
- package/dist/align.d.ts.map +1 -1
- package/dist/align.js +23 -4
- package/dist/align.js.map +2 -2
- package/dist/browser-runtime.js +2037 -881
- package/dist/browser-runtime.js.map +4 -4
- package/dist/carp-catalog.d.ts +76 -39
- package/dist/carp-catalog.d.ts.map +1 -1
- package/dist/carp-catalog.js +321 -205
- package/dist/carp-catalog.js.map +3 -3
- package/dist/catalog-fec-params.d.ts +12 -4
- package/dist/catalog-fec-params.d.ts.map +1 -1
- package/dist/catalog-fec-params.js +40 -17
- package/dist/catalog-fec-params.js.map +3 -3
- package/dist/catalog-network-source.d.ts +28 -7
- package/dist/catalog-network-source.d.ts.map +1 -1
- package/dist/catalog-network-source.js +21 -1
- package/dist/catalog-network-source.js.map +2 -2
- package/dist/catalog-validator.d.ts +4 -3
- package/dist/catalog-validator.d.ts.map +1 -1
- package/dist/catalog-validator.js +0 -29
- package/dist/catalog-validator.js.map +3 -3
- package/dist/cmcd-producer.d.ts +13 -1
- package/dist/cmcd-producer.d.ts.map +1 -1
- package/dist/cmcd-producer.js +14 -0
- package/dist/cmcd-producer.js.map +2 -2
- package/dist/delivery-catalog.js +98 -234
- package/dist/delivery-catalog.js.map +4 -4
- package/dist/fec-manager.d.ts +108 -1
- package/dist/fec-manager.d.ts.map +1 -1
- package/dist/fec-manager.js +452 -66
- package/dist/fec-manager.js.map +4 -4
- package/dist/fec-state.d.ts +2 -1
- package/dist/fec-state.d.ts.map +1 -1
- package/dist/fec-state.js +18 -3
- package/dist/fec-state.js.map +3 -3
- package/dist/fec-worker-setup.d.ts +10 -0
- package/dist/fec-worker-setup.d.ts.map +1 -1
- package/dist/fec-worker-setup.js +15 -4
- package/dist/fec-worker-setup.js.map +2 -2
- package/dist/held-layer-admission.d.ts +58 -0
- package/dist/held-layer-admission.d.ts.map +1 -0
- package/dist/held-layer-admission.js +105 -0
- package/dist/held-layer-admission.js.map +7 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +2 -2
- package/dist/iso-block-locator.d.ts +39 -1
- package/dist/iso-block-locator.d.ts.map +1 -1
- package/dist/iso-block-locator.js +109 -17
- package/dist/iso-block-locator.js.map +3 -3
- package/dist/mfu-reassembler.js +21 -13
- package/dist/mfu-reassembler.js.map +2 -2
- package/dist/mmtp-container-parser.d.ts.map +1 -1
- package/dist/mmtp-container-parser.js +93 -22
- package/dist/mmtp-container-parser.js.map +2 -2
- package/dist/mmtp-container-parser.no-modules.js +3677 -1213
- package/dist/mmtp-container-parser.no-modules.js.map +4 -4
- package/dist/mmtp-decode-pipeline.js +93 -22
- package/dist/mmtp-decode-pipeline.js.map +2 -2
- package/dist/mmtp-fec-session.d.ts +192 -0
- package/dist/mmtp-fec-session.d.ts.map +1 -0
- package/dist/mmtp-fec-session.js +640 -0
- package/dist/mmtp-fec-session.js.map +7 -0
- package/dist/mmtp-router.d.ts +69 -32
- package/dist/mmtp-router.d.ts.map +1 -1
- package/dist/mmtp-router.js +296 -192
- package/dist/mmtp-router.js.map +2 -2
- package/dist/multicast-auth-catalog.d.ts +86 -92
- package/dist/multicast-auth-catalog.d.ts.map +1 -1
- package/dist/multicast-auth-catalog.js +313 -124
- package/dist/multicast-auth-catalog.js.map +3 -3
- package/dist/multicast-input.d.ts +31 -8
- package/dist/multicast-input.d.ts.map +1 -1
- package/dist/multicast-input.js +299 -35
- package/dist/multicast-input.js.map +3 -3
- package/dist/multicast-manager.d.ts +97 -11
- package/dist/multicast-manager.d.ts.map +1 -1
- package/dist/multicast-manager.js +1022 -527
- package/dist/multicast-manager.js.map +4 -4
- package/dist/multicast-transport.d.ts +12 -2
- package/dist/multicast-transport.d.ts.map +1 -1
- package/dist/multicast-transport.js +108 -238
- package/dist/multicast-transport.js.map +4 -4
- package/dist/multicast-unwrap.js +21 -13
- package/dist/multicast-unwrap.js.map +2 -2
- package/dist/no-modules.d.ts +5 -3
- package/dist/no-modules.d.ts.map +1 -1
- package/dist/no-modules.js +3625 -1194
- package/dist/no-modules.js.map +4 -4
- package/dist/phase14-catalog-override.d.ts +1 -1
- package/dist/phase14-catalog-override.d.ts.map +1 -1
- package/dist/phase14-catalog-override.js +2 -2
- package/dist/phase14-catalog-override.js.map +2 -2
- package/dist/repair-fetch.d.ts +81 -6
- package/dist/repair-fetch.d.ts.map +1 -1
- package/dist/repair-fetch.js +156 -31
- package/dist/repair-fetch.js.map +3 -3
- package/dist/repair-layers.d.ts +2 -0
- package/dist/repair-layers.d.ts.map +1 -1
- package/dist/repair-layers.js +19 -2
- package/dist/repair-layers.js.map +2 -2
- package/dist/sample-combiner.d.ts +7 -1
- package/dist/sample-combiner.d.ts.map +1 -1
- package/dist/sample-combiner.js +14 -2
- package/dist/sample-combiner.js.map +2 -2
- package/dist/signaling.d.ts +2 -2
- package/dist/signaling.d.ts.map +1 -1
- package/dist/signaling.js +3 -3
- package/dist/signaling.js.map +2 -2
- package/dist/switching-set-alignment.d.ts +1 -1
- package/dist/switching-set-alignment.js.map +1 -1
- package/dist/timestamp-codec.js +21 -13
- package/dist/timestamp-codec.js.map +2 -2
- package/dist/wasm-mfu-reassembler.js.map +1 -1
- package/dist/wasm-mmtp-container-parser.js +93 -22
- package/dist/wasm-mmtp-container-parser.js.map +2 -2
- package/package.json +6 -18
- package/schemas/catalog.schema.json +133 -38
- package/src/align.ts +52 -21
- package/src/carp-catalog.ts +188 -68
- package/src/catalog-fec-params.ts +28 -3
- package/src/catalog-network-source.ts +49 -7
- package/src/catalog-validator.ts +4 -11
- package/src/cmcd-producer.ts +23 -1
- package/src/fec-manager.ts +366 -63
- package/src/fec-state.ts +11 -4
- package/src/fec-worker-setup.ts +30 -2
- package/src/held-layer-admission.ts +161 -0
- package/src/index.ts +32 -19
- package/src/iso-block-locator.ts +110 -7
- package/src/mmtp-container-parser.ts +75 -7
- package/src/mmtp-fec-session.ts +606 -0
- package/src/mmtp-router.ts +301 -240
- package/src/multicast-auth-catalog.ts +134 -238
- package/src/multicast-input.ts +148 -124
- package/src/multicast-manager.ts +271 -40
- package/src/multicast-transport.ts +17 -3
- package/src/no-modules.ts +8 -7
- package/src/phase14-catalog-override.ts +3 -3
- package/src/repair-fetch.ts +283 -39
- package/src/repair-layers.ts +22 -2
- package/src/sample-combiner.ts +15 -2
- package/src/signaling.ts +2 -2
- package/src/switching-set-alignment.ts +1 -1
- package/test-vectors/align.json +108 -32
- package/test-vectors/bc-provenance-v2.json +1526 -0
- package/test-vectors/catalog/README.md +71 -4
- package/test-vectors/catalog/negative/fec-block-profile-missing.json +1 -1
- package/test-vectors/catalog/negative/fec-block-profile-retired.json +1 -1
- package/test-vectors/catalog/negative/fec-block-profile-unknown.json +1 -1
- package/test-vectors/catalog/negative/fec-iso-symbol-size-below-floor.json +28 -0
- package/test-vectors/catalog/negative/fec-reed-solomon-iso-symbol-size-13.json +28 -0
- package/test-vectors/catalog/negative/fec-reed-solomon-k-plus-p-over-255.json +39 -0
- package/test-vectors/catalog/negative/fec-reed-solomon-overlay-over-255.json +40 -0
- package/test-vectors/catalog/negative/fec-repair-overlay-source-symbols-zero.json +43 -0
- package/test-vectors/catalog/negative/fec-repair-symbols-zero.json +28 -0
- package/test-vectors/catalog/negative/fec-source-symbols-zero.json +28 -0
- package/test-vectors/catalog/negative/fec-symbol-size-zero.json +28 -0
- package/test-vectors/catalog/negative/init-data-inline-without-data.json +22 -0
- package/test-vectors/catalog/negative/mmtp-mode-mpu.json +15 -0
- package/test-vectors/catalog/negative/multicast-amt-dns-without-relay.json +37 -0
- package/test-vectors/catalog/negative/multicast-amt-driad-with-relay.json +38 -0
- package/test-vectors/catalog/negative/multicast-auth-asm-missing-sender-address.json +77 -0
- package/test-vectors/catalog/negative/multicast-auth-duplicate-first-epoch.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-duplicate-kid.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-endpoint-auth-without-object-auth.json +38 -0
- package/test-vectors/catalog/negative/multicast-auth-endpoint-missing-auth.json +49 -0
- package/test-vectors/catalog/negative/multicast-auth-endpoint-missing-bandwidth.json +55 -0
- package/test-vectors/catalog/negative/multicast-auth-manifest-port-equals-port.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-manifest-timer-out-of-range.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-max-auth-delay-above-max.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-max-auth-delay-below-min.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-root-dotted-key.json +55 -0
- package/test-vectors/catalog/negative/multicast-auth-sender-address-on-ssm.json +57 -0
- package/test-vectors/catalog/negative/multicast-auth-version-1.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-version-3.json +56 -0
- package/test-vectors/catalog/negative/multicast-auth-version-missing.json +55 -0
- package/test-vectors/catalog/negative/multicast-endpoint-foreign-namespace-track.json +44 -0
- package/test-vectors/catalog/negative/multicast-endpoint-protocol-amt.json +38 -0
- package/test-vectors/catalog/negative/multicast-endpoint-protocol-atsc3.json +38 -0
- package/test-vectors/catalog/negative/presentation-anchor-unsafe.json +16 -0
- package/test-vectors/catalog/positive/fec-algorithm-unimplemented.json +29 -0
- package/test-vectors/catalog/positive/fec-iso-ssbg1.json +1 -1
- package/test-vectors/catalog/positive/fec-multicast.json +1 -1
- package/test-vectors/catalog/positive/fec-reed-solomon-layered.json +50 -0
- package/test-vectors/catalog/positive/mmt01-12-1-init-ref-anchor.json +29 -0
- package/test-vectors/catalog/positive/multicast-amt-discovery-omitted.json +37 -0
- package/test-vectors/catalog/positive/multicast-amt-dns-relay.json +38 -0
- package/test-vectors/catalog/positive/multicast-amt-manual-relay.json +3 -3
- package/test-vectors/catalog/{negative/multicast-endpoint-missing-protocol-and-source.json → positive/multicast-asm-unprotected.json} +10 -5
- package/test-vectors/catalog/positive/multicast-auth-asm-sender.json +78 -0
- package/test-vectors/catalog/positive/multicast-auth-rotation.json +39 -38
- package/test-vectors/catalog/positive/multicast-draft01-4-1-example.json +81 -0
- package/test-vectors/catalog/positive/multicast-draft01-7-2-6-example.json +70 -0
- package/test-vectors/catalog/positive/presentation-anchor-negative.json +27 -0
- package/test-vectors/catalog/section-codes.json +31 -1
- package/test-vectors/catalog-multicast-auth-v1.json +38 -20
- package/test-vectors/catalog-validation.json +101 -5
- package/test-vectors/catalog-validator-public-api.mjs +14 -9
- package/test-vectors/generate-bc-provenance-v2.mjs +252 -0
- package/dist/fec-codec.d.ts +0 -32
- package/dist/fec-codec.d.ts.map +0 -1
- package/dist/fec-codec.js +0 -47
- package/dist/fec-codec.js.map +0 -7
- package/dist/manifest-auth-plan.d.ts +0 -30
- package/dist/manifest-auth-plan.d.ts.map +0 -1
- package/dist/manifest-auth-plan.js +0 -1266
- package/dist/manifest-auth-plan.js.map +0 -7
- package/dist/source-auth.d.ts +0 -2
- package/dist/source-auth.d.ts.map +0 -1
- package/dist/source-auth.js +0 -1209
- package/dist/source-auth.js.map +0 -7
- package/src/fec-codec.ts +0 -61
- package/src/manifest-auth-plan.ts +0 -107
- package/src/source-auth.ts +0 -1
- package/test-vectors/generate-source-auth-fixture.mjs +0 -114
- package/test-vectors/source-auth-v1.json +0 -61
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"streamingFormat": "mmtp",
|
|
4
|
+
"streamingFormatVersion": "draft-ramadan-moq-mmt-01",
|
|
5
|
+
"tracks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "video",
|
|
8
|
+
"packaging": "mmtp",
|
|
9
|
+
"codec": "avc1.640028",
|
|
10
|
+
"mmtpMode": "mfu",
|
|
11
|
+
"timescale": 90000,
|
|
12
|
+
"groupDurationMs": 1000,
|
|
13
|
+
"fec": {
|
|
14
|
+
"algorithm": "raptorq",
|
|
15
|
+
"blockProfile": "iso-ssbg1-v1",
|
|
16
|
+
"sourceSymbols": 768,
|
|
17
|
+
"repairSymbols": 384,
|
|
18
|
+
"symbolSize": 1312,
|
|
19
|
+
"interleaveDepthMs": 1000,
|
|
20
|
+
"repairTrack": "video/repair",
|
|
21
|
+
"mode": "interleaved"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "video/repair",
|
|
26
|
+
"packaging": "fec-repair",
|
|
27
|
+
"priority": 240
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "audio",
|
|
31
|
+
"packaging": "mmtp",
|
|
32
|
+
"codec": "mp4a.40.2",
|
|
33
|
+
"mmtpMode": "mfu",
|
|
34
|
+
"timescale": 48000,
|
|
35
|
+
"groupDurationMs": 1000,
|
|
36
|
+
"fec": {
|
|
37
|
+
"algorithm": "raptorq",
|
|
38
|
+
"blockProfile": "iso-ssbg1-v1",
|
|
39
|
+
"sourceSymbols": 768,
|
|
40
|
+
"repairSymbols": 384,
|
|
41
|
+
"symbolSize": 1312,
|
|
42
|
+
"interleaveDepthMs": 1000,
|
|
43
|
+
"repairTrack": "audio/repair",
|
|
44
|
+
"mode": "interleaved"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "audio/repair",
|
|
49
|
+
"packaging": "fec-repair",
|
|
50
|
+
"priority": 240
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"multicast": {
|
|
54
|
+
"endpoints": [
|
|
55
|
+
{
|
|
56
|
+
"sourceAddress": "198.51.100.10",
|
|
57
|
+
"groupAddress": "232.0.10.1",
|
|
58
|
+
"port": 8000,
|
|
59
|
+
"tracks": [
|
|
60
|
+
{
|
|
61
|
+
"name": "video",
|
|
62
|
+
"packetId": 1
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "video/repair",
|
|
66
|
+
"packetId": 2
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "audio",
|
|
70
|
+
"packetId": 3
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "audio/repair",
|
|
74
|
+
"packetId": 4
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"bandwidth": 6500000
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"streamingFormat": "mmtp",
|
|
4
|
+
"streamingFormatVersion": "draft-ramadan-moq-mmt-01",
|
|
5
|
+
"tracks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "video",
|
|
8
|
+
"packaging": "mmtp",
|
|
9
|
+
"codec": "avc1.640028",
|
|
10
|
+
"mmtpMode": "mfu",
|
|
11
|
+
"timescale": 90000,
|
|
12
|
+
"groupDurationMs": 1000,
|
|
13
|
+
"fec": {
|
|
14
|
+
"algorithm": "raptorq",
|
|
15
|
+
"blockProfile": "iso-ssbg1-v1",
|
|
16
|
+
"sourceSymbols": 768,
|
|
17
|
+
"repairSymbols": 384,
|
|
18
|
+
"symbolSize": 1312,
|
|
19
|
+
"interleaveDepthMs": 1000,
|
|
20
|
+
"repairTrack": "video/repair",
|
|
21
|
+
"mode": "interleaved"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "video/repair",
|
|
26
|
+
"packaging": "fec-repair",
|
|
27
|
+
"priority": 240
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"multicast": {
|
|
31
|
+
"auth": {
|
|
32
|
+
"scheme": "bc-provenance",
|
|
33
|
+
"version": 2,
|
|
34
|
+
"sig": "ed25519",
|
|
35
|
+
"keys": [
|
|
36
|
+
{
|
|
37
|
+
"kid": 1,
|
|
38
|
+
"publicKey": "A6EHv_POEL4dcN0Y50vAmWfk1jCbpQ1fHdyGZBJVMbg",
|
|
39
|
+
"firstEpoch": 1
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"minEpoch": 17
|
|
43
|
+
},
|
|
44
|
+
"endpoints": [
|
|
45
|
+
{
|
|
46
|
+
"sourceAddress": "198.51.100.7",
|
|
47
|
+
"groupAddress": "232.10.20.30",
|
|
48
|
+
"port": 5004,
|
|
49
|
+
"bandwidth": 100000000,
|
|
50
|
+
"tracks": [
|
|
51
|
+
{
|
|
52
|
+
"name": "video",
|
|
53
|
+
"packetId": 1
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "video/repair",
|
|
57
|
+
"packetId": 2
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"auth": {
|
|
61
|
+
"manifestPort": 5005,
|
|
62
|
+
"streamId": 2864434397,
|
|
63
|
+
"maxAuthDelayMs": 200,
|
|
64
|
+
"manifestTimerMs": 20,
|
|
65
|
+
"manifestTrack": "video/manifest"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"streamingFormat": "mmtp",
|
|
4
|
+
"streamingFormatVersion": "draft-ramadan-moq-mmt-01",
|
|
5
|
+
"tracks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "video",
|
|
8
|
+
"packaging": "mmtp",
|
|
9
|
+
"codec": "avc1.640028",
|
|
10
|
+
"framerate": 30,
|
|
11
|
+
"mmtpMode": "mfu",
|
|
12
|
+
"timescale": 90000,
|
|
13
|
+
"presentationAnchorTicks": -180000,
|
|
14
|
+
"groupDurationTicks": 180000
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "audio",
|
|
18
|
+
"packaging": "mmtp",
|
|
19
|
+
"codec": "mp4a.40.2",
|
|
20
|
+
"samplerate": 48000,
|
|
21
|
+
"mmtpMode": "mfu",
|
|
22
|
+
"timescale": 48000,
|
|
23
|
+
"presentationAnchorTicks": -96000,
|
|
24
|
+
"groupDurationTicks": 96000
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -7,23 +7,53 @@
|
|
|
7
7
|
"fec-block-profile-retired.json": { "code": "track_fec_block_profile_unimplemented", "path": "$.tracks[0].fec.blockProfile" },
|
|
8
8
|
"fec-block-profile-unknown.json": { "code": "track_fec_block_profile_unimplemented", "path": "$.tracks[0].fec.blockProfile" },
|
|
9
9
|
"fec-enhancement-repair-removed.json": { "code": "track_fec", "path": "$.tracks[0].fec.enhancementRepair" },
|
|
10
|
+
"fec-iso-symbol-size-below-floor.json": { "code": "track_fec", "path": "$.tracks[0].fec.symbolSize" },
|
|
11
|
+
"fec-reed-solomon-iso-symbol-size-13.json": { "code": "track_fec", "path": "$.tracks[0].fec.symbolSize" },
|
|
12
|
+
"fec-reed-solomon-k-plus-p-over-255.json": { "code": "track_fec_bounds", "path": "$.tracks[0].fec.sourceSymbols" },
|
|
13
|
+
"fec-reed-solomon-overlay-over-255.json": { "code": "track_fec_bounds", "path": "$.tracks[2].repairSymbols" },
|
|
10
14
|
"fec-repair-layer-geometry.json": { "code": "track_repair_geometry", "path": "$.tracks[2].timescale" },
|
|
11
15
|
"fec-repair-layer-missing-symbols.json": { "code": "track_repair_layer", "path": "$.tracks[2].repairSymbols" },
|
|
12
16
|
"fec-repair-multiple-depends.json": { "code": "track_repair_depends", "path": "$.tracks[2].depends" },
|
|
17
|
+
"fec-repair-overlay-source-symbols-zero.json": { "code": "track_fec_bounds", "path": "$.tracks[2].sourceSymbols" },
|
|
13
18
|
"fec-repair-overlay-with-layer.json": { "code": "track_repair_overlay", "path": "$.tracks[2].repairLayer" },
|
|
14
19
|
"fec-repair-priority-out-of-band.json": { "code": "track_repair_priority", "path": "$.tracks[1].priority" },
|
|
15
20
|
"fec-repair-source-symbols-without-scope.json": { "code": "track_repair_overlay", "path": "$.tracks[2].sourceSymbols" },
|
|
21
|
+
"fec-repair-symbols-zero.json": { "code": "track_fec", "path": "$.tracks[0].fec.repairSymbols" },
|
|
22
|
+
"fec-source-symbols-zero.json": { "code": "track_fec", "path": "$.tracks[0].fec.sourceSymbols" },
|
|
23
|
+
"fec-symbol-size-zero.json": { "code": "track_fec", "path": "$.tracks[0].fec.symbolSize" },
|
|
24
|
+
"init-data-inline-without-data.json": { "outOfSection": "root initDataList" },
|
|
16
25
|
"legacy-selection-params.json": { "outOfSection": "common track field selectionParams" },
|
|
17
26
|
"media-track-repair-layer.json": { "code": "track_repair_layer", "path": "$.tracks[0].repairLayer" },
|
|
18
27
|
"missing-mmtp-fields.json": { "code": "track_mmtp_mode", "path": "$.tracks[0].mmtpMode" },
|
|
28
|
+
"mmtp-mode-mpu.json": { "code": "track_mmtp_mode", "path": "$.tracks[0].mmtpMode" },
|
|
29
|
+
"multicast-amt-dns-without-relay.json": { "outOfSection": "multicast" },
|
|
30
|
+
"multicast-amt-driad-with-relay.json": { "outOfSection": "multicast" },
|
|
31
|
+
"multicast-auth-asm-missing-sender-address.json": { "outOfSection": "multicast.auth" },
|
|
32
|
+
"multicast-auth-duplicate-first-epoch.json": { "outOfSection": "multicast.auth" },
|
|
33
|
+
"multicast-auth-duplicate-kid.json": { "outOfSection": "multicast.auth" },
|
|
34
|
+
"multicast-auth-endpoint-auth-without-object-auth.json": { "outOfSection": "multicast.auth" },
|
|
35
|
+
"multicast-auth-endpoint-missing-auth.json": { "outOfSection": "multicast.auth" },
|
|
36
|
+
"multicast-auth-endpoint-missing-bandwidth.json": { "outOfSection": "multicast.auth" },
|
|
37
|
+
"multicast-auth-manifest-port-equals-port.json": { "outOfSection": "multicast.auth" },
|
|
38
|
+
"multicast-auth-manifest-timer-out-of-range.json": { "outOfSection": "multicast.auth" },
|
|
39
|
+
"multicast-auth-max-auth-delay-below-min.json": { "outOfSection": "multicast.auth" },
|
|
40
|
+
"multicast-auth-max-auth-delay-above-max.json": { "outOfSection": "multicast.auth" },
|
|
19
41
|
"multicast-auth-padded-key.json": { "outOfSection": "multicast.auth" },
|
|
20
42
|
"multicast-auth-reused-track-format.json": { "outOfSection": "multicast.auth" },
|
|
43
|
+
"multicast-auth-root-dotted-key.json": { "outOfSection": "multicast.auth" },
|
|
44
|
+
"multicast-auth-sender-address-on-ssm.json": { "outOfSection": "multicast.auth" },
|
|
21
45
|
"multicast-auth-trailing-pad-bits.json": { "outOfSection": "multicast.auth" },
|
|
22
|
-
"multicast-
|
|
46
|
+
"multicast-auth-version-1.json": { "outOfSection": "multicast.auth" },
|
|
47
|
+
"multicast-auth-version-3.json": { "outOfSection": "multicast.auth" },
|
|
48
|
+
"multicast-auth-version-missing.json": { "outOfSection": "multicast.auth" },
|
|
49
|
+
"multicast-endpoint-foreign-namespace-track.json": { "outOfSection": "multicast" },
|
|
50
|
+
"multicast-endpoint-protocol-amt.json": { "outOfSection": "multicast" },
|
|
51
|
+
"multicast-endpoint-protocol-atsc3.json": { "outOfSection": "multicast" },
|
|
23
52
|
"multicast-endpoint-relay-address.json": { "outOfSection": "multicast" },
|
|
24
53
|
"multicast-network-source-empty.json": { "outOfSection": "multicast" },
|
|
25
54
|
"multicast-packet-id-signaling.json": { "outOfSection": "multicast" },
|
|
26
55
|
"network-source-object.json": { "outOfSection": "multicast" },
|
|
56
|
+
"presentation-anchor-unsafe.json": { "code": "track_presentation_anchor", "path": "$.tracks[0].presentationAnchorTicks" },
|
|
27
57
|
"raptorq-source-symbols-over-max.json": { "code": "track_fec_bounds", "path": "$.tracks[0].fec.sourceSymbols" },
|
|
28
58
|
"raptorq-unaligned-symbol.json": { "code": "track_fec", "path": "$.tracks[0].fec.symbolSize" },
|
|
29
59
|
"repair-track-legacy-shape.json": { "outOfSection": "the packaging value set (common track field)" },
|
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Golden multicast.auth
|
|
3
|
-
"multicast
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$comment": "Golden multicast.auth catalog block, bc-provenance version 2 (draft-ramadan-moq-multicast-01 7.2.6 at Blockcast/moqcast-draft@fd962fd73d21ed281b60219c11ea61cc9e4e91c4). Two keys rotate at epoch 17: kid 1 signs epochs 1..16, kid 2 signs 17 and later, and minEpoch 17 makes a joiner start at kid 2. The endpoint is a protected SSM flow, so S is its sourceAddress. The draft -00 shape this file used to hold (root \"multicast.auth\" key, hash/publicKey/keyId/previousKey/compaction/enforcement/tracks) is kept as catalog/negative/multicast-auth-root-dotted-key.json.",
|
|
3
|
+
"multicast": {
|
|
4
|
+
"auth": {
|
|
5
|
+
"scheme": "bc-provenance",
|
|
6
|
+
"version": 2,
|
|
7
|
+
"sig": "ed25519",
|
|
8
|
+
"keys": [
|
|
9
|
+
{
|
|
10
|
+
"kid": 1,
|
|
11
|
+
"publicKey": "A6EHv_POEL4dcN0Y50vAmWfk1jCbpQ1fHdyGZBJVMbg",
|
|
12
|
+
"firstEpoch": 1
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"kid": 2,
|
|
16
|
+
"publicKey": "mm4Ae7fTOTrOb2d_zK9mlXVV2YgeBBvBncabOQRh1Z4",
|
|
17
|
+
"firstEpoch": 17
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"minEpoch": 17
|
|
21
|
+
},
|
|
22
|
+
"endpoints": [
|
|
12
23
|
{
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
"sourceAddress": "198.51.100.7",
|
|
25
|
+
"groupAddress": "232.10.20.30",
|
|
26
|
+
"port": 5004,
|
|
27
|
+
"bandwidth": 100000000,
|
|
28
|
+
"tracks": [
|
|
29
|
+
{
|
|
30
|
+
"name": "video",
|
|
31
|
+
"packetId": 1
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"auth": {
|
|
35
|
+
"manifestPort": 5005,
|
|
36
|
+
"streamId": 2864434397,
|
|
37
|
+
"maxAuthDelayMs": 200,
|
|
38
|
+
"manifestTimerMs": 20,
|
|
39
|
+
"manifestTrack": "video/manifest"
|
|
40
|
+
}
|
|
23
41
|
}
|
|
24
42
|
]
|
|
25
43
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Canonical accept/reject and FEC-
|
|
2
|
+
"$comment": "Canonical accept/reject and FEC block budget (span + reorderToleranceMs, fec-01 §9) vectors. Auth validation is intentionally out of scope.",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"safety_factor": 3,
|
|
5
4
|
"cases": [
|
|
6
5
|
{
|
|
7
6
|
"name": "valid MMTP video",
|
|
8
7
|
"valid": true,
|
|
9
|
-
"
|
|
8
|
+
"expected_fec_budget_ms": 173,
|
|
10
9
|
"catalog": {
|
|
11
10
|
"version": 1,
|
|
12
11
|
"tracks": [
|
|
@@ -26,6 +25,7 @@
|
|
|
26
25
|
"repairSymbols": 8,
|
|
27
26
|
"symbolSize": 1320,
|
|
28
27
|
"interleaveDepthMs": 133,
|
|
28
|
+
"reorderToleranceMs": 40,
|
|
29
29
|
"repairTrack": "video/repair"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -723,8 +723,9 @@
|
|
|
723
723
|
}
|
|
724
724
|
},
|
|
725
725
|
{
|
|
726
|
-
"name": "auth
|
|
727
|
-
"valid":
|
|
726
|
+
"name": "multicast.auth other than bc-provenance version 2 is rejected (draft -01 7.2.6)",
|
|
727
|
+
"valid": false,
|
|
728
|
+
"error_code": "multicast_auth",
|
|
728
729
|
"catalog": {
|
|
729
730
|
"version": 1,
|
|
730
731
|
"tracks": [
|
|
@@ -762,6 +763,101 @@
|
|
|
762
763
|
}
|
|
763
764
|
]
|
|
764
765
|
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "intra-only base with GOP delta in one switching set",
|
|
769
|
+
"valid": true,
|
|
770
|
+
"catalog": {
|
|
771
|
+
"version": 1,
|
|
772
|
+
"tracks": [
|
|
773
|
+
{
|
|
774
|
+
"name": "video/base",
|
|
775
|
+
"packaging": "mmtp",
|
|
776
|
+
"isLive": true,
|
|
777
|
+
"codec": "hvc1.4.10.L120.9F.A",
|
|
778
|
+
"mmtpMode": "mfu",
|
|
779
|
+
"timescale": 90000,
|
|
780
|
+
"groupDurationTicks": 6000,
|
|
781
|
+
"framerate": 15.0,
|
|
782
|
+
"altGroup": 1
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "video/delta",
|
|
786
|
+
"packaging": "mmtp",
|
|
787
|
+
"isLive": true,
|
|
788
|
+
"codec": "hvc1.1.6.L120.90",
|
|
789
|
+
"mmtpMode": "mfu",
|
|
790
|
+
"timescale": 1000000,
|
|
791
|
+
"groupDurationTicks": 1000000,
|
|
792
|
+
"framerate": 15.0,
|
|
793
|
+
"altGroup": 1
|
|
794
|
+
}
|
|
795
|
+
]
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "intra-only member whose frame period does not divide its GOP peer",
|
|
800
|
+
"valid": false,
|
|
801
|
+
"error_code": "track_switching_set",
|
|
802
|
+
"catalog": {
|
|
803
|
+
"version": 1,
|
|
804
|
+
"tracks": [
|
|
805
|
+
{
|
|
806
|
+
"name": "video/base",
|
|
807
|
+
"packaging": "mmtp",
|
|
808
|
+
"isLive": true,
|
|
809
|
+
"codec": "hvc1.4.10.L120.9F.A",
|
|
810
|
+
"mmtpMode": "mfu",
|
|
811
|
+
"timescale": 90000,
|
|
812
|
+
"groupDurationTicks": 6000,
|
|
813
|
+
"framerate": 15.0,
|
|
814
|
+
"altGroup": 1
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "video/delta",
|
|
818
|
+
"packaging": "mmtp",
|
|
819
|
+
"isLive": true,
|
|
820
|
+
"codec": "hvc1.1.6.L120.90",
|
|
821
|
+
"mmtpMode": "mfu",
|
|
822
|
+
"timescale": 1000000,
|
|
823
|
+
"groupDurationTicks": 1050000,
|
|
824
|
+
"framerate": 15.0,
|
|
825
|
+
"altGroup": 1
|
|
826
|
+
}
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "GOP alternates with nested but unequal durations (coarser first)",
|
|
832
|
+
"valid": false,
|
|
833
|
+
"error_code": "track_switching_set",
|
|
834
|
+
"catalog": {
|
|
835
|
+
"version": 1,
|
|
836
|
+
"tracks": [
|
|
837
|
+
{
|
|
838
|
+
"name": "video/1080p",
|
|
839
|
+
"packaging": "mmtp",
|
|
840
|
+
"isLive": true,
|
|
841
|
+
"codec": "hvc1.1.6.L120.90",
|
|
842
|
+
"mmtpMode": "mfu",
|
|
843
|
+
"timescale": 90000,
|
|
844
|
+
"groupDurationTicks": 180000,
|
|
845
|
+
"framerate": 30.0,
|
|
846
|
+
"altGroup": 1
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "video/720p",
|
|
850
|
+
"packaging": "mmtp",
|
|
851
|
+
"isLive": true,
|
|
852
|
+
"codec": "hvc1.1.6.L120.90",
|
|
853
|
+
"mmtpMode": "mfu",
|
|
854
|
+
"timescale": 90000,
|
|
855
|
+
"groupDurationTicks": 90000,
|
|
856
|
+
"framerate": 30.0,
|
|
857
|
+
"altGroup": 1
|
|
858
|
+
}
|
|
859
|
+
]
|
|
860
|
+
}
|
|
765
861
|
}
|
|
766
862
|
]
|
|
767
863
|
}
|
|
@@ -6,20 +6,25 @@ import { createCatalogSchemaValidator } from '@blockcast/mmt-container/catalog-v
|
|
|
6
6
|
|
|
7
7
|
const require = createRequire(import.meta.url)
|
|
8
8
|
const schema = require('@blockcast/mmt-container/catalog.schema.json')
|
|
9
|
-
const
|
|
10
|
-
await readFile(
|
|
11
|
-
new URL('./catalog/negative/multicast-auth-reused-track-format.json', import.meta.url),
|
|
12
|
-
'utf8',
|
|
13
|
-
),
|
|
14
|
-
)
|
|
9
|
+
const fixture = async path => JSON.parse(await readFile(new URL(path, import.meta.url), 'utf8'))
|
|
15
10
|
const validate = createCatalogSchemaValidator(schema)
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
// draft-ramadan-moq-multicast-01 7.2.6: the published schema accepts the
|
|
13
|
+
// draft's own catalog-signaling example through the public entry point...
|
|
14
|
+
assert.equal(
|
|
15
|
+
validate(await fixture('./catalog/positive/multicast-draft01-7-2-6-example.json')),
|
|
16
|
+
true,
|
|
17
|
+
JSON.stringify(validate.errors),
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
// ...and refuses the retired draft -00 root "multicast.auth" key.
|
|
21
|
+
assert.equal(validate(await fixture('./catalog/negative/multicast-auth-root-dotted-key.json')), false)
|
|
18
22
|
assert.ok(
|
|
19
23
|
validate.errors?.some(
|
|
20
24
|
error =>
|
|
21
|
-
error.keyword === '
|
|
22
|
-
error.instancePath === '
|
|
25
|
+
error.keyword === 'additionalProperties' &&
|
|
26
|
+
error.instancePath === '' &&
|
|
27
|
+
error.params.additionalProperty === 'multicast.auth',
|
|
23
28
|
),
|
|
24
29
|
JSON.stringify(validate.errors),
|
|
25
30
|
)
|