@blockcast/mmt-container 0.4.0-main.bbdfdbf39ded → 0.4.0-main.bd9f80b4a95e

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.
Files changed (62) hide show
  1. package/dist/browser-runtime.js +230 -33
  2. package/dist/browser-runtime.js.map +2 -2
  3. package/dist/carp-catalog.d.ts +5 -6
  4. package/dist/carp-catalog.d.ts.map +1 -1
  5. package/dist/carp-catalog.js +15 -1
  6. package/dist/carp-catalog.js.map +2 -2
  7. package/dist/catalog-fec-params.js.map +2 -2
  8. package/dist/catalog-network-source.d.ts +4 -5
  9. package/dist/catalog-network-source.d.ts.map +1 -1
  10. package/dist/catalog-network-source.js.map +2 -2
  11. package/dist/cmcd-producer.d.ts +8 -0
  12. package/dist/cmcd-producer.d.ts.map +1 -1
  13. package/dist/cmcd-producer.js +14 -0
  14. package/dist/cmcd-producer.js.map +2 -2
  15. package/dist/fec-manager.d.ts +69 -12
  16. package/dist/fec-manager.d.ts.map +1 -1
  17. package/dist/fec-manager.js +162 -18
  18. package/dist/fec-manager.js.map +2 -2
  19. package/dist/fec-worker-setup.d.ts +8 -0
  20. package/dist/fec-worker-setup.d.ts.map +1 -1
  21. package/dist/fec-worker-setup.js +3 -1
  22. package/dist/fec-worker-setup.js.map +2 -2
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js.map +2 -2
  26. package/dist/iso-block-locator.d.ts +9 -1
  27. package/dist/iso-block-locator.d.ts.map +1 -1
  28. package/dist/iso-block-locator.js +11 -0
  29. package/dist/iso-block-locator.js.map +2 -2
  30. package/dist/mmtp-container-parser.no-modules.js +15 -1
  31. package/dist/mmtp-container-parser.no-modules.js.map +2 -2
  32. package/dist/mmtp-router.d.ts +8 -1
  33. package/dist/mmtp-router.d.ts.map +1 -1
  34. package/dist/mmtp-router.js +20 -6
  35. package/dist/mmtp-router.js.map +2 -2
  36. package/dist/multicast-input.d.ts +3 -2
  37. package/dist/multicast-input.d.ts.map +1 -1
  38. package/dist/multicast-input.js +9 -7
  39. package/dist/multicast-input.js.map +2 -2
  40. package/dist/multicast-manager.d.ts +6 -1
  41. package/dist/multicast-manager.d.ts.map +1 -1
  42. package/dist/multicast-manager.js +189 -24
  43. package/dist/multicast-manager.js.map +2 -2
  44. package/dist/no-modules.js +15 -1
  45. package/dist/no-modules.js.map +2 -2
  46. package/package.json +5 -5
  47. package/schemas/catalog.schema.json +12 -4
  48. package/src/carp-catalog.ts +25 -7
  49. package/src/catalog-network-source.ts +4 -5
  50. package/src/cmcd-producer.ts +17 -0
  51. package/src/fec-manager.ts +232 -19
  52. package/src/fec-worker-setup.ts +10 -0
  53. package/src/index.ts +3 -0
  54. package/src/iso-block-locator.ts +12 -1
  55. package/src/mmtp-router.ts +37 -6
  56. package/src/multicast-input.ts +31 -65
  57. package/src/multicast-manager.ts +9 -0
  58. package/test-vectors/catalog/README.md +9 -3
  59. package/test-vectors/catalog/negative/multicast-amt-driad-with-relay.json +38 -0
  60. package/test-vectors/catalog/positive/mmt01-12-1-init-ref-anchor.json +1 -1
  61. package/test-vectors/catalog/positive/multicast-amt-manual-relay.json +1 -1
  62. package/test-vectors/catalog/section-codes.json +1 -0
