@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
package/dist/loc.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mmt/container - LOC FEC Extensions
|
|
3
|
+
*
|
|
4
|
+
* FEC Source Info per draft-ramadan-moq-fec §7.1:
|
|
5
|
+
* SBN (32 bits) + ESI (32 bits) = 8 bytes minimum.
|
|
6
|
+
* Optional Original Object Length (QUIC varint) when Length > 8.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* LOC Header Extension IDs
|
|
12
|
+
*/
|
|
13
|
+
export declare enum LOCHeaderExtensionId {
|
|
14
|
+
CaptureTimestamp = 2,
|
|
15
|
+
VideoFrameMarking = 4,
|
|
16
|
+
AudioLevel = 6,
|
|
17
|
+
/** FEC Source Info: SBN(32) + ESI(32) [+ Original Object Length (varint)] */
|
|
18
|
+
FecSourceInfo = 16,
|
|
19
|
+
VideoConfig = 13,
|
|
20
|
+
/** Content authentication tag */
|
|
21
|
+
AuthTag = 14
|
|
22
|
+
}
|
|
23
|
+
/** Maximum value for SBN and ESI (32 bits each) */
|
|
24
|
+
export declare const FEC_SBN_MAX = 4294967295;
|
|
25
|
+
export declare const FEC_ESI_MAX = 4294967295;
|
|
26
|
+
/**
|
|
27
|
+
* Encode FEC Source Info value bytes: SBN(4B BE) + ESI(4B BE).
|
|
28
|
+
* Returns 8-byte Uint8Array.
|
|
29
|
+
*/
|
|
30
|
+
export declare function encodeFecSourceInfo(sbn: number, esi: number): Uint8Array;
|
|
31
|
+
/**
|
|
32
|
+
* Decode FEC Source Info value bytes: reads SBN(4B BE) + ESI(4B BE).
|
|
33
|
+
* Returns [sbn, esi].
|
|
34
|
+
*/
|
|
35
|
+
export declare function decodeFecSourceInfo(buf: Uint8Array, offset?: number): [sbn: number, esi: number];
|
|
36
|
+
/**
|
|
37
|
+
* FEC Source Info for LOC/CMAF extension headers.
|
|
38
|
+
* Per draft-ramadan-moq-fec §7.1: SBN(32) + ESI(32), fixed 8-byte minimum.
|
|
39
|
+
*/
|
|
40
|
+
export declare class FecSourceInfo {
|
|
41
|
+
/** Source Block Number (32 bits) */
|
|
42
|
+
readonly sbn: number;
|
|
43
|
+
/** Encoding Symbol ID (32 bits) */
|
|
44
|
+
readonly esi: number;
|
|
45
|
+
/** Original object length (optional, for zero-pad stripping) */
|
|
46
|
+
readonly objectLength?: number | undefined;
|
|
47
|
+
static readonly TYPE = LOCHeaderExtensionId.FecSourceInfo;
|
|
48
|
+
constructor(
|
|
49
|
+
/** Source Block Number (32 bits) */
|
|
50
|
+
sbn: number,
|
|
51
|
+
/** Encoding Symbol ID (32 bits) */
|
|
52
|
+
esi: number,
|
|
53
|
+
/** Original object length (optional, for zero-pad stripping) */
|
|
54
|
+
objectLength?: number | undefined);
|
|
55
|
+
/** Encode as extension value bytes */
|
|
56
|
+
encode(): Uint8Array;
|
|
57
|
+
/** Decode from extension value bytes */
|
|
58
|
+
static decode(buf: Uint8Array): FecSourceInfo;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* AuthTag for end-to-end content authentication.
|
|
62
|
+
*/
|
|
63
|
+
export declare class AuthTag {
|
|
64
|
+
readonly tag: Uint8Array;
|
|
65
|
+
static readonly TYPE = LOCHeaderExtensionId.AuthTag;
|
|
66
|
+
constructor(tag: Uint8Array);
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=loc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loc.d.ts","sourceRoot":"","sources":["../src/loc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,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HeaderExtensionId2["CaptureTimestamp"] = 2] = "CaptureTimestamp";
|
|
4
|
+
LOCHeaderExtensionId2[LOCHeaderExtensionId2["VideoFrameMarking"] = 4] = "VideoFrameMarking";
|
|
5
|
+
LOCHeaderExtensionId2[LOCHeaderExtensionId2["AudioLevel"] = 6] = "AudioLevel";
|
|
6
|
+
LOCHeaderExtensionId2[LOCHeaderExtensionId2["FecSourceInfo"] = 16] = "FecSourceInfo";
|
|
7
|
+
LOCHeaderExtensionId2[LOCHeaderExtensionId2["VideoConfig"] = 13] = "VideoConfig";
|
|
8
|
+
LOCHeaderExtensionId2[LOCHeaderExtensionId2["AuthTag"] = 14] = "AuthTag";
|
|
9
|
+
return LOCHeaderExtensionId2;
|
|
10
|
+
})(LOCHeaderExtensionId || {});
|
|
11
|
+
var FEC_SBN_MAX = 4294967295;
|
|
12
|
+
var FEC_ESI_MAX = 4294967295;
|
|
13
|
+
function encodeFecSourceInfo(sbn, esi) {
|
|
14
|
+
const buf = new Uint8Array(8);
|
|
15
|
+
const view = new DataView(buf.buffer);
|
|
16
|
+
view.setUint32(0, sbn >>> 0, false);
|
|
17
|
+
view.setUint32(4, esi >>> 0, false);
|
|
18
|
+
return buf;
|
|
19
|
+
}
|
|
20
|
+
function decodeFecSourceInfo(buf, offset = 0) {
|
|
21
|
+
const view = new DataView(buf.buffer, buf.byteOffset + offset, 8);
|
|
22
|
+
return [view.getUint32(0, false), view.getUint32(4, false)];
|
|
23
|
+
}
|
|
24
|
+
var _FecSourceInfo = class _FecSourceInfo {
|
|
25
|
+
constructor(sbn, esi, objectLength) {
|
|
26
|
+
this.sbn = sbn;
|
|
27
|
+
this.esi = esi;
|
|
28
|
+
this.objectLength = objectLength;
|
|
29
|
+
}
|
|
30
|
+
/** Encode as extension value bytes */
|
|
31
|
+
encode() {
|
|
32
|
+
const base = encodeFecSourceInfo(this.sbn, this.esi);
|
|
33
|
+
if (this.objectLength == null) return base;
|
|
34
|
+
const lenBytes = encodeQuicVarint(this.objectLength);
|
|
35
|
+
const result = new Uint8Array(8 + lenBytes.length);
|
|
36
|
+
result.set(base, 0);
|
|
37
|
+
result.set(lenBytes, 8);
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
/** Decode from extension value bytes */
|
|
41
|
+
static decode(buf) {
|
|
42
|
+
const [sbn, esi] = decodeFecSourceInfo(buf);
|
|
43
|
+
let objectLength;
|
|
44
|
+
if (buf.length > 8) {
|
|
45
|
+
const [val] = decodeQuicVarint(buf, 8);
|
|
46
|
+
objectLength = val;
|
|
47
|
+
}
|
|
48
|
+
return new _FecSourceInfo(sbn, esi, objectLength);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
_FecSourceInfo.TYPE = 16 /* FecSourceInfo */;
|
|
52
|
+
var FecSourceInfo = _FecSourceInfo;
|
|
53
|
+
var AuthTag = class {
|
|
54
|
+
constructor(tag) {
|
|
55
|
+
this.tag = tag;
|
|
56
|
+
if (tag.length === 0) throw new Error("AuthTag must not be empty");
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
AuthTag.TYPE = 14 /* AuthTag */;
|
|
60
|
+
function encodeQuicVarint(value) {
|
|
61
|
+
if (value < 64) return new Uint8Array([value]);
|
|
62
|
+
if (value < 16384) {
|
|
63
|
+
const buf2 = new Uint8Array(2);
|
|
64
|
+
new DataView(buf2.buffer).setUint16(0, value | 16384);
|
|
65
|
+
return buf2;
|
|
66
|
+
}
|
|
67
|
+
if (value < 1073741824) {
|
|
68
|
+
const buf2 = new Uint8Array(4);
|
|
69
|
+
new DataView(buf2.buffer).setUint32(0, value | 2147483648);
|
|
70
|
+
return buf2;
|
|
71
|
+
}
|
|
72
|
+
const buf = new Uint8Array(8);
|
|
73
|
+
new DataView(buf.buffer).setBigUint64(0, BigInt(value) | 0xc000000000000000n);
|
|
74
|
+
return buf;
|
|
75
|
+
}
|
|
76
|
+
function decodeQuicVarint(buf, offset) {
|
|
77
|
+
if (offset >= buf.length) return [0, 0];
|
|
78
|
+
const first = buf[offset];
|
|
79
|
+
const prefix = first >> 6;
|
|
80
|
+
const len = 1 << prefix;
|
|
81
|
+
if (offset + len > buf.length) return [0, 0];
|
|
82
|
+
const view = new DataView(buf.buffer, buf.byteOffset + offset, len);
|
|
83
|
+
switch (len) {
|
|
84
|
+
case 1:
|
|
85
|
+
return [first & 63, 1];
|
|
86
|
+
case 2:
|
|
87
|
+
return [view.getUint16(0) & 16383, 2];
|
|
88
|
+
case 4:
|
|
89
|
+
return [view.getUint32(0) & 1073741823, 4];
|
|
90
|
+
case 8:
|
|
91
|
+
return [Number(view.getBigUint64(0) & 0x3fffffffffffffffn), 8];
|
|
92
|
+
default:
|
|
93
|
+
return [0, 0];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (void 0) {
|
|
97
|
+
const { describe, test, expect } = void 0;
|
|
98
|
+
describe("FEC Source Info (32+32 bit)", () => {
|
|
99
|
+
test("encode/decode roundtrip", () => {
|
|
100
|
+
const [sbn, esi] = [1234, 5678];
|
|
101
|
+
const encoded = encodeFecSourceInfo(sbn, esi);
|
|
102
|
+
expect(encoded.length).toBe(8);
|
|
103
|
+
const [s, e] = decodeFecSourceInfo(encoded);
|
|
104
|
+
expect(s).toBe(1234);
|
|
105
|
+
expect(e).toBe(5678);
|
|
106
|
+
});
|
|
107
|
+
test("max 32-bit values", () => {
|
|
108
|
+
const [sbn, esi] = [4294967295, 4294967295];
|
|
109
|
+
const encoded = encodeFecSourceInfo(sbn, esi);
|
|
110
|
+
const [s, e] = decodeFecSourceInfo(encoded);
|
|
111
|
+
expect(s).toBe(4294967295);
|
|
112
|
+
expect(e).toBe(4294967295);
|
|
113
|
+
});
|
|
114
|
+
test("FecSourceInfo with object length", () => {
|
|
115
|
+
const info = new FecSourceInfo(100, 5, 9999);
|
|
116
|
+
const encoded = info.encode();
|
|
117
|
+
expect(encoded.length).toBeGreaterThan(8);
|
|
118
|
+
const decoded = FecSourceInfo.decode(encoded);
|
|
119
|
+
expect(decoded.sbn).toBe(100);
|
|
120
|
+
expect(decoded.esi).toBe(5);
|
|
121
|
+
expect(decoded.objectLength).toBe(9999);
|
|
122
|
+
});
|
|
123
|
+
test("FecSourceInfo without object length", () => {
|
|
124
|
+
const info = new FecSourceInfo(7, 3);
|
|
125
|
+
const encoded = info.encode();
|
|
126
|
+
expect(encoded.length).toBe(8);
|
|
127
|
+
const decoded = FecSourceInfo.decode(encoded);
|
|
128
|
+
expect(decoded.sbn).toBe(7);
|
|
129
|
+
expect(decoded.esi).toBe(3);
|
|
130
|
+
expect(decoded.objectLength).toBeUndefined();
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
AuthTag,
|
|
136
|
+
FEC_ESI_MAX,
|
|
137
|
+
FEC_SBN_MAX,
|
|
138
|
+
FecSourceInfo,
|
|
139
|
+
LOCHeaderExtensionId,
|
|
140
|
+
decodeFecSourceInfo,
|
|
141
|
+
encodeFecSourceInfo
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=loc.js.map
|
package/dist/loc.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/loc.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @mmt/container - LOC FEC Extensions\n *\n * FEC Source Info per draft-ramadan-moq-fec \u00A77.1:\n * SBN (32 bits) + ESI (32 bits) = 8 bytes minimum.\n * Optional Original Object Length (QUIC varint) when Length > 8.\n *\n * @packageDocumentation\n */\n\n/**\n * LOC Header Extension IDs\n */\nexport enum LOCHeaderExtensionId {\n CaptureTimestamp = 2,\n VideoFrameMarking = 4,\n AudioLevel = 6,\n /** FEC Source Info: SBN(32) + ESI(32) [+ Original Object Length (varint)] */\n FecSourceInfo = 0x10,\n VideoConfig = 13,\n /** Content authentication tag */\n AuthTag = 14,\n}\n\n/** Maximum value for SBN and ESI (32 bits each) */\nexport const FEC_SBN_MAX = 0xffffffff\nexport const FEC_ESI_MAX = 0xffffffff\n\n/**\n * Encode FEC Source Info value bytes: SBN(4B BE) + ESI(4B BE).\n * Returns 8-byte Uint8Array.\n */\nexport function encodeFecSourceInfo(sbn: number, esi: number): Uint8Array {\n const buf = new Uint8Array(8)\n const view = new DataView(buf.buffer)\n view.setUint32(0, sbn >>> 0, false)\n view.setUint32(4, esi >>> 0, false)\n return buf\n}\n\n/**\n * Decode FEC Source Info value bytes: reads SBN(4B BE) + ESI(4B BE).\n * Returns [sbn, esi].\n */\nexport function decodeFecSourceInfo(buf: Uint8Array, offset = 0): [sbn: number, esi: number] {\n const view = new DataView(buf.buffer, buf.byteOffset + offset, 8)\n return [view.getUint32(0, false), view.getUint32(4, false)]\n}\n\n/**\n * FEC Source Info for LOC/CMAF extension headers.\n * Per draft-ramadan-moq-fec \u00A77.1: SBN(32) + ESI(32), fixed 8-byte minimum.\n */\nexport class FecSourceInfo {\n static readonly TYPE = LOCHeaderExtensionId.FecSourceInfo\n\n constructor(\n /** Source Block Number (32 bits) */\n public readonly sbn: number,\n /** Encoding Symbol ID (32 bits) */\n public readonly esi: number,\n /** Original object length (optional, for zero-pad stripping) */\n public readonly objectLength?: number,\n ) {}\n\n /** Encode as extension value bytes */\n encode(): Uint8Array {\n const base = encodeFecSourceInfo(this.sbn, this.esi)\n if (this.objectLength == null) return base\n // Append QUIC varint for object length\n const lenBytes = encodeQuicVarint(this.objectLength)\n const result = new Uint8Array(8 + lenBytes.length)\n result.set(base, 0)\n result.set(lenBytes, 8)\n return result\n }\n\n /** Decode from extension value bytes */\n static decode(buf: Uint8Array): FecSourceInfo {\n const [sbn, esi] = decodeFecSourceInfo(buf)\n let objectLength: number | undefined\n if (buf.length > 8) {\n const [val] = decodeQuicVarint(buf, 8)\n objectLength = val\n }\n return new FecSourceInfo(sbn, esi, objectLength)\n }\n}\n\n/**\n * AuthTag for end-to-end content authentication.\n */\nexport class AuthTag {\n static readonly TYPE = LOCHeaderExtensionId.AuthTag\n\n constructor(public readonly tag: Uint8Array) {\n if (tag.length === 0) throw new Error('AuthTag must not be empty')\n }\n}\n\n// QUIC varint helpers\nfunction encodeQuicVarint(value: number): Uint8Array {\n if (value < 64) return new Uint8Array([value])\n if (value < 16384) {\n const buf = new Uint8Array(2)\n new DataView(buf.buffer).setUint16(0, value | 0x4000)\n return buf\n }\n if (value < 1073741824) {\n const buf = new Uint8Array(4)\n new DataView(buf.buffer).setUint32(0, value | 0x80000000)\n return buf\n }\n const buf = new Uint8Array(8)\n new DataView(buf.buffer).setBigUint64(0, BigInt(value) | 0xc000000000000000n)\n return buf\n}\n\nfunction decodeQuicVarint(buf: Uint8Array, offset: number): [number, number] {\n if (offset >= buf.length) return [0, 0]\n const first = buf[offset]!\n const prefix = first >> 6\n const len = 1 << prefix\n if (offset + len > buf.length) return [0, 0]\n const view = new DataView(buf.buffer, buf.byteOffset + offset, len)\n switch (len) {\n case 1: return [first & 0x3f, 1]\n case 2: return [view.getUint16(0) & 0x3fff, 2]\n case 4: return [view.getUint32(0) & 0x3fffffff, 4]\n case 8: return [Number(view.getBigUint64(0) & 0x3fffffffffffffffn), 8]\n default: return [0, 0]\n }\n}\n\n// =============================================================================\n// Inline Tests (vitest)\n// =============================================================================\n\nif (import.meta.vitest) {\n const { describe, test, expect } = import.meta.vitest\n\n describe('FEC Source Info (32+32 bit)', () => {\n test('encode/decode roundtrip', () => {\n const [sbn, esi] = [1234, 5678]\n const encoded = encodeFecSourceInfo(sbn, esi)\n expect(encoded.length).toBe(8)\n const [s, e] = decodeFecSourceInfo(encoded)\n expect(s).toBe(1234)\n expect(e).toBe(5678)\n })\n\n test('max 32-bit values', () => {\n const [sbn, esi] = [0xffffffff, 0xffffffff]\n const encoded = encodeFecSourceInfo(sbn, esi)\n const [s, e] = decodeFecSourceInfo(encoded)\n expect(s).toBe(0xffffffff)\n expect(e).toBe(0xffffffff)\n })\n\n test('FecSourceInfo with object length', () => {\n const info = new FecSourceInfo(100, 5, 9999)\n const encoded = info.encode()\n expect(encoded.length).toBeGreaterThan(8) // 8 + varint\n const decoded = FecSourceInfo.decode(encoded)\n expect(decoded.sbn).toBe(100)\n expect(decoded.esi).toBe(5)\n expect(decoded.objectLength).toBe(9999)\n })\n\n test('FecSourceInfo without object length', () => {\n const info = new FecSourceInfo(7, 3)\n const encoded = info.encode()\n expect(encoded.length).toBe(8)\n const decoded = FecSourceInfo.decode(encoded)\n expect(decoded.sbn).toBe(7)\n expect(decoded.esi).toBe(3)\n expect(decoded.objectLength).toBeUndefined()\n })\n\n })\n}\n"],
|
|
5
|
+
"mappings": ";AAaO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,4CAAA,sBAAmB,KAAnB;AACA,EAAAA,4CAAA,uBAAoB,KAApB;AACA,EAAAA,4CAAA,gBAAa,KAAb;AAEA,EAAAA,4CAAA,mBAAgB,MAAhB;AACA,EAAAA,4CAAA,iBAAc,MAAd;AAEA,EAAAA,4CAAA,aAAU,MAAV;AARU,SAAAA;AAAA,GAAA;AAYL,IAAM,cAAc;AACpB,IAAM,cAAc;AAMpB,SAAS,oBAAoB,KAAa,KAAyB;AACxE,QAAM,MAAM,IAAI,WAAW,CAAC;AAC5B,QAAM,OAAO,IAAI,SAAS,IAAI,MAAM;AACpC,OAAK,UAAU,GAAG,QAAQ,GAAG,KAAK;AAClC,OAAK,UAAU,GAAG,QAAQ,GAAG,KAAK;AAClC,SAAO;AACT;AAMO,SAAS,oBAAoB,KAAiB,SAAS,GAA+B;AAC3F,QAAM,OAAO,IAAI,SAAS,IAAI,QAAQ,IAAI,aAAa,QAAQ,CAAC;AAChE,SAAO,CAAC,KAAK,UAAU,GAAG,KAAK,GAAG,KAAK,UAAU,GAAG,KAAK,CAAC;AAC5D;AAMO,IAAM,iBAAN,MAAM,eAAc;AAAA,EAGzB,YAEkB,KAEA,KAEA,cAChB;AALgB;AAEA;AAEA;AAAA,EACf;AAAA;AAAA,EAGH,SAAqB;AACnB,UAAM,OAAO,oBAAoB,KAAK,KAAK,KAAK,G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zB,aAAO,CAAC,EAAE,KAAK,UAAU;AAAA,IAC3B,CAAC;AAED,SAAK,oCAAoC,MAAM;AAC7C,YAAM,OAAO,IAAI,cAAc,KAAK,GAAG,IAAI;AAC3C,YAAM,UAAU,KAAK,OAAO;AAC5B,aAAO,QAAQ,MAAM,EAAE,gBAAgB,CAAC;AACxC,YAAM,UAAU,cAAc,OAAO,OAAO;AAC5C,aAAO,QAAQ,GAAG,EAAE,KAAK,GAAG;AAC5B,aAAO,QAAQ,GAAG,EAAE,KAAK,CAAC;AAC1B,aAAO,QAAQ,YAAY,EAAE,KAAK,IAAI;AAAA,IACxC,CAAC;AAED,SAAK,uCAAuC,MAAM;AAChD,YAAM,OAAO,IAAI,cAAc,GAAG,CAAC;AACnC,YAAM,UAAU,KAAK,OAAO;AAC5B,aAAO,QAAQ,MAAM,EAAE,KAAK,CAAC;AAC7B,YAAM,UAAU,cAAc,OAAO,OAAO;AAC5C,aAAO,QAAQ,GAAG,EAAE,KAAK,CAAC;AAC1B,aAAO,QAAQ,GAAG,EAAE,KAAK,CAAC;AAC1B,aAAO,QAAQ,YAAY,EAAE,cAAc;AAAA,IAC7C,CAAC;AAAA,EAEH,CAAC;AACH;",
|
|
6
|
+
"names": ["LOCHeaderExtensionId", "buf"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ManifestVerifier, type ManifestAuthConfig, type ManifestTrackContext, type SignatureVerifier } from '@blockcast/mmt-manifest-verify';
|
|
2
|
+
import { type MulticastAuthMode, type ResolvedMulticastAuthConfig } from './multicast-auth-catalog.js';
|
|
3
|
+
export interface ManifestAuthBinding {
|
|
4
|
+
bindingId: string;
|
|
5
|
+
mediaTrack: string;
|
|
6
|
+
manifestTrack: string;
|
|
7
|
+
sourceSymbolFormat: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ManifestAuthPlan {
|
|
10
|
+
verifier: ManifestVerifier;
|
|
11
|
+
mode: MulticastAuthMode;
|
|
12
|
+
bindings: readonly ManifestAuthBinding[];
|
|
13
|
+
manifestTracks: readonly string[];
|
|
14
|
+
bindingIdFor(mediaTrack: string, sourceSymbolFormat: string): string | undefined;
|
|
15
|
+
ingestManifestPayload(manifestTrack: string, payload: Uint8Array): void;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
18
|
+
type ContextFields = Omit<ManifestTrackContext, 'bindingId' | 'trackName' | 'sourceSymbolFormat' | 'authScope' | 'publicKey' | 'acceptedPublicKeys'>;
|
|
19
|
+
/** Build the one canonical verifier plan shared by browser players. Transport
|
|
20
|
+
* implementations subscribe the exact returned manifestTracks and feed each
|
|
21
|
+
* bare source-auth frame to ingestManifestPayload without name inference. */
|
|
22
|
+
export declare function createManifestAuthPlan(catalog: unknown, options: {
|
|
23
|
+
playerMode?: MulticastAuthMode;
|
|
24
|
+
onMissingManifest?: ManifestAuthConfig['onMissingManifest'];
|
|
25
|
+
verifySignature: SignatureVerifier;
|
|
26
|
+
contextFor(binding: ResolvedMulticastAuthConfig['tracks'][number], resolved: ResolvedMulticastAuthConfig): ContextFields;
|
|
27
|
+
onFailure?: ConstructorParameters<typeof ManifestVerifier>[0]['onFailure'];
|
|
28
|
+
}): ManifestAuthPlan | undefined;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=manifest-auth-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-auth-plan.d.ts","sourceRoot":"","sources":["../src/manifest-auth-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAA;AAEpC,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE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