@blockcast/mmt-container 2.2.0-main.d62748c7847f → 2.2.0-main.d79fbb738dc0

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 (105) hide show
  1. package/README.md +125 -2
  2. package/dist/__tests__/ad-creative-signer.d.ts +11 -0
  3. package/dist/__tests__/ad-creative-signer.d.ts.map +1 -0
  4. package/dist/ad-creative-record.d.ts +65 -0
  5. package/dist/ad-creative-record.d.ts.map +1 -0
  6. package/dist/ad-creative-record.js +2281 -0
  7. package/dist/ad-creative-record.js.map +7 -0
  8. package/dist/ad-creative-timeline.d.ts +102 -0
  9. package/dist/ad-creative-timeline.d.ts.map +1 -0
  10. package/dist/ad-creative-timeline.js +2529 -0
  11. package/dist/ad-creative-timeline.js.map +7 -0
  12. package/dist/block-policy.d.ts +110 -20
  13. package/dist/block-policy.d.ts.map +1 -1
  14. package/dist/block-policy.js +358 -102
  15. package/dist/block-policy.js.map +2 -2
  16. package/dist/browser-runtime.js +798 -175
  17. package/dist/browser-runtime.js.map +4 -4
  18. package/dist/carp-catalog.d.ts +1 -0
  19. package/dist/carp-catalog.d.ts.map +1 -1
  20. package/dist/carp-catalog.js +34 -0
  21. package/dist/carp-catalog.js.map +4 -4
  22. package/dist/catalog-fec-params.js.map +1 -1
  23. package/dist/cmaf-block-assembler.d.ts +10 -2
  24. package/dist/cmaf-block-assembler.d.ts.map +1 -1
  25. package/dist/cmaf-block-assembler.js +17 -8
  26. package/dist/cmaf-block-assembler.js.map +3 -3
  27. package/dist/conceal-timeline.d.ts +24 -1
  28. package/dist/conceal-timeline.d.ts.map +1 -1
  29. package/dist/conceal-timeline.js +201 -4
  30. package/dist/conceal-timeline.js.map +3 -3
  31. package/dist/event-timeline-mmtp.d.ts +17 -0
  32. package/dist/event-timeline-mmtp.d.ts.map +1 -0
  33. package/dist/event-timeline-mmtp.js +3117 -0
  34. package/dist/event-timeline-mmtp.js.map +7 -0
  35. package/dist/fec-manager.d.ts +19 -4
  36. package/dist/fec-manager.d.ts.map +1 -1
  37. package/dist/fec-manager.js +391 -117
  38. package/dist/fec-manager.js.map +2 -2
  39. package/dist/feed-gate.d.ts +114 -0
  40. package/dist/feed-gate.d.ts.map +1 -0
  41. package/dist/feed-gate.js +175 -0
  42. package/dist/feed-gate.js.map +7 -0
  43. package/dist/index.d.ts +3 -2
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +13 -1
  46. package/dist/index.js.map +2 -2
  47. package/dist/iso-bmff-timing.d.ts +16 -0
  48. package/dist/iso-bmff-timing.d.ts.map +1 -1
  49. package/dist/iso-bmff-timing.js +28 -0
  50. package/dist/iso-bmff-timing.js.map +2 -2
  51. package/dist/mfu-reassembler.d.ts +2 -0
  52. package/dist/mfu-reassembler.d.ts.map +1 -1
  53. package/dist/mfu-reassembler.js +4 -2
  54. package/dist/mfu-reassembler.js.map +2 -2
  55. package/dist/mmtp-container-parser.d.ts +10 -0
  56. package/dist/mmtp-container-parser.d.ts.map +1 -1
  57. package/dist/mmtp-container-parser.js +58 -2
  58. package/dist/mmtp-container-parser.js.map +2 -2
  59. package/dist/mmtp-container-parser.no-modules.js +63 -5
  60. package/dist/mmtp-container-parser.no-modules.js.map +2 -2
  61. package/dist/mmtp-decode-pipeline.js +58 -2
  62. package/dist/mmtp-decode-pipeline.js.map +2 -2
  63. package/dist/mmtp-router.d.ts +18 -3
  64. package/dist/mmtp-router.d.ts.map +1 -1
  65. package/dist/mmtp-router.js +119 -29
  66. package/dist/mmtp-router.js.map +3 -3
  67. package/dist/multicast-manager.d.ts +14 -1
  68. package/dist/multicast-manager.d.ts.map +1 -1
  69. package/dist/multicast-manager.js +563 -171
  70. package/dist/multicast-manager.js.map +3 -3
  71. package/dist/multicast-transport.js +44 -22
  72. package/dist/multicast-transport.js.map +2 -2
  73. package/dist/no-modules.js +58 -2
  74. package/dist/no-modules.js.map +2 -2
  75. package/dist/repair-fetch.d.ts +7 -2
  76. package/dist/repair-fetch.d.ts.map +1 -1
  77. package/dist/repair-fetch.js.map +2 -2
  78. package/dist/wasm-mfu-reassembler.js.map +2 -2
  79. package/dist/wasm-mmtp-container-parser.js +58 -2
  80. package/dist/wasm-mmtp-container-parser.js.map +2 -2
  81. package/package.json +17 -5
  82. package/schemas/catalog.schema.json +7 -2
  83. package/src/ad-creative-record.ts +276 -0
  84. package/src/ad-creative-timeline.ts +409 -0
  85. package/src/block-policy.ts +531 -155
  86. package/src/carp-catalog.ts +9 -0
  87. package/src/cmaf-block-assembler.ts +17 -0
  88. package/src/conceal-timeline.ts +60 -5
  89. package/src/event-timeline-mmtp.ts +55 -0
  90. package/src/fec-manager.ts +48 -15
  91. package/src/feed-gate.ts +295 -0
  92. package/src/index.ts +21 -0
  93. package/src/iso-bmff-timing.ts +33 -0
  94. package/src/mfu-reassembler.ts +4 -0
  95. package/src/mmtp-container-parser.ts +42 -0
  96. package/src/mmtp-router.ts +81 -17
  97. package/src/multicast-manager.ts +20 -0
  98. package/src/repair-fetch.ts +7 -2
  99. package/test-vectors/catalog/README.md +1 -0
  100. package/test-vectors/catalog/negative/event-timeline-empty-event-type.json +41 -0
  101. package/test-vectors/catalog/positive/event-timeline-ad-creative.json +41 -0
  102. package/test-vectors/catalog/positive/event-timeline-wallclock-no-depends.json +38 -0
  103. package/test-vectors/catalog/positive/multicast-event-timeline.json +81 -0
  104. package/test-vectors/catalog/section-codes.json +1 -0
  105. package/test-vectors/frame-needs-v1.json +295 -0