@@ -564,6 +564,13 @@ export interface FECManagerLike {
564
564
  /** fec-01 4.5: refuse a repair header whose block length the track's scheme
565
565
  * forbids, before it touches block state (optional). */
566
566
  admitRepairBlockLength?(packetId: number, ssbLength: number, rsbLength: number, rsId: number): boolean;
567
+ admitRepairLayerTotal?(
568
+ packetId: number,
569
+ catalogTrackName: string | undefined,
570
+ repairTrackName: string | undefined,
571
+ ssStart: number,
572
+ rsbLength: number,
573
+ ): boolean;
567
574
 
568
575
  /** Validate a repair symbol's size before it touches block state; counts a
569
576
  * mismatch on `repairSymbolSizeMismatches` (optional). */
@@ -1028,6 +1035,8 @@ export class MmtpRouter {
1028
1035
  // FEC Payload IDs left unread because their (owner) packetId had no
1029
1036
  // configured fec.blockProfile (see #noteUnreadableFecPayloadId).
1030
1037
  #fecPayloadIdsWithoutProfile = 0;
1038
+ // Repair packets discarded by the fec-01 4.5 block-length rule.
1039
+ #repairBlockLengthDiscards = 0;
1031
1040
 
1032
1041
  /** The staged in-place stream switch, if any (stageStreamSwitch). */
1033
1042
  #staged: StreamSwitchState | null = null;
@@ -1433,6 +1442,15 @@ export class MmtpRouter {
1433
1442
  return this.#fecPayloadIdsWithoutProfile;
1434
1443
  }
1435
1444
 
1445
+ /**
1446
+ * Repair packets discarded at admission by the fec-01 4.5 rule (RS_ID not
1447
+ * below RSB_length, or a reed-solomon SSB_length + RSB_length above 255),
1448
+ * before they touched any block state.
1449
+ */
1450
+ get repairBlockLengthDiscards(): number {
1451
+ return this.#repairBlockLengthDiscards;
1452
+ }
1453
+
1436
1454
  get reassembler(): MfuReassemblerBackend {
1437
1455
  return this.#parser.reassembler;
1438
1456
  }
@@ -1900,10 +1918,11 @@ export class MmtpRouter {
1900
1918
  packet: Uint8Array,
1901
1919
  ownerPacketIdHint?: number,
1902
1920
  catalogTrackName?: string,
1921
+ repairTrackName?: string,
1903
1922
  ): void {
1904
1923
  if (this.#disposed) return;
1905
1924
  this.#withDeferredFecPokes(() => {
1906
- this.#feedRepairPacket(packet, ownerPacketIdHint, catalogTrackName);
1925
+ this.#feedRepairPacket(packet, ownerPacketIdHint, catalogTrackName, repairTrackName);
1907
1926
  });
1908
1927
  }
1909
1928
 
@@ -1911,6 +1930,7 @@ export class MmtpRouter {
1911
1930
  packet: Uint8Array,
1912
1931
  ownerPacketIdHint: number | undefined,
1913
1932
  catalogTrackName: string | undefined,
1933
+ repairTrackName: string | undefined,
1914
1934
  ): void {
1915
1935
  // One header parse per packet, as on the multicast repair branch: mmt-fec's
1916
1936
  // parseRepairPacket() parsed it once more before this parse (BLO-36599).
@@ -1958,7 +1978,7 @@ export class MmtpRouter {
1958
1978
  this.#noteUnreadableFecPayloadId(ownerPacketId, "repair");
1959
1979
  return;
1960
1980
  }
1961
- this.#handleIsoRepair(ownerPacketId, catalogTrackName, parsed, "moq");
1981
+ this.#handleIsoRepair(ownerPacketId, catalogTrackName, parsed, "moq", repairTrackName);
1962
1982
  }
1963
1983
  }
1964
1984
 
