@blockcast/mmt-container 0.1.0-main.149f78a4adae
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 +432 -0
- package/dist/.build-stamp +0 -0
- package/dist/__tests__/test-utils.d.ts +71 -0
- package/dist/__tests__/test-utils.d.ts.map +1 -0
- package/dist/align.d.ts +148 -0
- package/dist/align.d.ts.map +1 -0
- package/dist/align.js +88 -0
- package/dist/align.js.map +7 -0
- package/dist/audio-init-parser.d.ts +66 -0
- package/dist/audio-init-parser.d.ts.map +1 -0
- package/dist/audio-init-parser.js +118 -0
- package/dist/audio-init-parser.js.map +7 -0
- package/dist/audio-ring-buffer.d.ts +50 -0
- package/dist/audio-ring-buffer.d.ts.map +1 -0
- package/dist/audio-ring-buffer.js +93 -0
- package/dist/audio-ring-buffer.js.map +7 -0
- package/dist/authored-timing.d.ts +32 -0
- package/dist/authored-timing.d.ts.map +1 -0
- package/dist/authored-timing.js +32 -0
- package/dist/authored-timing.js.map +7 -0
- package/dist/browser-runtime.js +17109 -0
- package/dist/browser-runtime.js.map +7 -0
- package/dist/carp-catalog.d.ts +318 -0
- package/dist/carp-catalog.d.ts.map +1 -0
- package/dist/carp-catalog.js +549 -0
- package/dist/carp-catalog.js.map +7 -0
- package/dist/catalog-fec-params.d.ts +82 -0
- package/dist/catalog-fec-params.d.ts.map +1 -0
- package/dist/catalog-fec-params.js +66 -0
- package/dist/catalog-fec-params.js.map +7 -0
- package/dist/catalog-network-source.d.ts +19 -0
- package/dist/catalog-network-source.d.ts.map +1 -0
- package/dist/catalog-network-source.js +22 -0
- package/dist/catalog-network-source.js.map +7 -0
- package/dist/catalog-validator.d.ts +18 -0
- package/dist/catalog-validator.d.ts.map +1 -0
- package/dist/catalog-validator.js +7747 -0
- package/dist/catalog-validator.js.map +7 -0
- package/dist/cmaf-block-assembler.d.ts +168 -0
- package/dist/cmaf-block-assembler.d.ts.map +1 -0
- package/dist/cmaf-block-assembler.js +1755 -0
- package/dist/cmaf-block-assembler.js.map +7 -0
- package/dist/cmaf-group-batcher.d.ts +38 -0
- package/dist/cmaf-group-batcher.d.ts.map +1 -0
- package/dist/cmaf-group-batcher.js +195 -0
- package/dist/cmaf-group-batcher.js.map +7 -0
- package/dist/cmcd-producer.d.ts +104 -0
- package/dist/cmcd-producer.d.ts.map +1 -0
- package/dist/cmcd-producer.js +207 -0
- package/dist/cmcd-producer.js.map +7 -0
- package/dist/codec-utils.d.ts +235 -0
- package/dist/codec-utils.d.ts.map +1 -0
- package/dist/codec-utils.js +1225 -0
- package/dist/codec-utils.js.map +7 -0
- package/dist/fec-codec.d.ts +32 -0
- package/dist/fec-codec.d.ts.map +1 -0
- package/dist/fec-codec.js +47 -0
- package/dist/fec-codec.js.map +7 -0
- package/dist/fec-manager.d.ts +266 -0
- package/dist/fec-manager.d.ts.map +1 -0
- package/dist/fec-manager.js +1447 -0
- package/dist/fec-manager.js.map +7 -0
- package/dist/fec-starvation-detector.d.ts +59 -0
- package/dist/fec-starvation-detector.d.ts.map +1 -0
- package/dist/fec-starvation-detector.js +75 -0
- package/dist/fec-starvation-detector.js.map +7 -0
- package/dist/fec-worker-setup.d.ts +76 -0
- package/dist/fec-worker-setup.d.ts.map +1 -0
- package/dist/fec-worker-setup.js +603 -0
- package/dist/fec-worker-setup.js.map +7 -0
- package/dist/fmp4-completion.d.ts +30 -0
- package/dist/fmp4-completion.d.ts.map +1 -0
- package/dist/fmp4-completion.js +21 -0
- package/dist/fmp4-completion.js.map +7 -0
- package/dist/fmp4-reader.d.ts +37 -0
- package/dist/fmp4-reader.d.ts.map +1 -0
- package/dist/fmp4-reader.js +100 -0
- package/dist/fmp4-reader.js.map +7 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +330 -0
- package/dist/index.js.map +7 -0
- package/dist/iso-bmff-timing.d.ts +47 -0
- package/dist/iso-bmff-timing.d.ts.map +1 -0
- package/dist/iso-bmff-timing.js +526 -0
- package/dist/iso-bmff-timing.js.map +7 -0
- package/dist/loc.d.ts +68 -0
- package/dist/loc.d.ts.map +1 -0
- package/dist/loc.js +143 -0
- package/dist/loc.js.map +7 -0
- package/dist/manifest-auth-plan.d.ts +30 -0
- package/dist/manifest-auth-plan.d.ts.map +1 -0
- package/dist/manifest-auth-plan.js +1267 -0
- package/dist/manifest-auth-plan.js.map +7 -0
- package/dist/media-router.d.ts +338 -0
- package/dist/media-router.d.ts.map +1 -0
- package/dist/media-router.js +802 -0
- package/dist/media-router.js.map +7 -0
- package/dist/mfu-reassembler.d.ts +264 -0
- package/dist/mfu-reassembler.d.ts.map +1 -0
- package/dist/mfu-reassembler.js +2668 -0
- package/dist/mfu-reassembler.js.map +7 -0
- package/dist/mfu-reassembly-policy.d.ts +24 -0
- package/dist/mfu-reassembly-policy.d.ts.map +1 -0
- package/dist/mfu-reassembly-policy.js +99 -0
- package/dist/mfu-reassembly-policy.js.map +7 -0
- package/dist/mmtp-container-parser.d.ts +304 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -0
- package/dist/mmtp-container-parser.js +5378 -0
- package/dist/mmtp-container-parser.js.map +7 -0
- package/dist/mmtp-container-parser.no-modules.js +7853 -0
- package/dist/mmtp-container-parser.no-modules.js.map +7 -0
- package/dist/mmtp-decode-pipeline.d.ts +96 -0
- package/dist/mmtp-decode-pipeline.d.ts.map +1 -0
- package/dist/mmtp-decode-pipeline.js +5589 -0
- package/dist/mmtp-decode-pipeline.js.map +7 -0
- package/dist/mmtp-router.d.ts +383 -0
- package/dist/mmtp-router.d.ts.map +1 -0
- package/dist/mmtp-router.js +8384 -0
- package/dist/mmtp-router.js.map +7 -0
- package/dist/mmtp-to-cmaf.d.ts +166 -0
- package/dist/mmtp-to-cmaf.d.ts.map +1 -0
- package/dist/mmtp-to-cmaf.js +781 -0
- package/dist/mmtp-to-cmaf.js.map +7 -0
- package/dist/multicast-auth-catalog.d.ts +115 -0
- package/dist/multicast-auth-catalog.d.ts.map +1 -0
- package/dist/multicast-auth-catalog.js +202 -0
- package/dist/multicast-auth-catalog.js.map +7 -0
- package/dist/multicast-input.d.ts +107 -0
- package/dist/multicast-input.d.ts.map +1 -0
- package/dist/multicast-input.js +256 -0
- package/dist/multicast-input.js.map +7 -0
- package/dist/multicast-manager.d.ts +330 -0
- package/dist/multicast-manager.d.ts.map +1 -0
- package/dist/multicast-manager.js +11032 -0
- package/dist/multicast-manager.js.map +7 -0
- package/dist/multicast-transport.d.ts +62 -0
- package/dist/multicast-transport.d.ts.map +1 -0
- package/dist/multicast-transport.js +338 -0
- package/dist/multicast-transport.js.map +7 -0
- package/dist/multicast-unwrap.d.ts +57 -0
- package/dist/multicast-unwrap.d.ts.map +1 -0
- package/dist/multicast-unwrap.js +384 -0
- package/dist/multicast-unwrap.js.map +7 -0
- package/dist/no-modules.d.ts +9 -0
- package/dist/no-modules.d.ts.map +1 -0
- package/dist/no-modules.js +7819 -0
- package/dist/no-modules.js.map +7 -0
- package/dist/phase14-catalog-override.d.ts +126 -0
- package/dist/phase14-catalog-override.d.ts.map +1 -0
- package/dist/phase14-catalog-override.js +155 -0
- package/dist/phase14-catalog-override.js.map +7 -0
- package/dist/repair-fetch.d.ts +58 -0
- package/dist/repair-fetch.d.ts.map +1 -0
- package/dist/repair-fetch.js +117 -0
- package/dist/repair-fetch.js.map +7 -0
- package/dist/sample-combiner.d.ts +182 -0
- package/dist/sample-combiner.d.ts.map +1 -0
- package/dist/sample-combiner.js +571 -0
- package/dist/sample-combiner.js.map +7 -0
- package/dist/signaling.d.ts +29 -0
- package/dist/signaling.d.ts.map +1 -0
- package/dist/signaling.js +232 -0
- package/dist/signaling.js.map +7 -0
- package/dist/source-auth.d.ts +2 -0
- package/dist/source-auth.d.ts.map +1 -0
- package/dist/source-auth.js +1220 -0
- package/dist/source-auth.js.map +7 -0
- package/dist/switching-set-alignment.d.ts +61 -0
- package/dist/switching-set-alignment.d.ts.map +1 -0
- package/dist/switching-set-alignment.js +85 -0
- package/dist/switching-set-alignment.js.map +7 -0
- package/dist/timestamp-codec.d.ts +34 -0
- package/dist/timestamp-codec.d.ts.map +1 -0
- package/dist/timestamp-codec.js +456 -0
- package/dist/timestamp-codec.js.map +7 -0
- package/dist/track-pipeline-setup.d.ts +72 -0
- package/dist/track-pipeline-setup.d.ts.map +1 -0
- package/dist/track-pipeline-setup.js +306 -0
- package/dist/track-pipeline-setup.js.map +7 -0
- package/dist/track-pipeline.d.ts +121 -0
- package/dist/track-pipeline.d.ts.map +1 -0
- package/dist/track-pipeline.js +229 -0
- package/dist/track-pipeline.js.map +7 -0
- package/dist/track-session.d.ts +269 -0
- package/dist/track-session.d.ts.map +1 -0
- package/dist/track-session.js +597 -0
- package/dist/track-session.js.map +7 -0
- package/dist/transport-pool.d.ts +69 -0
- package/dist/transport-pool.d.ts.map +1 -0
- package/dist/transport-pool.js +88 -0
- package/dist/transport-pool.js.map +7 -0
- package/dist/wasm-mfu-reassembler.d.ts +81 -0
- package/dist/wasm-mfu-reassembler.d.ts.map +1 -0
- package/dist/wasm-mfu-reassembler.js +1915 -0
- package/dist/wasm-mfu-reassembler.js.map +7 -0
- package/dist/wasm-mmtp-container-parser.d.ts +10 -0
- package/dist/wasm-mmtp-container-parser.d.ts.map +1 -0
- package/dist/wasm-mmtp-container-parser.js +5635 -0
- package/dist/wasm-mmtp-container-parser.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/README.md +213 -0
- package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +80 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js +270 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts +252 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js +11 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts +14 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js +565 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts +10 -0
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/index.js +8 -0
- package/node_modules/@blockcast/fec-worker/dist/index.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts +20 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js +349 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts +104 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js +181 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts +179 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js +47 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts +9 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.js +13 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/package.json +59 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +309 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +268 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +1048 -0
- package/node_modules/@blockcast/fec-worker/src/index.ts +32 -0
- package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +558 -0
- package/node_modules/@blockcast/fec-worker/src/shred-worker-client.ts +222 -0
- package/node_modules/@blockcast/fec-worker/src/shred-worker-types.ts +194 -0
- package/node_modules/@blockcast/fec-worker/src/transfer.ts +12 -0
- package/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
- package/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
- package/node_modules/@blockcast/mmt-base/README.md +120 -0
- package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts +2 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js +2 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +275 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js +644 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/package.json +49 -0
- package/node_modules/@blockcast/mmt-base/src/index.ts +1 -0
- package/node_modules/@blockcast/mmt-base/src/mmtp.ts +898 -0
- package/node_modules/@blockcast/mmt-fec/README.md +270 -0
- package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +80 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js +294 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts +72 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js +192 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts +46 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js +96 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts +33 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js +57 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts +185 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js +273 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts +22 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.js +22 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts +20 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js +28 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts +174 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.js +256 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts +41 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js +81 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/README.md +120 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +2 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js +2 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +275 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js +644 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/package.json +49 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +898 -0
- package/node_modules/@blockcast/mmt-fec/package.json +79 -0
- package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +369 -0
- package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +277 -0
- package/node_modules/@blockcast/mmt-fec/src/cmaf-recovery.ts +127 -0
- package/node_modules/@blockcast/mmt-fec/src/cmaf-symbols.ts +68 -0
- package/node_modules/@blockcast/mmt-fec/src/fec-block-mapper.ts +332 -0
- package/node_modules/@blockcast/mmt-fec/src/index.ts +77 -0
- package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +34 -0
- package/node_modules/@blockcast/mmt-fec/src/oti.ts +319 -0
- package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +101 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts +28 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js +128 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts +4 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js +4 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts +37 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js +179 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts +90 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js +462 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/package.json +45 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/admission.ts +171 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/index.ts +3 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/source-auth.ts +230 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/verifier.ts +636 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +521 -0
- package/node_modules/@noble/hashes/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_assert.js +18 -0
- package/node_modules/@noble/hashes/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_blake.js +50 -0
- package/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_md.js +162 -0
- package/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@noble/hashes/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_u64.js +90 -0
- package/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/argon2.js +401 -0
- package/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake1.js +459 -0
- package/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +420 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2b.js +14 -0
- package/node_modules/@noble/hashes/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2s.js +24 -0
- package/node_modules/@noble/hashes/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake3.js +255 -0
- package/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/crypto.js +5 -0
- package/node_modules/@noble/hashes/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.js +18 -0
- package/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/eskdf.js +166 -0
- package/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.js +15 -0
- package/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.js +45 -0
- package/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.js +155 -0
- package/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.js +67 -0
- package/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.js +392 -0
- package/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.js +452 -0
- package/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.js +413 -0
- package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.js +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.js +21 -0
- package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.js +251 -0
- package/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.js +2 -0
- package/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.js +160 -0
- package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.js +82 -0
- package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.js +86 -0
- package/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/esm/index.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/index.js +33 -0
- package/node_modules/@noble/hashes/esm/index.js.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.js +281 -0
- package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/esm/package.json +10 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.js +228 -0
- package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.js +11 -0
- package/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.js +375 -0
- package/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.js +20 -0
- package/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.js +234 -0
- package/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.js +26 -0
- package/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.js +281 -0
- package/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hkdf.js +88 -0
- package/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hmac.js +91 -0
- package/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/index.d.ts +1 -0
- package/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/index.js +33 -0
- package/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@noble/hashes/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +287 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +266 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/pbkdf2.js +101 -0
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.js +16 -0
- package/node_modules/@noble/hashes/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/scrypt.js +232 -0
- package/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha1.js +14 -0
- package/node_modules/@noble/hashes/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha2.js +384 -0
- package/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha256.js +23 -0
- package/node_modules/@noble/hashes/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.js +402 -0
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3.js +239 -0
- package/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha512.js +29 -0
- package/node_modules/@noble/hashes/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/src/_assert.ts +22 -0
- package/node_modules/@noble/hashes/src/_blake.ts +50 -0
- package/node_modules/@noble/hashes/src/_md.ts +176 -0
- package/node_modules/@noble/hashes/src/_u64.ts +91 -0
- package/node_modules/@noble/hashes/src/argon2.ts +497 -0
- package/node_modules/@noble/hashes/src/blake1.ts +534 -0
- package/node_modules/@noble/hashes/src/blake2.ts +486 -0
- package/node_modules/@noble/hashes/src/blake2b.ts +10 -0
- package/node_modules/@noble/hashes/src/blake2s.ts +20 -0
- package/node_modules/@noble/hashes/src/blake3.ts +272 -0
- package/node_modules/@noble/hashes/src/crypto.ts +9 -0
- package/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +187 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +88 -0
- package/node_modules/@noble/hashes/src/hmac.ts +94 -0
- package/node_modules/@noble/hashes/src/index.ts +31 -0
- package/node_modules/@noble/hashes/src/legacy.ts +293 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
- package/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +257 -0
- package/node_modules/@noble/hashes/src/sha1.ts +10 -0
- package/node_modules/@noble/hashes/src/sha2.ts +402 -0
- package/node_modules/@noble/hashes/src/sha256.ts +24 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
- package/node_modules/@noble/hashes/src/sha3.ts +258 -0
- package/node_modules/@noble/hashes/src/sha512.ts +34 -0
- package/node_modules/@noble/hashes/src/utils.ts +395 -0
- package/node_modules/@noble/hashes/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/utils.js +313 -0
- package/node_modules/@noble/hashes/utils.js.map +1 -0
- package/package.json +203 -0
- package/schemas/catalog.schema.json +283 -0
- package/src/align.ts +235 -0
- package/src/audio-init-parser.ts +189 -0
- package/src/audio-ring-buffer.ts +120 -0
- package/src/authored-timing.ts +63 -0
- package/src/carp-catalog.ts +776 -0
- package/src/catalog-fec-params.ts +167 -0
- package/src/catalog-network-source.ts +49 -0
- package/src/catalog-validator.ts +34 -0
- package/src/cmaf-block-assembler.ts +1058 -0
- package/src/cmaf-group-batcher.ts +104 -0
- package/src/cmcd-producer.ts +329 -0
- package/src/codec-utils.ts +1539 -0
- package/src/fec-codec.ts +61 -0
- package/src/fec-manager.ts +1939 -0
- package/src/fec-starvation-detector.ts +128 -0
- package/src/fec-worker-setup.ts +177 -0
- package/src/fmp4-completion.ts +47 -0
- package/src/fmp4-reader.ts +112 -0
- package/src/index.ts +443 -0
- package/src/iso-bmff-timing.ts +688 -0
- package/src/loc.ts +181 -0
- package/src/manifest-auth-plan.ts +107 -0
- package/src/media-router.ts +1185 -0
- package/src/mfu-reassembler.ts +2842 -0
- package/src/mfu-reassembly-policy.ts +134 -0
- package/src/mmtp-container-parser.ts +1498 -0
- package/src/mmtp-decode-pipeline.ts +315 -0
- package/src/mmtp-router.ts +3027 -0
- package/src/mmtp-to-cmaf.ts +956 -0
- package/src/multicast-auth-catalog.ts +340 -0
- package/src/multicast-input.ts +439 -0
- package/src/multicast-manager.ts +1503 -0
- package/src/multicast-transport.ts +320 -0
- package/src/multicast-unwrap.ts +132 -0
- package/src/no-modules.ts +20 -0
- package/src/phase14-catalog-override.ts +336 -0
- package/src/repair-fetch.ts +217 -0
- package/src/sample-combiner.ts +846 -0
- package/src/signaling.ts +78 -0
- package/src/source-auth.ts +1 -0
- package/src/switching-set-alignment.ts +109 -0
- package/src/timestamp-codec.ts +265 -0
- package/src/track-pipeline-setup.ts +189 -0
- package/src/track-pipeline.ts +332 -0
- package/src/track-session.ts +778 -0
- package/src/transport-pool.ts +128 -0
- package/src/wasm-mfu-reassembler.ts +372 -0
- package/src/wasm-mmtp-container-parser.ts +23 -0
- package/test-vectors/align.json +199 -0
- package/test-vectors/catalog/README.md +25 -0
- package/test-vectors/catalog/negative/legacy-selection-params.json +15 -0
- package/test-vectors/catalog/negative/missing-mmtp-fields.json +12 -0
- package/test-vectors/catalog/negative/multicast-auth-padded-key.json +37 -0
- package/test-vectors/catalog/negative/multicast-auth-reused-track-format.json +53 -0
- package/test-vectors/catalog/negative/multicast-auth-trailing-pad-bits.json +37 -0
- package/test-vectors/catalog/negative/multicast-endpoint-missing-protocol-and-source.json +24 -0
- package/test-vectors/catalog/negative/network-source-object.json +25 -0
- package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +26 -0
- package/test-vectors/catalog/negative/repair-track-legacy-shape.json +18 -0
- package/test-vectors/catalog/negative/track-role-empty.json +16 -0
- package/test-vectors/catalog/negative/track-role-non-string.json +16 -0
- package/test-vectors/catalog/positive/fec-multicast.json +51 -0
- package/test-vectors/catalog/positive/flat-av.json +30 -0
- package/test-vectors/catalog/positive/multicast-auth-rotation.json +55 -0
- package/test-vectors/catalog/positive/ticks-and-mixed-timescales.json +39 -0
- package/test-vectors/catalog/positive/track-role.json +49 -0
- package/test-vectors/catalog/releases/moqcast-native-v16-v1/catalog.json +65 -0
- package/test-vectors/catalog/releases/moqcast-native-v16-v1.archive.sha256 +1 -0
- package/test-vectors/catalog-multicast-auth-v1.json +26 -0
- package/test-vectors/catalog-validation.json +148 -0
- package/test-vectors/catalog-validator-public-api.mjs +25 -0
- package/test-vectors/generate-source-auth-fixture.mjs +114 -0
- package/test-vectors/source-auth-v1.json +61 -0
- package/test-vectors/subsample-placement-v1.json +230 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin transport wrapper for SSM multicast — join, socket, watchdog,
|
|
3
|
+
* takeover/failback. Delegates raw packets to a callback (MmtpRouter
|
|
4
|
+
* or any direct consumer).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type {
|
|
8
|
+
WindowMulticastGateway,
|
|
9
|
+
WindowMulticastResolvedTransport,
|
|
10
|
+
WindowMulticastSubscription,
|
|
11
|
+
} from '@blockcast/mmt-transport'
|
|
12
|
+
import { parseMMTPHeader } from '@blockcast/mmt-base'
|
|
13
|
+
|
|
14
|
+
export interface MulticastTransportConfig {
|
|
15
|
+
sourceAddress: string
|
|
16
|
+
groupAddress: string
|
|
17
|
+
port: number
|
|
18
|
+
mode?: 'auto' | 'native' | 'tunnel'
|
|
19
|
+
amtRelay?: string
|
|
20
|
+
amtRelayPort?: number
|
|
21
|
+
packetIds?: number[]
|
|
22
|
+
tracks?: { name: string; packetId: number }[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ResolvedMulticastTransport = WindowMulticastResolvedTransport
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Receive counters plus the ingress-filter drop counters.
|
|
29
|
+
*
|
|
30
|
+
* `packetsReceived` / `bytesReceived` count only packets that passed the
|
|
31
|
+
* allow-list and were handed to the page — a rejected packet must never
|
|
32
|
+
* inflate them. The `dropped*` counters are the other half of that story:
|
|
33
|
+
* without them a filtered PID is indistinguishable from a PID that was never
|
|
34
|
+
* transmitted, which is exactly the ambiguity that makes an all-zero FEC
|
|
35
|
+
* repair count unreadable (a repair leg dropped here and a repair leg the
|
|
36
|
+
* publisher never sent produce byte-identical downstream telemetry).
|
|
37
|
+
*/
|
|
38
|
+
export interface MulticastTransportStats {
|
|
39
|
+
packetsReceived: number
|
|
40
|
+
bytesReceived: number
|
|
41
|
+
/** Parsed cleanly, but the packet ID is absent from the join's allow-list. */
|
|
42
|
+
packetsDroppedUnregisteredPid: number
|
|
43
|
+
/** MMTP header did not parse; the packet ID is unknown, so it cannot be attributed. */
|
|
44
|
+
packetsDroppedUnparseable: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Distinct unregistered PIDs retained for diagnostics. A conformant catalog
|
|
49
|
+
* advertises a handful of PIDs per endpoint, so this only has to be large
|
|
50
|
+
* enough to name every leg of a mis-provisioned one; the cap exists so a
|
|
51
|
+
* malformed or hostile stream cycling the 16-bit PID space cannot grow the map
|
|
52
|
+
* without bound. Drops keep counting in aggregate after the cap.
|
|
53
|
+
*/
|
|
54
|
+
const MAX_TRACKED_DROPPED_PIDS = 16
|
|
55
|
+
|
|
56
|
+
type MulticastGlobals = typeof globalThis & {
|
|
57
|
+
multicast?: WindowMulticastGateway
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function getMulticastGlobals(): MulticastGlobals {
|
|
61
|
+
return globalThis as MulticastGlobals
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function hasMulticastGateway(): boolean {
|
|
65
|
+
return typeof getMulticastGlobals().multicast?.subscribe === 'function'
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function normalizeResolvedTransport(value: unknown): ResolvedMulticastTransport | undefined {
|
|
69
|
+
if (value === 'native') return 'native'
|
|
70
|
+
if (value === 'amt') return 'amt'
|
|
71
|
+
return undefined
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class MulticastTransport<TPacketContext = never> {
|
|
75
|
+
#onPacket: (packet: Uint8Array, context?: TPacketContext) => void
|
|
76
|
+
#subscription: WindowMulticastSubscription | null = null
|
|
77
|
+
#bytesListener: ((event: CustomEvent<ArrayBuffer>) => void) | null = null
|
|
78
|
+
#transportListener: ((event: CustomEvent<ResolvedMulticastTransport>) => void) | null = null
|
|
79
|
+
#resolvedTransport: ResolvedMulticastTransport | undefined
|
|
80
|
+
#videoConfirmed = false
|
|
81
|
+
#audioConfirmed = false
|
|
82
|
+
#watchdog: ReturnType<typeof setTimeout> | null = null
|
|
83
|
+
#failbackWindowMs: number | null = null
|
|
84
|
+
#onTakeover: (() => void) | null = null
|
|
85
|
+
#onFailback: (() => void) | null = null
|
|
86
|
+
#disposed = false
|
|
87
|
+
#stats: MulticastTransportStats = {
|
|
88
|
+
packetsReceived: 0,
|
|
89
|
+
bytesReceived: 0,
|
|
90
|
+
packetsDroppedUnregisteredPid: 0,
|
|
91
|
+
packetsDroppedUnparseable: 0,
|
|
92
|
+
}
|
|
93
|
+
#droppedPidCounts = new Map<number, number>()
|
|
94
|
+
#packetIds: ReadonlySet<number> | null = null
|
|
95
|
+
#joinGeneration = 0
|
|
96
|
+
|
|
97
|
+
constructor(onPacket: (packet: Uint8Array, context?: TPacketContext) => void) {
|
|
98
|
+
this.#onPacket = onPacket
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static isAvailable(): boolean {
|
|
102
|
+
return hasMulticastGateway()
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async join(config: MulticastTransportConfig, context?: TPacketContext): Promise<boolean> {
|
|
106
|
+
const generation = ++this.#joinGeneration
|
|
107
|
+
this.#releaseSubscription()
|
|
108
|
+
|
|
109
|
+
if (this.#disposed) return false
|
|
110
|
+
if (!MulticastTransport.isAvailable()) {
|
|
111
|
+
console.warn('[MulticastTransport] Multicast API not available')
|
|
112
|
+
return false
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
try {
|
|
116
|
+
const packetIds = config.packetIds?.length ? new Set(config.packetIds) : null
|
|
117
|
+
console.log(
|
|
118
|
+
`[MulticastTransport] window.multicast.subscribe(${config.sourceAddress}, ${config.groupAddress}, ${config.port})`,
|
|
119
|
+
)
|
|
120
|
+
const subscription = await getMulticastGlobals().multicast!.subscribe!({
|
|
121
|
+
source: config.sourceAddress,
|
|
122
|
+
group: config.groupAddress,
|
|
123
|
+
port: config.port,
|
|
124
|
+
consume: 'bytes',
|
|
125
|
+
mode: config.mode,
|
|
126
|
+
amtRelay: config.amtRelay,
|
|
127
|
+
amtRelayPort: config.amtRelayPort,
|
|
128
|
+
packetIds: config.packetIds,
|
|
129
|
+
tracks: config.tracks?.map(({ name, packetId }) => ({ name, packetId })),
|
|
130
|
+
})
|
|
131
|
+
console.log(`[MulticastTransport] window.multicast.subscribe returned:`, !!subscription)
|
|
132
|
+
|
|
133
|
+
if (this.#disposed || generation !== this.#joinGeneration) {
|
|
134
|
+
void subscription.unsubscribe()
|
|
135
|
+
return false
|
|
136
|
+
}
|
|
137
|
+
if (typeof subscription.addEventListener !== 'function') {
|
|
138
|
+
if (typeof subscription.unsubscribe === 'function') {
|
|
139
|
+
void subscription.unsubscribe()
|
|
140
|
+
}
|
|
141
|
+
throw new Error('window.multicast subscription does not support bytes events')
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const onBytes = (event: CustomEvent<ArrayBuffer>) => {
|
|
145
|
+
if (this.#disposed || generation !== this.#joinGeneration) return
|
|
146
|
+
const detail = event.detail
|
|
147
|
+
const packet = detail instanceof Uint8Array ? detail : new Uint8Array(detail)
|
|
148
|
+
if (!this.#acceptPacket(packet)) return
|
|
149
|
+
this.#stats.packetsReceived++
|
|
150
|
+
this.#stats.bytesReceived += packet.byteLength
|
|
151
|
+
this.#onPacket(packet, context)
|
|
152
|
+
this.#resetWatchdog()
|
|
153
|
+
}
|
|
154
|
+
const onTransportChange = (event: CustomEvent<ResolvedMulticastTransport>) => {
|
|
155
|
+
if (this.#disposed || generation !== this.#joinGeneration) return
|
|
156
|
+
const transport = normalizeResolvedTransport(event.detail)
|
|
157
|
+
if (transport) this.#resolvedTransport = transport
|
|
158
|
+
}
|
|
159
|
+
this.#subscription = subscription
|
|
160
|
+
this.#bytesListener = onBytes
|
|
161
|
+
this.#transportListener = onTransportChange
|
|
162
|
+
this.#packetIds = packetIds
|
|
163
|
+
this.#resolvedTransport = normalizeResolvedTransport(subscription.transport)
|
|
164
|
+
subscription.addEventListener('bytes', onBytes)
|
|
165
|
+
subscription.addEventListener('transportchange', onTransportChange)
|
|
166
|
+
this.#resetWatchdog()
|
|
167
|
+
console.log(
|
|
168
|
+
`[MulticastTransport] Joined ${config.groupAddress}:${config.port}`,
|
|
169
|
+
)
|
|
170
|
+
return true
|
|
171
|
+
} catch (err) {
|
|
172
|
+
if (this.#disposed || generation !== this.#joinGeneration) return false
|
|
173
|
+
this.#releaseSubscription()
|
|
174
|
+
console.error('[MulticastTransport] Failed to join SSM group:', err)
|
|
175
|
+
return false
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** Feed a raw packet from an external source (e.g., AMT tunnel or ASM subscription). */
|
|
180
|
+
feedPacket(data: ArrayBuffer | Uint8Array, context?: TPacketContext): void {
|
|
181
|
+
if (this.#disposed) return
|
|
182
|
+
const packet = data instanceof Uint8Array ? data : new Uint8Array(data)
|
|
183
|
+
if (!this.#acceptPacket(packet)) return
|
|
184
|
+
this.#stats.packetsReceived++
|
|
185
|
+
this.#stats.bytesReceived += packet.byteLength
|
|
186
|
+
this.#onPacket(packet, context)
|
|
187
|
+
this.#resetWatchdog()
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
confirmVideo(): void {
|
|
191
|
+
this.#videoConfirmed = true
|
|
192
|
+
this.#checkTakeover()
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
confirmAudio(): void {
|
|
196
|
+
this.#audioConfirmed = true
|
|
197
|
+
this.#checkTakeover()
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
onTakeover(cb: () => void): void {
|
|
201
|
+
this.#onTakeover = cb
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
onFailback(cb: () => void): void {
|
|
205
|
+
this.#onFailback = cb
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
setFailbackWindowMs(windowMs: number): void {
|
|
209
|
+
if (!Number.isFinite(windowMs) || windowMs <= 0) {
|
|
210
|
+
throw new Error(
|
|
211
|
+
`[MulticastTransport] failbackWindowMs=${windowMs}. ` +
|
|
212
|
+
`Derive a positive failback window from the stream catalog.`,
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
this.#failbackWindowMs = windowMs
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
get stats(): MulticastTransportStats {
|
|
219
|
+
return this.#stats
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Per-PID drop breakdown, newest-capped at MAX_TRACKED_DROPPED_PIDS distinct
|
|
224
|
+
* PIDs. This is what names the offender: `packetsDroppedUnregisteredPid`
|
|
225
|
+
* says the ingress filter fired, this says it fired on 0x8001.
|
|
226
|
+
*/
|
|
227
|
+
get droppedPacketIds(): ReadonlyMap<number, number> {
|
|
228
|
+
return this.#droppedPidCounts
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
get resolvedTransport(): ResolvedMulticastTransport | undefined {
|
|
232
|
+
return this.#resolvedTransport
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
dispose(): void {
|
|
236
|
+
++this.#joinGeneration
|
|
237
|
+
this.#disposed = true
|
|
238
|
+
this.#releaseSubscription()
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
#releaseSubscription(): void {
|
|
242
|
+
if (this.#watchdog) clearTimeout(this.#watchdog)
|
|
243
|
+
this.#watchdog = null
|
|
244
|
+
if (this.#subscription) {
|
|
245
|
+
if (this.#bytesListener) {
|
|
246
|
+
this.#subscription.removeEventListener('bytes', this.#bytesListener)
|
|
247
|
+
}
|
|
248
|
+
if (this.#transportListener) {
|
|
249
|
+
this.#subscription.removeEventListener('transportchange', this.#transportListener)
|
|
250
|
+
}
|
|
251
|
+
void this.#subscription.unsubscribe()
|
|
252
|
+
}
|
|
253
|
+
this.#subscription = null
|
|
254
|
+
this.#bytesListener = null
|
|
255
|
+
this.#transportListener = null
|
|
256
|
+
this.#resolvedTransport = undefined
|
|
257
|
+
this.#packetIds = null
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
#acceptPacket(packet: Uint8Array): boolean {
|
|
261
|
+
if (!this.#packetIds) return true
|
|
262
|
+
let packetId: number
|
|
263
|
+
try {
|
|
264
|
+
// This early parse is intentional: rejected PIDs must not affect page
|
|
265
|
+
// delivery, receive statistics, or the failback liveness watchdog.
|
|
266
|
+
packetId = parseMMTPHeader(packet).packetId
|
|
267
|
+
} catch {
|
|
268
|
+
this.#stats.packetsDroppedUnparseable++
|
|
269
|
+
return false
|
|
270
|
+
}
|
|
271
|
+
if (this.#packetIds.has(packetId)) return true
|
|
272
|
+
this.#recordUnregisteredPidDrop(packetId)
|
|
273
|
+
return false
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
#recordUnregisteredPidDrop(packetId: number): void {
|
|
277
|
+
this.#stats.packetsDroppedUnregisteredPid++
|
|
278
|
+
const seen = this.#droppedPidCounts.get(packetId)
|
|
279
|
+
if (seen !== undefined) {
|
|
280
|
+
this.#droppedPidCounts.set(packetId, seen + 1)
|
|
281
|
+
return
|
|
282
|
+
}
|
|
283
|
+
if (this.#droppedPidCounts.size >= MAX_TRACKED_DROPPED_PIDS) return
|
|
284
|
+
this.#droppedPidCounts.set(packetId, 1)
|
|
285
|
+
// Warn once per distinct PID. A PID arriving on the wire but missing from
|
|
286
|
+
// the catalog's advertised set is a provisioning fault, not stream noise,
|
|
287
|
+
// and it is silent in every downstream counter.
|
|
288
|
+
console.warn(
|
|
289
|
+
`[MulticastTransport] Dropping packetId=${packetId} (0x${packetId.toString(16)}): ` +
|
|
290
|
+
`not in the advertised set [${[...this.#packetIds!].join(', ')}]. ` +
|
|
291
|
+
`If this is an FEC repair leg, the catalog is not advertising its packetId.`,
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
#checkTakeover(): void {
|
|
296
|
+
if (this.#videoConfirmed && this.#audioConfirmed && this.#onTakeover) {
|
|
297
|
+
const cb = this.#onTakeover
|
|
298
|
+
this.#onTakeover = null // fire exactly once
|
|
299
|
+
cb()
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
#resetWatchdog(): void {
|
|
304
|
+
if (this.#watchdog) clearTimeout(this.#watchdog)
|
|
305
|
+
if (!this.#onFailback) return
|
|
306
|
+
if (this.#failbackWindowMs === null) {
|
|
307
|
+
throw new Error(
|
|
308
|
+
'[MulticastTransport] Failback watchdog requires a catalog-derived window',
|
|
309
|
+
)
|
|
310
|
+
}
|
|
311
|
+
this.#watchdog = setTimeout(() => {
|
|
312
|
+
if (!this.#disposed && this.#onFailback) {
|
|
313
|
+
console.warn(
|
|
314
|
+
`[MulticastTransport] No packets for ${this.#failbackWindowMs}ms; failing back to MoQ`,
|
|
315
|
+
)
|
|
316
|
+
this.#onFailback()
|
|
317
|
+
}
|
|
318
|
+
}, this.#failbackWindowMs)
|
|
319
|
+
}
|
|
320
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mmt/container - Container-aware multicast MMTP unwrapper
|
|
3
|
+
*
|
|
4
|
+
* Dispatches raw multicast MMTP packets into typed media or Annex C repair
|
|
5
|
+
* frames. Handles FEC source payload ID extraction and repair packet parsing.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
type MMTPHeader,
|
|
12
|
+
type MFUExtraction,
|
|
13
|
+
parseMMTPHeader,
|
|
14
|
+
parseMoqRepairFrame,
|
|
15
|
+
extractMFUPayload,
|
|
16
|
+
hasSourceFecPayloadId,
|
|
17
|
+
MMTP_HEADER_SIZE,
|
|
18
|
+
PACKET_TYPE_REPAIR,
|
|
19
|
+
} from '@blockcast/mmt-base'
|
|
20
|
+
|
|
21
|
+
/** The immutable reader contract selected by a multicast consumer. */
|
|
22
|
+
export interface MulticastContainerContract {
|
|
23
|
+
version: 1
|
|
24
|
+
kind: 'mmtp'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type MulticastContainerErrorCode =
|
|
28
|
+
| 'unsupported_version'
|
|
29
|
+
| 'unsupported_kind'
|
|
30
|
+
| 'ambiguous_kind'
|
|
31
|
+
| 'malformed_selector'
|
|
32
|
+
|
|
33
|
+
/** Versioned, fail-closed contract selection error. */
|
|
34
|
+
export class MulticastContainerContractError extends TypeError {
|
|
35
|
+
readonly version = 1
|
|
36
|
+
readonly code: MulticastContainerErrorCode
|
|
37
|
+
|
|
38
|
+
constructor(code: MulticastContainerErrorCode, detail: string) {
|
|
39
|
+
super(`multicast-container/v1/${code}: ${detail}`)
|
|
40
|
+
this.name = 'MulticastContainerContractError'
|
|
41
|
+
this.code = code
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Validate the only reader currently frozen by the container contract. */
|
|
46
|
+
export function validateMulticastContainerContract(
|
|
47
|
+
contract: unknown,
|
|
48
|
+
): MulticastContainerContract {
|
|
49
|
+
if (contract === null || typeof contract !== 'object') {
|
|
50
|
+
throw new MulticastContainerContractError('malformed_selector', 'selector is required')
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const value = contract as Record<string, unknown>
|
|
54
|
+
if (value['version'] !== 1) {
|
|
55
|
+
throw new MulticastContainerContractError('unsupported_version', 'only version 1 is supported')
|
|
56
|
+
}
|
|
57
|
+
if (value['kind'] === undefined || value['kind'] === null || value['kind'] === '') {
|
|
58
|
+
throw new MulticastContainerContractError('ambiguous_kind', 'container kind is required')
|
|
59
|
+
}
|
|
60
|
+
if (value['kind'] !== 'mmtp') {
|
|
61
|
+
throw new MulticastContainerContractError('unsupported_kind', `reader is not implemented for ${String(value['kind'])}`)
|
|
62
|
+
}
|
|
63
|
+
return { version: 1, kind: 'mmtp' }
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** Source FEC Payload ID — flat 32-bit SS_ID per ISO 23008-1 §C.5.2 */
|
|
67
|
+
export interface FecPayloadId {
|
|
68
|
+
ssId: number
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Discriminated union of unwrapped multicast frames */
|
|
72
|
+
export type MulticastFrame =
|
|
73
|
+
| { kind: 'mmtp'; header: MMTPHeader; mfu: MFUExtraction; fecId: FecPayloadId | null }
|
|
74
|
+
| {
|
|
75
|
+
kind: 'repair'
|
|
76
|
+
header: MMTPHeader
|
|
77
|
+
ssStart: number
|
|
78
|
+
rsbLength: number
|
|
79
|
+
rsId: number
|
|
80
|
+
ssbLength: number
|
|
81
|
+
data: Uint8Array
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Unwrap a raw MMTP multicast packet into a typed MulticastFrame.
|
|
86
|
+
*
|
|
87
|
+
* This function handles MMTP-framed multicast only (container 0x01). The
|
|
88
|
+
* versioned contract is validated before any packet bytes are parsed, so an
|
|
89
|
+
* unsupported version or container kind fails closed rather than being
|
|
90
|
+
* reinterpreted under a reader that does not match the wire format.
|
|
91
|
+
*
|
|
92
|
+
* @param packet - Raw MMTP packet bytes from multicast UDP
|
|
93
|
+
* @param contract - Required `multicast-container/v1` selector
|
|
94
|
+
* @throws {MulticastContainerContractError} if the selector is absent or unsupported
|
|
95
|
+
* @returns Parsed frame, or null if the packet is too small / malformed
|
|
96
|
+
*/
|
|
97
|
+
export function unwrapMulticastPacket(
|
|
98
|
+
packet: Uint8Array,
|
|
99
|
+
contract: unknown,
|
|
100
|
+
): MulticastFrame | null {
|
|
101
|
+
validateMulticastContainerContract(contract)
|
|
102
|
+
if (packet.length < MMTP_HEADER_SIZE) return null
|
|
103
|
+
|
|
104
|
+
let header: MMTPHeader
|
|
105
|
+
try {
|
|
106
|
+
header = parseMMTPHeader(packet)
|
|
107
|
+
} catch {
|
|
108
|
+
return null
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (header.packetType === PACKET_TYPE_REPAIR || header.fecType >= 2) {
|
|
112
|
+
const repair = parseMoqRepairFrame(packet)
|
|
113
|
+
if (!repair) return null
|
|
114
|
+
return {
|
|
115
|
+
kind: 'repair',
|
|
116
|
+
header,
|
|
117
|
+
ssStart: repair.ssStart,
|
|
118
|
+
rsbLength: repair.rsbLength,
|
|
119
|
+
rsId: repair.rsId,
|
|
120
|
+
ssbLength: repair.ssbLength,
|
|
121
|
+
data: repair.symbolData,
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const hasFec = hasSourceFecPayloadId(packet)
|
|
126
|
+
|
|
127
|
+
// MMTP source packet — extract MFU payload
|
|
128
|
+
const mfu = extractMFUPayload(packet)
|
|
129
|
+
if (!mfu) return null
|
|
130
|
+
const fecId = hasFec ? mfu.fecPayloadId : null
|
|
131
|
+
return { kind: 'mmtp', header, mfu, fecId }
|
|
132
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { MmtpContainerParser } from './mmtp-container-parser.js'
|
|
2
|
+
export { createWasmMmtpContainerParser } from './wasm-mmtp-container-parser.js'
|
|
3
|
+
export {
|
|
4
|
+
datagramMfuReassembly,
|
|
5
|
+
reliableMoqMfuReassembly,
|
|
6
|
+
mmtpFrameReorderWindowFrames,
|
|
7
|
+
} from './mfu-reassembly-policy.js'
|
|
8
|
+
export {
|
|
9
|
+
validateCmsfMmtpCatalog,
|
|
10
|
+
CmsfCatalogValidationError,
|
|
11
|
+
resolveGroupDurationMs,
|
|
12
|
+
} from './carp-catalog.js'
|
|
13
|
+
export { catalogFecInterleaveMs, computeFecTimeout } from '@blockcast/mmt-fec'
|
|
14
|
+
export { MmtpToCmaf } from './mmtp-to-cmaf.js'
|
|
15
|
+
export { createManifestAuthPlan } from './manifest-auth-plan.js'
|
|
16
|
+
export {
|
|
17
|
+
ManifestVerifier,
|
|
18
|
+
createWebCryptoEd25519Verifier,
|
|
19
|
+
manifestBindingId,
|
|
20
|
+
} from '@blockcast/mmt-manifest-verify'
|