@@ -16,8 +16,10 @@
16
16
  * evidence. There are no timers, no cadence heuristics, and no defaults: a
17
17
  * track whose geometry cannot be derived exactly runs in the defined
18
18
  * fail-closed mode `all-protected`, where the window rule is off: a block is
19
- * treated as possibly keyframe-bearing unless a publisher-stated dependent
20
- * run shows otherwise (the run rule, which needs no catalog geometry).
19
+ * treated as possibly keyframe-bearing unless the MPU numbers of the DU
20
+ * headers held around it show otherwise (the MPU rule). That rule needs no
21
+ * block geometry, but it classes nothing on a track whose catalog does not
22
+ * state a keyframe interval equal to its group duration.
21
23
  *
22
24
  * All three players (moqtail, hang, Shaka) consume this one implementation.
23
25
  */
@@ -76,6 +78,13 @@ export interface BlockClassifierGeometryInput {
76
78
  readonly keyframeIntervalTicks?: number;
77
79
  /** Catalog `keyframeIntervalMs`. */
78
80
  readonly keyframeIntervalMs?: number;
81
+ /**
82
+ * The track's catalog group duration in ms (`catalogGroupDurationMs`: the
83
+ * tick form over the timescale where the catalog states it, so it may be a
84
+ * fraction). Never a cadence. It is only compared with the keyframe
85
+ * interval: the MPU rule classes nothing unless the two are equal.
86
+ */
87
+ readonly groupDurationMs?: number;
79
88
  }