@@ -2064,6 +2084,7 @@ export class MmtpRouter {
2064
2084
  catalogTrackName: string | undefined,
2065
2085
  repair: { ssStart: number; ssbLength: number; rsbLength: number; rsId: number; symbolData: Uint8Array },
2066
2086
  source: "multicast" | "moq",
2087
+ repairTrackName?: string,
2067
2088
  ): void {
2068
2089
  const fec = this.#fecManager;
2069
2090
  if (!fec?.placeIsoRepair) {
@@ -2071,13 +2092,18 @@ export class MmtpRouter {
2071
2092
  `[MmtpRouter] packetId=${ownerPacketId} is iso-ssbg1-v1 but its FEC manager cannot place ISO blocks`,
2072
2093
  );
2073
2094
  }
2074
- // A repair symbol that is not exactly T bytes is invalid: refuse it before
2075
- // it can place a block or be swallowed by dedup, so it is always counted
2076
- // and never reaches the decoder (BLO-48306).
2095
+ // fec-01 4.5: a reed-solomon block-length violation is discarded with the
2096
+ // block state unchanged, so it runs before any other admission.
2077
2097
  if (
2078
2098
  fec.admitRepairBlockLength &&
2079
2099
  !fec.admitRepairBlockLength(ownerPacketId, repair.ssbLength, repair.rsbLength, repair.rsId)
2080
- ) return;
2100
+ ) {
2101
+ this.#repairBlockLengthDiscards++;
2102
+ return;
2103
+ }
2104
+ // A repair symbol that is not exactly T bytes is invalid: refuse it before
2105
+ // it can place a block or be swallowed by dedup, so it is always counted
2106
+ // and never reaches the decoder (BLO-48306).
2081
2107
  if (
2082
2108
  fec.admitRepairSymbolSize &&
2083
2109
  !fec.admitRepairSymbolSize(
@@ -2088,6 +2114,11 @@ export class MmtpRouter {
2088
2114
  repair.symbolData.byteLength,
2089
2115
  )
2090
2116
  ) return;
2117
+ // fec-01 6.3.9: a held layer's total below its anchor fails the track's FEC closed.
2118
+ if (
2119
+ fec.admitRepairLayerTotal &&
2120
+ !fec.admitRepairLayerTotal(ownerPacketId, catalogTrackName, repairTrackName, repair.ssStart, repair.rsbLength)
2121
+ ) return;
2091
2122
  const placement = fec.placeIsoRepair(ownerPacketId, catalogTrackName, repair.ssStart, repair.ssbLength);
2092
2123
  if (placement.status !== "placed") return;
2093
2124
  const blockStart = placement.block.start;
@@ -285,22 +285,15 @@ export function multicastFromConfig(input: MulticastInput): MulticastCatalogConf
285
285
  // `networkSource` is catalog-level, so a per-endpoint relay that differs from
286
286
  // it (another endpoint's, `amtFallback.relayDns`, or an explicit entry) would
287
287
  // otherwise be dropped silently and that endpoint joins the wrong relay.
288
- //
289
- // A DRIAD entry does not count: both readers skip it, so its `relay` is a
290
- // discovery hint, not a relay the catalog carries. Without this the derived
291
- // path merges `amtFallback: {discovery: "driad"}` with an endpoint's
292
- // `relayAddress` into a driad entry holding that relay, the check passes, and
293
- // the join silently falls through to DRIAD -- where the explicit form of the
294
- // same input already fails closed here.
288
+ // A DRIAD entry carries no relay (`validateNetworkSourceEntry`).
295
289
  const amtRelays = new Set(
296
290
  networkSource
297
- .flatMap((s) => (s.type === "amt" && s.discovery !== "driad" && s.relay?.trim() ? [s.relay.trim()] : []))
291
+ .flatMap((s) => (s.type === "amt" && s.relay?.trim() ? [s.relay.trim()] : []))
298
292
  // Only the first, because it is the only one either reader can
299
293
  // deliver: `catalogAmtNetworkSource` returns on it and `findAmtRelay`
300
294
  // uses `.find`. Collecting every entry accepts an endpoint naming a
301
295
  // second manual entry, which then joins the first -- the same silent
302
- // wrong-relay join this guard exists to prevent, through the one
303
- // shape the DRIAD filter does not cover. It also keeps the `(...)`
296
+ // wrong-relay join this guard exists to prevent. It also keeps the `(...)`
304
297
  // listing below honest. Sliced rather than `.find`ed so the `amt`
305
298
  // narrowing stays inside the callback.
306
299
  .slice(0, 1),
@@ -308,48 +301,21 @@ export function multicastFromConfig(input: MulticastInput): MulticastCatalogConf
308
301
  input.endpoints.forEach((ep, idx) => {
309
302
  const relay = ep.relayAddress?.trim();
310
303
  if (!relay || amtRelays.has(relay)) return;
311
- // Two different causes reach this throw and they need different fixes.
312
- // If a DRIAD entry carries this exact relay, the catalog is not missing
313
- // it -- the entry is present and demoted, so reporting the set as
314
- // "(none)" sends the operator looking for an entry they already wrote.
315
- // Name the demotion and the two-entry shape that escapes it; both
316
- // readers take the first non-DRIAD AMT entry
317
- // (`catalog-network-source.ts` `catalogAmtNetworkSource`,
318
- // `multicast-catalog-policy.ts` `findAmtRelay`) and
319
- // `validateNetworkSourceEntry` has no duplicate-type rule, so a manual
320
- // entry beside the DRIAD one is joined while the DRIAD one is kept.
321
- const demoted = networkSource.some(
322
- (s) => s.type === "amt" && s.discovery === "driad" && s.relay?.trim() === relay,
323
- );
324
- // Same "written down but undeliverable" family as `demoted`, different
325
- // reason and so a different fix: there the entry is skipped for its
326
- // discovery, here for its position. Reachable only on the explicit
304
+ // The entry is written down but undeliverable for its position: both
305
+ // readers join the first AMT entry. Reachable only on the explicit
327
306
  // path -- `resolveNetworkSource` emits at most one entry -- so there is
328
307
  // no provenance clause to add, and saying "is not the relay of any AMT
329
308
  // entry" here would be plainly false: the operator can see the entry.
330
309
  // `amtRelays` holds only the first joinable relay, so reaching this
331
310
  // throw at all already means this one is not it.
332
311
  const shadowed = networkSource.some(
333
- (s) => s.type === "amt" && s.discovery !== "driad" && s.relay?.trim() === relay,
312
+ (s) => s.type === "amt" && s.relay?.trim() === relay,
334
313
  );
335
314
  // The derived and env paths never wrote `networkSource` at all -- it was
336
- // synthesised below in `resolveNetworkSource` -- so naming only that key
337
- // would name the one field the operator did not set. This applies to
338
- // EVERY cause that reaches this throw, not just the demoted one: the
339
- // clause belongs in the shared prefix, or the arm that omits it
340
- // reproduces the misdiagnosis the other arm was written to fix.
341
- //
342
- // The two arms are about different values, so they name different
343
- // fields. The demoted arm is about `discovery`: a derived entry is only
344
- // `"driad"` when `amtFallback.discovery` said so (there is no default),
345
- // so `amtFallback` is always the actionable field there.
346
- // The set clause is about the *relay*, which `resolveNetworkSource`
347
- // takes from `amtFallback.relayDns` or from the endpoint
348
- // `relayAddress` values -- and saying "amtFallback" to an operator who
349
- // never wrote one is the same defect one level down. Read that source
350
- // from `relayFrom` rather than re-inferring it: three review rounds
351
- // found a local re-inference here drifting from the rule above it.
352
- const derived = input.networkSource === undefined;
315
+ // synthesised in `resolveNetworkSource` -- so name the input that
316
+ // supplied the relay. Read that source from `relayFrom` rather than
317
+ // re-inferring it: three review rounds found a local re-inference here
318
+ // drifting from the rule above it.
353
319
  const fromAmtFallback = ", derived from amtFallback/MOQCAST_MULTICAST_AMT_*";
354
320
  const fromRelay =
355
321
  relayFrom === "amtFallback.relayDns"
@@ -361,31 +327,23 @@ export function multicastFromConfig(input: MulticastInput): MulticastCatalogConf
361
327
  // the derived path the set can be non-empty and still not hold this
362
328
  // relay. Blaming per-endpoint representation there is wrong twice over:
363
329
  // there may be only one endpoint, and the field that actually won is
364
- // `relayDns`, which is the one the operator can act on. Asking
365
- // `amtRelays` instead would miss the case where the winning entry is
366
- // `discovery: "driad"` and so filtered out of that set entirely.
330
+ // `relayDns`, which is the one the operator can act on.
367
331
  const relayDns = input.amtFallback?.relayDns?.trim();
368
332
  const outranked = relayFrom === "amtFallback.relayDns" && relayDns !== relay;
369
333
  throw new MulticastInputError(
370
334
  "conflicting_amt_relay",
371
335
  idx,
372
336
  `endpoint[${idx}] relayAddress ${JSON.stringify(relay)} ` +
373
- (demoted
374
- ? `is carried only by a multicast.networkSource AMT entry with discovery="driad"` +
375
- `${derived ? fromAmtFallback : ""}, ` +
376
- "whose relay is a DRIAD discovery hint that both readers skip, so the catalog names " +
377
- "no relay to join; to join it, add a manual entry beside the driad one: " +
378
- `[{type:"amt",discovery:"manual",relay:${JSON.stringify(relay)}},{type:"amt",discovery:"driad"}]`
379
- : shadowed
380
- ? `is carried by a multicast.networkSource AMT entry that is not the first one: ` +
381
- `both readers join the first AMT entry (${[...amtRelays].join(", ")}) and ignore ` +
382
- "the rest, so this relay is never joined; keep a single AMT entry, or put this one first"
383
- : `is not the relay of any multicast.networkSource AMT entry ` +
384
- `(${[...amtRelays].join(", ") || "none"})${fromRelay}; ` +
385
- (outranked
386
- ? `amtFallback.relayDns/MOQCAST_MULTICAST_AMT_RELAY_DNS (${relayDns}) outranks an ` +
387
- "endpoint relay when networkSource is derived -- drop one, or make them agree"
388
- : "networkSource is catalog-level and cannot represent per-endpoint relays")),
337
+ (shadowed
338
+ ? `is carried by a multicast.networkSource AMT entry that is not the first one: ` +
339
+ `both readers join the first AMT entry (${[...amtRelays].join(", ")}) and ignore ` +
340
+ "the rest, so this relay is never joined; keep a single AMT entry, or put this one first"
341
+ : `is not the relay of any multicast.networkSource AMT entry ` +
342
+ `(${[...amtRelays].join(", ") || "none"})${fromRelay}; ` +
343
+ (outranked
344
+ ? `amtFallback.relayDns/MOQCAST_MULTICAST_AMT_RELAY_DNS (${relayDns}) outranks an ` +
345
+ "endpoint relay when networkSource is derived -- drop one, or make them agree"
346
+ : "networkSource is catalog-level and cannot represent per-endpoint relays")),
389
347
  );
390
348
  });
391
349
 
@@ -519,6 +477,13 @@ function validateNetworkSourceEntry(s: NetworkSource, i: number): void {
519
477
  if ((s.discovery === "dns" || s.discovery === "manual") && s.relay === undefined) {
520
478
  throw err("amt_requires_relay", `discovery="${s.discovery}" requires a relay ("driad" resolves it at runtime)`);
521
479
  }
480
+ if (s.discovery === "driad" && s.relay !== undefined) {
481
+ throw err(
482
+ "invalid_network_source",
483
+ `discovery="driad" must omit relay: DRIAD supplies the relay candidates (draft -01 4.2.1); ` +
484
+ `drop the relay (amtFallback.relayDns / endpoint relayAddress on the derived path), or use "dns" or "manual"`,
485
+ );
486
+ }
522
487
  if (s.port !== undefined && (!Number.isInteger(s.port) || s.port < 1 || s.port > 65535)) {
523
488
  throw err("invalid_port", `port must be 1..65535; got ${s.port}`);
524
489
  }
@@ -698,8 +663,9 @@ function isSsmGroupAddress(addr: string): boolean {
698
663
  * MOQCAST_MULTICAST[_<idx>]_TRACKS=video:1,audio:3
699
664
  * MOQCAST_MULTICAST[_<idx>]_BANDWIDTH=8000000 (optional, bps)
700
665
  *
701
- * MOQCAST_MULTICAST_AMT_DISCOVERY=driad (catalog-level)
702
- * MOQCAST_MULTICAST_AMT_RELAY_DNS=relay.example.com (catalog-level)
666
+ * MOQCAST_MULTICAST_AMT_DISCOVERY=dns (catalog-level)
667
+ * MOQCAST_MULTICAST_AMT_RELAY_DNS=relay.example.com (catalog-level;
668
+ * must be unset with discovery=driad)
703
669
  *
704
670
  * The unindexed form (`MOQCAST_MULTICAST_GROUP`) is exactly index 0;
705
671
  * mixing it with explicit `_0_` keys is rejected as ambiguous. Indices
@@ -19,6 +19,7 @@ import {
19
19
  type MulticastSymbolDelivery,
20
20
  type RepairVia,
21
21
  type UndelimitedIsoLoss,
22
+ type FecFailClosedEvent,
22
23
  } from "./fec-manager.js";
23
24
  import {
24
25
  deriveBlockClassifierGeometry,
@@ -2896,6 +2897,14 @@ export class MulticastManager {
2896
2897
  this.#fec.setUndelimitedLossHandler(cb);
2897
2898
  }
2898
2899
 
2900
+ /**
2901
+ * Report each stream whose FEC fails closed at runtime (fec-01 6.3.9), e.g.
2902
+ * to CmcdProducer.updateFecFailClosed.
2903
+ */
2904
+ onFecFailClosed(cb: (event: FecFailClosedEvent) => void): void {
2905
+ this.#fec.setFecFailClosedHandler(cb);
2906
+ }
2907
+
2899
2908
  /** End a pending hole's range repair: feed what no repair stated as spans. */
2900
2909
  closeIsoHoles(packetId: number, catalogTrackName: string | undefined, start: number, length: number): void {
2901
2910
  this.#router.closeIsoHoles(packetId, catalogTrackName, start, length);
@@ -144,7 +144,9 @@ epoch 17; `multicast-auth-asm-sender.json` is two protected ASM senders sharing
144
144
  `sourceAddress`), which draft -00 rejected (the former
145
145
  `negative/multicast-endpoint-missing-protocol-and-source.json`); and
146
146
  `multicast-amt-manual-relay.json` is an SSM endpoint reached over a manual AMT
147
- relay, AMT being its `networkSource`, never its protocol.
147
+ relay, AMT being its `networkSource`, never its protocol. `"manual"` names a
148
+ literal relay address (multicast-01 4.2.1); a hostname with `discovery`
149
+ omitted means `"dns"` (`multicast-amt-discovery-omitted.json`).
148
150
 
149
151
  `multicast-native-ssm-no-network-source.json` is the native-SSM shape: an
150
152
  endpoint's `(protocol, sourceAddress, groupAddress, port)` is complete join
@@ -178,8 +180,9 @@ FEC repair format itself is unaffected — a catalog declares it as
178
180
  Draft -01 track and root fields (BLO-15076, Blockcast/moqcast-draft@fd962fd):
179
181
 
180
182
  - `mmt01-12-1-init-ref-anchor.json`: the mmt-01 12.1 example (root `initDataList`
181
- + track `initRef`, `presentationAnchorTicks`). Its root `version` stays `1`:
182
- the draft's `"draft-01"` string is not yet accepted by either validator.
183
+ + track `initRef`, `presentationAnchorTicks`), with the draft's root
184
+ `"version": "draft-01"` tag, which the schema and `validateCmsfMmtpCatalog`
185
+ both accept (BLO-49934).
183
186
  - `presentation-anchor-negative.json`: the mmt-01 4.4.1 negative anchor, on a
184
187
  synchronized audio/video pair.
185
188
  - `multicast-amt-dns-relay.json`, `multicast-amt-discovery-omitted.json`:
@@ -191,3 +194,6 @@ Draft -01 track and root fields (BLO-15076, Blockcast/moqcast-draft@fd962fd):
191
194
  carries `data`.
192
195
  - `multicast-amt-dns-without-relay.json`: `"dns"` (like `"manual"`) names its
193
196
  relay.
197
+ - `multicast-amt-driad-with-relay.json`: multicast-01 4.2.1, `relay` MUST be
198
+ omitted with `"driad"` (DRIAD supplies the candidates). Schema `not`, and
199
+ `validateCmsfMmtpCatalog` `multicast_network_source` (BLO-49934).
@@ -0,0 +1,38 @@
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
+ }
14
+ ],
15
+ "multicast": {
16
+ "endpoints": [
17
+ {
18
+ "protocol": "ssm",
19
+ "sourceAddress": "192.0.2.10",
20
+ "groupAddress": "232.1.1.1",
21
+ "port": 5000,
22
+ "tracks": [
23
+ {
24
+ "name": "video",
25
+ "packetId": 1
26
+ }
27
+ ]
28
+ }
29
+ ],
30
+ "networkSource": [
31
+ {
32
+ "type": "amt",
33
+ "relay": "amt.example.com",
34
+ "discovery": "driad"
35
+ }
36
+ ]
37
+ }
38
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": "draft-01",
3
3
  "streamingFormat": "mmtp",
4
4
  "streamingFormatVersion": "draft-ramadan-moq-mmt-01",
5
5
  "tracks": [
@@ -31,7 +31,7 @@
31
31
  {
32
32
  "type": "amt",
33
33
  "discovery": "manual",
34
- "relay": "amt-relay.example.test"
34
+ "relay": "198.51.100.20"
35
35
  }
36
36
  ]
37
37
  }
@@ -27,6 +27,7 @@
27
27
  "missing-mmtp-fields.json": { "code": "track_mmtp_mode", "path": "$.tracks[0].mmtpMode" },
28
28
  "mmtp-mode-mpu.json": { "code": "track_mmtp_mode", "path": "$.tracks[0].mmtpMode" },
29
29
  "multicast-amt-dns-without-relay.json": { "outOfSection": "multicast" },
30
+ "multicast-amt-driad-with-relay.json": { "outOfSection": "multicast" },
30
31
  "multicast-auth-asm-missing-sender-address.json": { "outOfSection": "multicast.auth" },
31
32
  "multicast-auth-duplicate-first-epoch.json": { "outOfSection": "multicast.auth" },
32
33
  "multicast-auth-duplicate-kid.json": { "outOfSection": "multicast.auth" },