80
89
  /** Exact keyframe interval as a rational number of seconds: ticks / timescale. */
81
90
  export interface KeyframeInterval {
@@ -94,22 +103,50 @@ export type BlockClassifierGeometry = {
94
103
  /** G: frames per GOP. */
95
104
  readonly gopFrames: number;
96
105
  readonly keyframeInterval: KeyframeInterval;
106
+ /** The catalog group duration in ms, when stated (the MPU rule's catalog test). */
107
+ readonly groupDurationMs?: number;
97
108
  } | {
98
109
  readonly trackKind: 'video';
99
110
  readonly mode: 'all-protected';
100
111
  readonly reason: ClassifierReason;
101
112
  /** The catalog interval when one is stated: gap decisions use it (keyframeInstantBetween). */
102
113
  readonly keyframeInterval?: KeyframeInterval;
114
+ /** The catalog group duration in ms, when stated (the MPU rule's catalog test). */
115
+ readonly groupDurationMs?: number;
103
116
  };
104
117
  /**
105
118
  * Derive the per-track classifier geometry from raw catalog fields.
106
119
  *
107
120
  * `all-protected` is the policy's defined fail-closed state, not a default:
108
121
  * it is returned with the exact reason. It turns the window rule off; the
109
- * run rule can still class a block `delta`. The only throw is for a value the
110
- * catalog validator already rejects (a non-positive block span).
122
+ * MPU rule can still class a block `delta` where the catalog states a
123
+ * keyframe interval equal to the group duration (`mpuRuleCatalogReason`).
124
+ * A `classifying` geometry whose catalog does not state that gets no `delta`
125
+ * either: the window rule classes only on a track the MPU rule applies to.
126
+ * The only throw is for a value the catalog validator already rejects (a
127
+ * non-positive block span).
111
128
  */
112
129
  export declare function deriveBlockClassifierGeometry(input: BlockClassifierGeometryInput): BlockClassifierGeometry;
130
+ /**
131
+ * Why the MPU rule classes no block on a track (`BlockClassifier.mpuRuleOff`).
132
+ * Under every reason but the last the window rule classes none either: the
133
+ * track gets no `delta` (fec-multicast-01 Block Classification).
134
+ *
135
+ * The first three are the catalog's: it does not state that the publisher
136
+ * keeps one RAP to an MPU. It carries no usable keyframe interval (none, or
137
+ * one that is not a whole number of its unit), no group duration, or two that
138
+ * differ. The rest are what the stream showed. Each lasts for the epoch but
139
+ * the last, which ends at the next source discontinuity.
140
+ */
141
+ export type MpuRuleOffReason = 'keyframe-interval-absent' | 'group-duration-absent' | 'keyframe-interval-not-group-duration'
142
+ /** A DU header carried RAP_flag and was not the first sample of its movie fragment, or was held and lay in another fragment than the first header held of its MPU. */
143
+ | 'rap-inside-mpu'
144
+ /** An MPU held a sample one keyframe interval or more after another, by decode time. */
145
+ | 'mpu-longer-than-keyframe-interval'
146
+ /** `mpuBoundsRaps` went false (see `BlockClassifier.mpuBoundsRaps`). */
147
+ | 'mpu-bounds-raps-refuted'
148
+ /** Two DU headers lay in blocks against their authored order. */
149
+ | 'du-headers-out-of-order';
113
150
  /**
114
151
  * The keyframe interval expressed in a media track's timescale, or null when
115
152
  * the geometry states none or the interval is not an exact integer number of
@@ -131,7 +168,7 @@ export declare function keyframeInstantBetween(start: bigint, interval: bigint,
131
168
  * network. Repair symbols never contribute, and the MFU `priority > 0x80`
132
169
  * hint is not evidence. A recovered symbol is no evidence for its own block
133
170
  * and supports no class by the window rule; its DU header alone bounds the
134
- * blocks around it for the run rule (BlockClassifier.observeRecovered).
171
+ * blocks around it for the MPU rule (BlockClassifier.observeRecovered).
135
172
  */
136
173
  export interface SourceSymbolEvidence {
137
174
  /** The MMTP header R (RAP) bit. */
@@ -162,17 +199,29 @@ export interface SourceSymbolEvidence {
162
199
  * The MMTP header packet_sequence_number (contiguous per packet_id). Not
163
200
  * classification evidence: FECManager uses it to bound how many blocks the
164
201
  * producer can have started between two source symbols, so an outage is
165
- * never mistaken for a source restart.
202
+ * never mistaken for a source restart. A hop may write it anew on every
203
+ * packet it forwards (cast's bridge does), so a gap in it, or none, says
204
+ * nothing of what was lost before that hop.
166
205
  */
167
206
  readonly packetSequenceNumber?: number;
168
207
  /**
169
- * DU-header `dep_counter`, the sample's dependent run: N above 0 states
170
- * that the N samples after this one are not RAPs and need it
171
- * (draft-ramadan-moq-mmt-02 5.3.4). 0 or absent states nothing.
208
+ * DU-header `dep_counter` (ISO/IEC 23008-1 `dependency_counter`). Carried
209
+ * for whoever wants to see it. Nothing here reads it: no class and no gap
210
+ * decision changes with its value.
172
211
  */
173
212
  readonly depCounter?: number;
174
213
  }
175
- export type ReclassificationEvidence = 'rap' | 'mpu-span' | 'window' | 'dependent-run' | 'classifier-disabled';
214
+ /**
215
+ * What moved a block's class. `mpu-rule`: the MPU numbers of the DU headers
216
+ * held before and after the block show that it holds no part of a RAP.
217
+ */
218
+ export type ReclassificationEvidence = 'rap' | 'mpu-span' | 'window' | 'mpu-rule'
219
+ /**
220
+ * @deprecated Never emitted. It named the dependent run in `dep_counter`,
221
+ * which no longer classes a block. The name stays so that a consumer that
222
+ * spells it still compiles and an event recorded earlier still validates.
223
+ */
224
+ | 'dependent-run' | 'classifier-disabled';
176
225
  export type ClassifierChange = {
177
226
  readonly kind: 'reclassified';
178
227
  readonly sbn: number;
@@ -192,8 +241,11 @@ export type ClassifierChange = {
192
241
  * `delta→unknown` when an invariant disables classification. `keyframe` is
193
242
  * terminal.
194
243
  *
195
- * The delta window rule rests on three premises, each guarded by an
196
- * invariant that fires on positive evidence only:
244
+ * The delta window rule classes a block only on a track the MPU rule applies
245
+ * to: one whose catalog passes that rule's test and that has shown neither a
246
+ * RAP inside an MPU nor an MPU longer than the keyframe interval
247
+ * (`mpuRuleOff`). It rests on three premises, each guarded by an invariant
248
+ * that fires on positive evidence only:
197
249
  *
198
250
  * - P1: the source packets of one block are one contiguous run of the
199
251
  * stream's authored order, and blocks follow each other in SBN order
@@ -250,6 +302,14 @@ export declare class BlockClassifier {
250
302
  * inside an MPU or an MPU ran longer than a GOP.
251
303
  */
252
304
  get mpuBoundsRaps(): boolean;
305
+ /**
306
+ * Why the MPU rule classes no block on this track now, or null while it
307
+ * can. A catalog reason is known from the start of the epoch; the others
308
+ * name what the stream showed. A block the rule would have classed reads
309
+ * `unknown` under every one of them, and so does one the window rule would
310
+ * have classed, under every one but `du-headers-out-of-order`.
311
+ */
312
+ get mpuRuleOff(): MpuRuleOffReason | null;
253
313
  /** Begin a fresh epoch (catalog change or track reset). */
254
314
  reset(geometry?: BlockClassifierGeometry): void;
255
315
  /**
@@ -269,24 +329,54 @@ export declare class BlockClassifier {
269
329
  /**
270
330
  * Register a block that exists without evidence of its own: a vanished
271
331
  * block, or one only repair symbols state. The DU headers already held
272
- * around it class it now (the run rule); no later header need come between
332
+ * around it class it now (the MPU rule); no later header need come between
273
333
  * them to ask again.
274
334
  */
275
335
  touch(sbn: number): ClassifierChange[];
276
336
  /** Forget a resolved block. */
277
337
  forget(sbn: number): void;
278
338
  classOf(sbn: number): BlockClass;
279
- /** Record one first-arrival source symbol's evidence for block `sbn`. */
280
- observe(sbn: number, evidence: SourceSymbolEvidence): ClassifierChange[];
339
+ /**
340
+ * Record one first-arrival source symbol's evidence for block `sbn`.
341
+ * `ssId` is its FEC source symbol id (the block's SS_Start plus its ESI,
342
+ * ISO/IEC 23008-1 C.5.2). The publisher numbers the packets of the FEC
343
+ * flow with it, one each, so the MPU rule reads from it whether every
344
+ * packet between two DU headers arrived. Without it the rule's two
345
+ * exceptions prove nothing.
346
+ */
347
+ observe(sbn: number, evidence: SourceSymbolEvidence, ssId?: number): ClassifierChange[];
348
+ /**
349
+ * A first-arrival source symbol placed in a repair-less span (IsoBlockLocator:
350
+ * the SS_IDs between two stated blocks whose every repair was lost). A span
351
+ * is no block: it can hold several producer blocks, so nothing block-scoped
352
+ * is read from it (no record, P1, P2 or MPU-rule bound) and its blocks stay
353
+ * unknown. What its DU header says of its MPU (P3) still counts (BLO-57323).
354
+ */
355
+ observeInSpan(evidence: SourceSymbolEvidence): ClassifierChange[];
281
356
  /**
282
357
  * The DU header of a source packet that a decode rebuilt, in block `sbn`.
283
- * It bounds the blocks around that block for the run rule as a header that
284
- * arrived does: fec-multicast-01 6.1 reads the DU headers the receiver
285
- * holds. The rebuilt block is whole, so it gets no class and no record,
286
- * and the packet is no evidence for P1 or P3, which rest on what arrived:
287
- * it supports no class by the window rule, and can only end it.
358
+ * It bounds the blocks around that block for the MPU rule as a header that
359
+ * arrived does: the rule reads the DU headers the receiver holds. The
360
+ * rebuilt block is whole, so it gets no class and no record, and the
361
+ * packet is no evidence for P1 or P3, which rest on what arrived: it
362
+ * supports no class by the window rule, and can only end it. It is not
363
+ * counted as a packet that arrived either (#arrivedBetween).
288
364
  */
289
365
  observeRecovered(sbn: number, evidence: SourceSymbolEvidence): ClassifierChange[];
366
+ /**
367
+ * Decode times the receiver can determine: `first` and `last` are those of
368
+ * the first and the last sample that one held movie fragment's metadata
369
+ * (FT=1) times, of MPU `mpu`, in ticks of `mediaTimescale`; a `trun` lists
370
+ * samples in decode order, so `first` is not after `last`. They are read
371
+ * for one thing, and only on a track the MPU rule applies to: an MPU with
372
+ * two samples a keyframe interval or more apart lasts longer than the
373
+ * interval, so its first sample need not be its only RAP. The rule then
374
+ * stops for the rest of the epoch, the window rule with it, and every delta
375
+ * class goes (fec-multicast-01 Block Classification). No class comes from
376
+ * a decode time. The MPU's first sample is never later than the earliest
377
+ * one known, so the known span is no longer than the real one.
378
+ */
379
+ noteDecodeTimes(mpu: number, first: bigint, last: bigint, mediaTimescale: number): ClassifierChange[];
290
380
  /**
291
381
  * Record a RAP frame released in order. Released MPU-start RAPs of MPUs m
292
382
  * and m+n must be exactly n keyframe intervals apart in the media
@@ -1 +1 @@
1
- {"version":3,"file":"block-policy.d.ts","sourceRoot":"","sources":["../src/block-policy.ts"],"names":[],"mapp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