@blockcast/mmt-container 0.1.0 → 0.3.0-main.d9354616fdf2
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 +524 -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 +152 -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 +80 -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/block-policy.d.ts +314 -0
- package/dist/block-policy.d.ts.map +1 -0
- package/dist/block-policy.js +466 -0
- package/dist/block-policy.js.map +7 -0
- package/dist/browser-runtime.js +26549 -0
- package/dist/browser-runtime.js.map +7 -0
- package/dist/carp-catalog.d.ts +429 -0
- package/dist/carp-catalog.d.ts.map +1 -0
- package/dist/carp-catalog.js +985 -0
- package/dist/carp-catalog.js.map +7 -0
- package/dist/catalog-fec-params.d.ts +275 -0
- package/dist/catalog-fec-params.d.ts.map +1 -0
- package/dist/catalog-fec-params.js +702 -0
- package/dist/catalog-fec-params.js.map +7 -0
- package/dist/catalog-network-source.d.ts +42 -0
- package/dist/catalog-network-source.d.ts.map +1 -0
- package/dist/catalog-network-source.js +47 -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 +285 -0
- package/dist/cmaf-block-assembler.d.ts.map +1 -0
- package/dist/cmaf-block-assembler.js +1966 -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 +176 -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 +183 -0
- package/dist/cmcd-producer.js.map +7 -0
- package/dist/codec-utils.d.ts +384 -0
- package/dist/codec-utils.d.ts.map +1 -0
- package/dist/codec-utils.js +1546 -0
- package/dist/codec-utils.js.map +7 -0
- package/dist/conceal-timeline.d.ts +146 -0
- package/dist/conceal-timeline.d.ts.map +1 -0
- package/dist/conceal-timeline.js +137 -0
- package/dist/conceal-timeline.js.map +7 -0
- package/dist/delivery-gap.d.ts +75 -0
- package/dist/delivery-gap.d.ts.map +1 -0
- package/dist/delivery-gap.js +88 -0
- package/dist/delivery-gap.js.map +7 -0
- package/dist/duplicate-ledger.d.ts +197 -0
- package/dist/duplicate-ledger.d.ts.map +1 -0
- package/dist/duplicate-ledger.js +226 -0
- package/dist/duplicate-ledger.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 +583 -0
- package/dist/fec-manager.d.ts.map +1 -0
- package/dist/fec-manager.js +3899 -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 +60 -0
- package/dist/fec-starvation-detector.js.map +7 -0
- package/dist/fec-state.d.ts +131 -0
- package/dist/fec-state.d.ts.map +1 -0
- package/dist/fec-state.js +87 -0
- package/dist/fec-state.js.map +7 -0
- package/dist/fec-worker-setup.d.ts +94 -0
- package/dist/fec-worker-setup.d.ts.map +1 -0
- package/dist/fec-worker-setup.js +673 -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 +44 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +460 -14
- package/dist/index.js.map +7 -1
- package/dist/iso-block-locator.d.ts +118 -0
- package/dist/iso-block-locator.d.ts.map +1 -0
- package/dist/iso-block-locator.js +289 -0
- package/dist/iso-block-locator.js.map +7 -0
- package/dist/iso-bmff-timing.d.ts +78 -0
- package/dist/iso-bmff-timing.d.ts.map +1 -0
- package/dist/iso-bmff-timing.js +593 -0
- package/dist/iso-bmff-timing.js.map +7 -0
- package/dist/loc.d.ts +70 -75
- package/dist/loc.d.ts.map +1 -1
- package/dist/loc.js +106 -192
- package/dist/loc.js.map +7 -1
- 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 +1266 -0
- package/dist/manifest-auth-plan.js.map +7 -0
- package/dist/media-router.d.ts +262 -0
- package/dist/media-router.d.ts.map +1 -0
- package/dist/media-router.js +584 -0
- package/dist/media-router.js.map +7 -0
- package/dist/mfu-reassembler.d.ts +313 -9
- package/dist/mfu-reassembler.d.ts.map +1 -1
- package/dist/mfu-reassembler.js +3051 -285
- package/dist/mfu-reassembler.js.map +7 -1
- 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 +568 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -0
- package/dist/mmtp-container-parser.js +6580 -0
- package/dist/mmtp-container-parser.js.map +7 -0
- package/dist/mmtp-container-parser.no-modules.js +9616 -0
- package/dist/mmtp-container-parser.no-modules.js.map +7 -0
- package/dist/mmtp-decode-pipeline.d.ts +138 -0
- package/dist/mmtp-decode-pipeline.d.ts.map +1 -0
- package/dist/mmtp-decode-pipeline.js +6814 -0
- package/dist/mmtp-decode-pipeline.js.map +7 -0
- package/dist/mmtp-router.d.ts +679 -0
- package/dist/mmtp-router.d.ts.map +1 -0
- package/dist/mmtp-router.js +11278 -0
- package/dist/mmtp-router.js.map +7 -0
- package/dist/mmtp-to-cmaf.d.ts +187 -0
- package/dist/mmtp-to-cmaf.d.ts.map +1 -0
- package/dist/mmtp-to-cmaf.js +716 -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 +141 -0
- package/dist/multicast-input.d.ts.map +1 -0
- package/dist/multicast-input.js +390 -0
- package/dist/multicast-input.js.map +7 -0
- package/dist/multicast-manager.d.ts +669 -0
- package/dist/multicast-manager.d.ts.map +1 -0
- package/dist/multicast-manager.js +19101 -0
- package/dist/multicast-manager.js.map +7 -0
- package/dist/multicast-transport.d.ts +271 -0
- package/dist/multicast-transport.d.ts.map +1 -0
- package/dist/multicast-transport.js +2264 -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 +418 -0
- package/dist/multicast-unwrap.js.map +7 -0
- package/dist/no-modules.d.ts +10 -0
- package/dist/no-modules.d.ts.map +1 -0
- package/dist/no-modules.js +9491 -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 +270 -0
- package/dist/repair-fetch.d.ts.map +1 -0
- package/dist/repair-fetch.js +381 -0
- package/dist/repair-fetch.js.map +7 -0
- package/dist/repair-layers.d.ts +158 -0
- package/dist/repair-layers.d.ts.map +1 -0
- package/dist/repair-layers.js +344 -0
- package/dist/repair-layers.js.map +7 -0
- package/dist/sample-combiner.d.ts +212 -0
- package/dist/sample-combiner.d.ts.map +1 -0
- package/dist/sample-combiner.js +595 -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 +572 -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 +1209 -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 +70 -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 +473 -0
- package/dist/timestamp-codec.js.map +7 -0
- package/dist/track-pipeline-setup.d.ts +83 -0
- package/dist/track-pipeline-setup.d.ts.map +1 -0
- package/dist/track-pipeline-setup.js +291 -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 +209 -0
- package/dist/track-pipeline.js.map +7 -0
- package/dist/track-session.d.ts +414 -0
- package/dist/track-session.d.ts.map +1 -0
- package/dist/track-session.js +754 -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 +74 -0
- package/dist/transport-pool.js.map +7 -0
- package/dist/wasm-mfu-reassembler.d.ts +97 -0
- package/dist/wasm-mfu-reassembler.d.ts.map +1 -0
- package/dist/wasm-mfu-reassembler.js +2133 -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 +6834 -0
- package/dist/wasm-mmtp-container-parser.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/README.md +223 -0
- package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts +38 -0
- package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/block-order.js +78 -0
- package/node_modules/@blockcast/fec-worker/dist/block-order.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +93 -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 +346 -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 +380 -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 +859 -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 +370 -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 +194 -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 +62 -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/block-order.ts +93 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +392 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +399 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +1502 -0
- package/node_modules/@blockcast/fec-worker/src/index.ts +35 -0
- package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +589 -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 +209 -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 +134 -0
- package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +55 -0
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +128 -0
- package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts +7 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js +7 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +292 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js +612 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +18 -0
- package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/net-constants.js +18 -0
- package/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +47 -0
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.js +54 -0
- package/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +57 -0
- package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/serial-number.js +98 -0
- package/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +312 -0
- package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/signalling.js +637 -0
- package/node_modules/@blockcast/mmt-base/dist/signalling.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/package.json +49 -0
- package/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +145 -0
- package/node_modules/@blockcast/mmt-base/src/index.ts +6 -0
- package/node_modules/@blockcast/mmt-base/src/mmtp.ts +892 -0
- package/node_modules/@blockcast/mmt-base/src/net-constants.ts +17 -0
- package/node_modules/@blockcast/mmt-base/src/ntp-short.ts +67 -0
- package/node_modules/@blockcast/mmt-base/src/serial-number.ts +107 -0
- package/node_modules/@blockcast/mmt-base/src/signalling.ts +862 -0
- package/node_modules/@blockcast/mmt-fec/README.md +271 -0
- package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +82 -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 +296 -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 +106 -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 +288 -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 +205 -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 +240 -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 +28 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.js +28 -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 +258 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.js +382 -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/dist/repair-group.d.ts +82 -0
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.js +170 -0
- package/node_modules/@blockcast/mmt-fec/dist/repair-group.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 +134 -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/fec-block-profile.d.ts +55 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +128 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +7 -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 +7 -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 +292 -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 +612 -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/dist/net-constants.d.ts +18 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js +18 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +47 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js +54 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +57 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js +98 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +312 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js +637 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.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/fec-block-profile.ts +145 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +6 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +892 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/net-constants.ts +17 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/ntp-short.ts +67 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/serial-number.ts +107 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/signalling.ts +862 -0
- package/node_modules/@blockcast/mmt-fec/package.json +79 -0
- package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +371 -0
- package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +439 -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 +310 -0
- package/node_modules/@blockcast/mmt-fec/src/index.ts +94 -0
- package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +34 -0
- package/node_modules/@blockcast/mmt-fec/src/oti.ts +463 -0
- package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +101 -0
- package/node_modules/@blockcast/mmt-fec/src/repair-group.ts +195 -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 +99 -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 +492 -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 +669 -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 +179 -8
- package/schemas/catalog.schema.json +357 -0
- package/src/align.ts +239 -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/block-policy.ts +903 -0
- package/src/carp-catalog.ts +1065 -0
- package/src/catalog-fec-params.ts +729 -0
- package/src/catalog-network-source.ts +74 -0
- package/src/catalog-validator.ts +34 -0
- package/src/cmaf-block-assembler.ts +1255 -0
- package/src/cmaf-group-batcher.ts +104 -0
- package/src/cmcd-producer.ts +329 -0
- package/src/codec-utils.ts +1984 -0
- package/src/conceal-timeline.ts +293 -0
- package/src/delivery-gap.ts +147 -0
- package/src/duplicate-ledger.ts +372 -0
- package/src/fec-codec.ts +61 -0
- package/src/fec-manager.ts +4298 -0
- package/src/fec-starvation-detector.ts +128 -0
- package/src/fec-state.ts +219 -0
- package/src/fec-worker-setup.ts +283 -0
- package/src/fmp4-completion.ts +47 -0
- package/src/fmp4-reader.ts +112 -0
- package/src/index.ts +590 -21
- package/src/iso-block-locator.ts +329 -0
- package/src/iso-bmff-timing.ts +813 -0
- package/src/loc.ts +128 -154
- package/src/manifest-auth-plan.ts +107 -0
- package/src/media-router.ts +841 -0
- package/src/mfu-reassembler.ts +3480 -155
- package/src/mfu-reassembly-policy.ts +134 -0
- package/src/mmtp-container-parser.ts +2380 -0
- package/src/mmtp-decode-pipeline.ts +406 -0
- package/src/mmtp-router.ts +4860 -0
- package/src/mmtp-to-cmaf.ts +977 -0
- package/src/multicast-auth-catalog.ts +340 -0
- package/src/multicast-input.ts +793 -0
- package/src/multicast-manager.ts +2783 -0
- package/src/multicast-transport.ts +1058 -0
- package/src/multicast-unwrap.ts +132 -0
- package/src/no-modules.ts +21 -0
- package/src/phase14-catalog-override.ts +336 -0
- package/src/repair-fetch.ts +772 -0
- package/src/repair-layers.ts +533 -0
- package/src/sample-combiner.ts +938 -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 +205 -0
- package/src/track-pipeline.ts +332 -0
- package/src/track-session.ts +1010 -0
- package/src/transport-pool.ts +128 -0
- package/src/wasm-mfu-reassembler.ts +405 -0
- package/src/wasm-mmtp-container-parser.ts +23 -0
- package/test-vectors/align.json +199 -0
- package/test-vectors/catalog/README.md +106 -0
- package/test-vectors/catalog/negative/archive-origin-with-path.json +33 -0
- package/test-vectors/catalog/negative/archive-unknown-field.json +34 -0
- package/test-vectors/catalog/negative/fec-block-profile-missing.json +51 -0
- package/test-vectors/catalog/negative/fec-block-profile-unknown.json +52 -0
- package/test-vectors/catalog/negative/fec-enhancement-repair-removed.json +28 -0
- package/test-vectors/catalog/negative/fec-repair-layer-geometry.json +33 -0
- package/test-vectors/catalog/negative/fec-repair-layer-missing-symbols.json +31 -0
- package/test-vectors/catalog/negative/fec-repair-multiple-depends.json +32 -0
- package/test-vectors/catalog/negative/fec-repair-overlay-with-layer.json +34 -0
- package/test-vectors/catalog/negative/fec-repair-priority-out-of-band.json +24 -0
- package/test-vectors/catalog/negative/fec-repair-source-symbols-without-scope.json +33 -0
- package/test-vectors/catalog/negative/legacy-selection-params.json +15 -0
- package/test-vectors/catalog/negative/media-track-repair-layer.json +16 -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/multicast-network-source-empty.json +44 -0
- package/test-vectors/catalog/negative/multicast-packet-id-signaling.json +26 -0
- package/test-vectors/catalog/negative/network-source-object.json +25 -0
- package/test-vectors/catalog/negative/raptorq-source-symbols-over-max.json +24 -0
- package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +27 -0
- package/test-vectors/catalog/negative/repair-track-legacy-shape.json +19 -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/archive-origin.json +34 -0
- package/test-vectors/catalog/positive/fec-iso-ssbg1.json +52 -0
- package/test-vectors/catalog/positive/fec-layered-repair.json +106 -0
- package/test-vectors/catalog/positive/fec-multicast.json +52 -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/multicast-native-ssm-no-network-source.json +43 -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 +732 -0
- package/test-vectors/catalog-validator-public-api.mjs +25 -0
- package/test-vectors/generate-source-auth-fixture.mjs +114 -0
- package/test-vectors/hevc-x265-repeat-headers-v1.json +40 -0
- package/test-vectors/source-auth-v1.json +61 -0
- package/test-vectors/source-contiguity-v1.json +131 -0
- package/test-vectors/subsample-placement-v1.json +230 -0
- package/dist/mmtp.d.ts +0 -73
- package/dist/mmtp.d.ts.map +0 -1
- package/dist/mmtp.js +0 -210
- package/dist/mmtp.js.map +0 -1
- package/src/mmtp.ts +0 -277
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
// ../mmt-alta-parse/dist/index.js
|
|
2
|
+
var MPU_HEADER_SIZE = 8;
|
|
3
|
+
var MPU_LENGTH_FIELD_SIZE = 2;
|
|
4
|
+
var MPU_HEADER_REMAINDER_SIZE = MPU_HEADER_SIZE - MPU_LENGTH_FIELD_SIZE;
|
|
5
|
+
|
|
6
|
+
// ../mmt-base/dist/mmtp.js
|
|
7
|
+
var MMTP_HEADER_SIZE = 12;
|
|
8
|
+
var MPU_HEADER_SIZE2 = 8;
|
|
9
|
+
var MPU_LENGTH_FIELD_SIZE2 = 2;
|
|
10
|
+
var MPU_HEADER_REMAINDER_SIZE2 = MPU_HEADER_SIZE2 - MPU_LENGTH_FIELD_SIZE2;
|
|
11
|
+
var PACKET_TYPE_MPU = 0;
|
|
12
|
+
var PACKET_TYPE_SIGNALING = 2;
|
|
13
|
+
var PACKET_TYPE_REPAIR = 3;
|
|
14
|
+
var ALFEC_MESSAGE_ID = 515;
|
|
15
|
+
var FEC_CODE_XOR = 1;
|
|
16
|
+
var FEC_CODE_RAPTORQ = 2;
|
|
17
|
+
function parseMMTPHeader(buffer) {
|
|
18
|
+
if (buffer.length < MMTP_HEADER_SIZE) {
|
|
19
|
+
throw new Error(`MMTP packet too small: ${buffer.length} bytes`);
|
|
20
|
+
}
|
|
21
|
+
const view = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
22
|
+
const version = buffer[0] >> 6 & 3;
|
|
23
|
+
if (version !== 0) {
|
|
24
|
+
throw new Error(`Unsupported MMTP version: ${version}`);
|
|
25
|
+
}
|
|
26
|
+
const fecType = buffer[0] >> 3 & 3;
|
|
27
|
+
const packetCounterFlag = (buffer[0] & 32) !== 0;
|
|
28
|
+
const extensionFlag = (buffer[0] & 2) !== 0;
|
|
29
|
+
const rapFlag = (buffer[0] & 1) === 1;
|
|
30
|
+
const packetType = buffer[1] & 63;
|
|
31
|
+
let offset = 2;
|
|
32
|
+
const packetId = view.getUint16(offset, false);
|
|
33
|
+
offset += 2;
|
|
34
|
+
const timestamp = BigInt(view.getUint32(offset, false));
|
|
35
|
+
offset += 4;
|
|
36
|
+
const sequenceNumber = view.getUint32(offset, false);
|
|
37
|
+
offset += 4;
|
|
38
|
+
let packetCounter;
|
|
39
|
+
if (packetCounterFlag) {
|
|
40
|
+
if (offset + 4 > buffer.length)
|
|
41
|
+
throw new Error("MMTP packet truncated in packet_counter");
|
|
42
|
+
packetCounter = view.getUint32(offset, false);
|
|
43
|
+
offset += 4;
|
|
44
|
+
}
|
|
45
|
+
let extension;
|
|
46
|
+
if (extensionFlag) {
|
|
47
|
+
if (offset + 4 > buffer.length)
|
|
48
|
+
throw new Error("MMTP packet truncated in header extension");
|
|
49
|
+
const type = view.getUint16(offset, false);
|
|
50
|
+
const length = view.getUint16(offset + 2, false);
|
|
51
|
+
offset += 4;
|
|
52
|
+
if (offset + length > buffer.length)
|
|
53
|
+
throw new Error("MMTP packet truncated in header extension value");
|
|
54
|
+
extension = { type, data: buffer.subarray(offset, offset + length) };
|
|
55
|
+
offset += length;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
version,
|
|
59
|
+
packetType,
|
|
60
|
+
packetId,
|
|
61
|
+
timestamp,
|
|
62
|
+
sequenceNumber,
|
|
63
|
+
payloadLength: buffer.length - offset,
|
|
64
|
+
fecType,
|
|
65
|
+
packetCounterFlag,
|
|
66
|
+
packetCounter,
|
|
67
|
+
extensionFlag,
|
|
68
|
+
extension,
|
|
69
|
+
headerLength: offset,
|
|
70
|
+
rapFlag
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ../mmt-base/dist/ntp-short.js
|
|
75
|
+
var NTP_SHORT_BITS = 32;
|
|
76
|
+
var NTP_SHORT_MODULUS = 2 ** NTP_SHORT_BITS;
|
|
77
|
+
var NTP_SHORT_HALF_RANGE = 2 ** (NTP_SHORT_BITS - 1);
|
|
78
|
+
|
|
79
|
+
// ../mmt-base/dist/signalling.js
|
|
80
|
+
var MalformedSignalling = class extends Error {
|
|
81
|
+
};
|
|
82
|
+
var WireReader = class {
|
|
83
|
+
#bytes;
|
|
84
|
+
#end;
|
|
85
|
+
#offset;
|
|
86
|
+
constructor(bytes, start = 0, end = bytes.length) {
|
|
87
|
+
this.#bytes = bytes;
|
|
88
|
+
this.#offset = start;
|
|
89
|
+
this.#end = end;
|
|
90
|
+
}
|
|
91
|
+
get offset() {
|
|
92
|
+
return this.#offset;
|
|
93
|
+
}
|
|
94
|
+
get remaining() {
|
|
95
|
+
return this.#end - this.#offset;
|
|
96
|
+
}
|
|
97
|
+
#take(length) {
|
|
98
|
+
if (length < 0 || length > this.remaining)
|
|
99
|
+
throw new MalformedSignalling("truncated");
|
|
100
|
+
const at = this.#offset;
|
|
101
|
+
this.#offset += length;
|
|
102
|
+
return at;
|
|
103
|
+
}
|
|
104
|
+
u8() {
|
|
105
|
+
return this.#bytes[this.#take(1)];
|
|
106
|
+
}
|
|
107
|
+
u16() {
|
|
108
|
+
const at = this.#take(2);
|
|
109
|
+
return this.#bytes[at] << 8 | this.#bytes[at + 1];
|
|
110
|
+
}
|
|
111
|
+
u24() {
|
|
112
|
+
const at = this.#take(3);
|
|
113
|
+
return this.#bytes[at] << 16 | this.#bytes[at + 1] << 8 | this.#bytes[at + 2];
|
|
114
|
+
}
|
|
115
|
+
u32() {
|
|
116
|
+
const at = this.#take(4);
|
|
117
|
+
return (this.#bytes[at] << 24 | this.#bytes[at + 1] << 16 | this.#bytes[at + 2] << 8 | this.#bytes[at + 3]) >>> 0;
|
|
118
|
+
}
|
|
119
|
+
/** A copy, so a parsed message never aliases a reused packet buffer. */
|
|
120
|
+
bytes(length) {
|
|
121
|
+
const at = this.#take(length);
|
|
122
|
+
return this.#bytes.slice(at, at + length);
|
|
123
|
+
}
|
|
124
|
+
/** Throw unless every byte up to the end bound was consumed. */
|
|
125
|
+
expectEnd() {
|
|
126
|
+
if (this.remaining !== 0)
|
|
127
|
+
throw new MalformedSignalling("trailing bytes");
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
function fail(reason) {
|
|
131
|
+
throw new MalformedSignalling(reason);
|
|
132
|
+
}
|
|
133
|
+
function total(parse) {
|
|
134
|
+
try {
|
|
135
|
+
return parse();
|
|
136
|
+
} catch (error) {
|
|
137
|
+
if (error instanceof MalformedSignalling)
|
|
138
|
+
return null;
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
var SIGNALLING_FRAGMENTATION_COMPLETE = 0;
|
|
143
|
+
function parseSignallingPayload(mmtpPacket) {
|
|
144
|
+
let header;
|
|
145
|
+
try {
|
|
146
|
+
header = parseMMTPHeader(mmtpPacket);
|
|
147
|
+
} catch {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
if (header.packetType !== PACKET_TYPE_SIGNALING || header.fecType !== 0)
|
|
151
|
+
return null;
|
|
152
|
+
const payload = mmtpPacket.subarray(header.headerLength);
|
|
153
|
+
return total(() => splitSignallingPayload(payload));
|
|
154
|
+
}
|
|
155
|
+
function splitSignallingPayload(payload) {
|
|
156
|
+
if (payload.length < 2)
|
|
157
|
+
fail("short signalling payload");
|
|
158
|
+
if (payload[0] === ALFEC_MESSAGE_ID >> 8 && payload[1] === (ALFEC_MESSAGE_ID & 255)) {
|
|
159
|
+
return { form: "legacy-bare-alfec", messages: [payload] };
|
|
160
|
+
}
|
|
161
|
+
const reader = new WireReader(payload);
|
|
162
|
+
const flags = reader.u8();
|
|
163
|
+
const fragmentation = flags >> 6;
|
|
164
|
+
const lengthIs32Bits = (flags >> 1 & 1) === 1;
|
|
165
|
+
const aggregated = (flags & 1) === 1;
|
|
166
|
+
const fragmentCounter = reader.u8();
|
|
167
|
+
if (fragmentation !== SIGNALLING_FRAGMENTATION_COMPLETE)
|
|
168
|
+
fail("fragmented signalling message");
|
|
169
|
+
if (fragmentCounter !== 0)
|
|
170
|
+
fail("frag_counter on a complete message");
|
|
171
|
+
if (!aggregated) {
|
|
172
|
+
if (reader.remaining === 0)
|
|
173
|
+
fail("empty signalling payload");
|
|
174
|
+
return { form: "iso-9.3.4.2", messages: [payload.subarray(reader.offset)] };
|
|
175
|
+
}
|
|
176
|
+
const messages = [];
|
|
177
|
+
while (reader.remaining > 0) {
|
|
178
|
+
const length = lengthIs32Bits ? reader.u32() : reader.u16();
|
|
179
|
+
if (length === 0)
|
|
180
|
+
fail("zero MSG_length");
|
|
181
|
+
const start = reader.offset;
|
|
182
|
+
reader.bytes(length);
|
|
183
|
+
messages.push(payload.subarray(start, start + length));
|
|
184
|
+
}
|
|
185
|
+
if (messages.length === 0)
|
|
186
|
+
fail("aggregated payload with no message");
|
|
187
|
+
return { form: "iso-9.3.4.2", messages };
|
|
188
|
+
}
|
|
189
|
+
var PA_MESSAGE_ID = 0;
|
|
190
|
+
var MPI_MESSAGE_ID_FIRST = 1;
|
|
191
|
+
var MPI_MESSAGE_ID_LAST = 16;
|
|
192
|
+
var MPT_MESSAGE_ID_FIRST = 17;
|
|
193
|
+
var MPT_MESSAGE_ID_COMPLETE = 32;
|
|
194
|
+
function signallingMessageHas32BitLength(messageId) {
|
|
195
|
+
return messageId === PA_MESSAGE_ID || messageId >= MPI_MESSAGE_ID_FIRST && messageId <= MPI_MESSAGE_ID_LAST || messageId >= 28672 && messageId <= 32767;
|
|
196
|
+
}
|
|
197
|
+
function readMessageHeader(message) {
|
|
198
|
+
const reader = new WireReader(message);
|
|
199
|
+
const messageId = reader.u16();
|
|
200
|
+
const version = reader.u8();
|
|
201
|
+
const length = signallingMessageHas32BitLength(messageId) ? reader.u32() : reader.u16();
|
|
202
|
+
if (length === 0 || length !== reader.remaining)
|
|
203
|
+
fail("message length mismatch");
|
|
204
|
+
return { reader, messageId, version };
|
|
205
|
+
}
|
|
206
|
+
var FEC_CODING_STRUCTURE_NONE = 0;
|
|
207
|
+
var FEC_CODING_STRUCTURE_ONE_STAGE = 1;
|
|
208
|
+
var FEC_CODING_STRUCTURE_TWO_STAGE = 2;
|
|
209
|
+
var FEC_CODING_STRUCTURE_LAYER_AWARE = 3;
|
|
210
|
+
var SSBG_MODE_2 = 2;
|
|
211
|
+
function readPrivateField(reader) {
|
|
212
|
+
const head = reader.u8();
|
|
213
|
+
return { privateFlag: head >> 7, data: reader.bytes(head & 127) };
|
|
214
|
+
}
|
|
215
|
+
function readRepairFlowTail(reader, repairFlowId, fecCodeId, privateField) {
|
|
216
|
+
const maximumK = reader.u24();
|
|
217
|
+
const maximumP = reader.u24();
|
|
218
|
+
const protectionWindowTime = reader.u32();
|
|
219
|
+
const protectionWindowSize = reader.u32();
|
|
220
|
+
return {
|
|
221
|
+
repairFlowId,
|
|
222
|
+
fecCodeId,
|
|
223
|
+
...privateField ? { privateField } : {},
|
|
224
|
+
maximumK,
|
|
225
|
+
maximumP,
|
|
226
|
+
protectionWindowTime,
|
|
227
|
+
protectionWindowSize
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function readRepairFlow(reader, privateFecFlag) {
|
|
231
|
+
const repairFlowId = reader.u16();
|
|
232
|
+
const fecCodeId = reader.u8();
|
|
233
|
+
const privateField = privateFecFlag ? readPrivateField(reader) : void 0;
|
|
234
|
+
return readRepairFlowTail(reader, repairFlowId, fecCodeId, privateField);
|
|
235
|
+
}
|
|
236
|
+
function readFecFlow(reader, privateFecFlag) {
|
|
237
|
+
const fecFlowId = reader.u8();
|
|
238
|
+
const sourceFlowId = reader.u8();
|
|
239
|
+
const numberOfAssets = reader.u8();
|
|
240
|
+
if (numberOfAssets === 0)
|
|
241
|
+
fail("FEC flow with no asset");
|
|
242
|
+
const packetIds = [];
|
|
243
|
+
for (let i = 0; i < numberOfAssets; i++)
|
|
244
|
+
packetIds.push(reader.u16());
|
|
245
|
+
const coding = reader.u8();
|
|
246
|
+
const fecCodingStructure = coding >> 4;
|
|
247
|
+
const ssbgMode = coding >> 2 & 3;
|
|
248
|
+
const ffsrptsFlag = coding >> 1 & 1;
|
|
249
|
+
const fecPayloadIdMode = coding & 1;
|
|
250
|
+
if (ssbgMode === 3)
|
|
251
|
+
fail("reserved ssbg_mode");
|
|
252
|
+
const repairSymbolSize = reader.u16();
|
|
253
|
+
const flow = {
|
|
254
|
+
fecFlowId,
|
|
255
|
+
sourceFlowId,
|
|
256
|
+
packetIds,
|
|
257
|
+
fecCodingStructure,
|
|
258
|
+
ssbgMode,
|
|
259
|
+
ffsrptsFlag,
|
|
260
|
+
fecPayloadIdMode,
|
|
261
|
+
repairSymbolSize,
|
|
262
|
+
repairFlows: []
|
|
263
|
+
};
|
|
264
|
+
if (ssbgMode === SSBG_MODE_2) {
|
|
265
|
+
flow.ssbgMode2 = {
|
|
266
|
+
numRepairSymbolPerPacket: reader.u16(),
|
|
267
|
+
numSymbolElementPerSourceSymbol: reader.u16()
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
switch (fecCodingStructure) {
|
|
271
|
+
case FEC_CODING_STRUCTURE_NONE:
|
|
272
|
+
break;
|
|
273
|
+
case FEC_CODING_STRUCTURE_ONE_STAGE:
|
|
274
|
+
flow.repairFlows.push(readRepairFlow(reader, privateFecFlag));
|
|
275
|
+
break;
|
|
276
|
+
case FEC_CODING_STRUCTURE_TWO_STAGE: {
|
|
277
|
+
flow.numSubBlockPerSourceBlock = reader.u8();
|
|
278
|
+
const numberOfParityFlows = reader.u8();
|
|
279
|
+
for (let k = 0; k < numberOfParityFlows; k++) {
|
|
280
|
+
flow.repairFlows.push(readRepairFlow(reader, privateFecFlag));
|
|
281
|
+
}
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
case FEC_CODING_STRUCTURE_LAYER_AWARE: {
|
|
285
|
+
const numberOfLayers = reader.u8();
|
|
286
|
+
const fecCodeId = reader.u8();
|
|
287
|
+
const privateField = privateFecFlag ? readPrivateField(reader) : void 0;
|
|
288
|
+
for (let l = 0; l < numberOfLayers; l++) {
|
|
289
|
+
flow.repairFlows.push(readRepairFlowTail(reader, reader.u16(), fecCodeId, privateField));
|
|
290
|
+
}
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
default:
|
|
294
|
+
fail(`unsupported fec_coding_structure ${fecCodingStructure}`);
|
|
295
|
+
}
|
|
296
|
+
return flow;
|
|
297
|
+
}
|
|
298
|
+
function parseAlFecMessageBody(message) {
|
|
299
|
+
return total(() => {
|
|
300
|
+
const { reader, messageId, version } = readMessageHeader(message);
|
|
301
|
+
if (messageId !== ALFEC_MESSAGE_ID)
|
|
302
|
+
return null;
|
|
303
|
+
const flags = reader.u8();
|
|
304
|
+
const fecFlag = flags >> 7;
|
|
305
|
+
const privateFecFlag = flags >> 6 & 1;
|
|
306
|
+
if (fecFlag === 0) {
|
|
307
|
+
reader.expectEnd();
|
|
308
|
+
return { version, fecFlag, privateFecFlag, flows: [] };
|
|
309
|
+
}
|
|
310
|
+
const descriptorLength = reader.u16();
|
|
311
|
+
if (descriptorLength === 0 || descriptorLength !== reader.remaining) {
|
|
312
|
+
fail("length_of_fec_flow_descriptor mismatch");
|
|
313
|
+
}
|
|
314
|
+
const numberOfFecFlows = reader.u8();
|
|
315
|
+
if (numberOfFecFlows === 0)
|
|
316
|
+
fail("fec_flag=1 with no FEC flow");
|
|
317
|
+
const flows = [];
|
|
318
|
+
for (let i = 0; i < numberOfFecFlows; i++)
|
|
319
|
+
flows.push(readFecFlow(reader, privateFecFlag === 1));
|
|
320
|
+
reader.expectEnd();
|
|
321
|
+
return { version, fecFlag, privateFecFlag, flows };
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
function parseAlFecMessage(mmtpPacket) {
|
|
325
|
+
const packet = parseSignallingPacket(mmtpPacket);
|
|
326
|
+
if (!packet)
|
|
327
|
+
return null;
|
|
328
|
+
const alFec = packet.messages.filter((message) => message.kind === "al-fec");
|
|
329
|
+
if (alFec.length !== 1)
|
|
330
|
+
return null;
|
|
331
|
+
return { ...alFec[0].message, payloadForm: packet.payloadForm };
|
|
332
|
+
}
|
|
333
|
+
function readAssetLocation(reader) {
|
|
334
|
+
const locationType = reader.u8();
|
|
335
|
+
switch (locationType) {
|
|
336
|
+
case 0:
|
|
337
|
+
return { locationType, packetId: reader.u16() };
|
|
338
|
+
case 1:
|
|
339
|
+
case 2: {
|
|
340
|
+
const addressLength = locationType === 1 ? 4 : 16;
|
|
341
|
+
const srcAddress = reader.bytes(addressLength);
|
|
342
|
+
const dstAddress = reader.bytes(addressLength);
|
|
343
|
+
const dstPort = reader.u16();
|
|
344
|
+
return { locationType, srcAddress, dstAddress, dstPort, packetId: reader.u16() };
|
|
345
|
+
}
|
|
346
|
+
case 3: {
|
|
347
|
+
const networkId = reader.u16();
|
|
348
|
+
const transportStreamId = reader.u16();
|
|
349
|
+
return { locationType, networkId, transportStreamId, mpeg2Pid: reader.u16() & 8191 };
|
|
350
|
+
}
|
|
351
|
+
case 4: {
|
|
352
|
+
const srcAddress = reader.bytes(16);
|
|
353
|
+
const dstAddress = reader.bytes(16);
|
|
354
|
+
const dstPort = reader.u16();
|
|
355
|
+
return { locationType, srcAddress, dstAddress, dstPort, mpeg2Pid: reader.u16() & 8191 };
|
|
356
|
+
}
|
|
357
|
+
case 5:
|
|
358
|
+
return { locationType, url: reader.bytes(reader.u8()) };
|
|
359
|
+
case 6:
|
|
360
|
+
return { locationType, data: reader.bytes(reader.u16()) };
|
|
361
|
+
default:
|
|
362
|
+
fail(`location_type ${locationType} is not an Asset location`);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function readIdentifierMapping(reader) {
|
|
366
|
+
const identifierType = reader.u8();
|
|
367
|
+
switch (identifierType) {
|
|
368
|
+
case 0: {
|
|
369
|
+
const assetIdScheme = reader.u32();
|
|
370
|
+
return { identifierType, assetIdScheme, assetId: reader.bytes(reader.u32()) };
|
|
371
|
+
}
|
|
372
|
+
case 1: {
|
|
373
|
+
const urls = [];
|
|
374
|
+
const urlCount = reader.u16();
|
|
375
|
+
for (let i = 0; i < urlCount; i++)
|
|
376
|
+
urls.push(reader.bytes(reader.u16()));
|
|
377
|
+
return { identifierType, urls };
|
|
378
|
+
}
|
|
379
|
+
case 2:
|
|
380
|
+
return { identifierType, regex: reader.bytes(reader.u16()) };
|
|
381
|
+
case 3:
|
|
382
|
+
return { identifierType, representationId: reader.bytes(reader.u16()) };
|
|
383
|
+
default:
|
|
384
|
+
return { identifierType, privateIdentifier: reader.bytes(reader.u16()) };
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
var MP_TABLE_ID_SUBSET_0 = 17;
|
|
388
|
+
var MP_TABLE_ID_COMPLETE = 32;
|
|
389
|
+
var MPI_TABLE_ID_FIRST = 1;
|
|
390
|
+
var MPI_TABLE_ID_LAST = 16;
|
|
391
|
+
function readMpTable(reader) {
|
|
392
|
+
const tableId = reader.u8();
|
|
393
|
+
if (tableId < MP_TABLE_ID_SUBSET_0 || tableId > MP_TABLE_ID_COMPLETE)
|
|
394
|
+
fail("not an MP table");
|
|
395
|
+
const version = reader.u8();
|
|
396
|
+
const length = reader.u16();
|
|
397
|
+
if (length === 0)
|
|
398
|
+
fail("zero MP table length");
|
|
399
|
+
const table = new WireReader(reader.bytes(length));
|
|
400
|
+
const mpTableMode = table.u8() & 3;
|
|
401
|
+
const result = { tableId, version, mpTableMode, assets: [] };
|
|
402
|
+
if (tableId === MP_TABLE_ID_COMPLETE || tableId === MP_TABLE_ID_SUBSET_0) {
|
|
403
|
+
result.packageId = table.bytes(table.u8());
|
|
404
|
+
result.descriptors = table.bytes(table.u16());
|
|
405
|
+
}
|
|
406
|
+
const numberOfAssets = table.u8();
|
|
407
|
+
for (let i = 0; i < numberOfAssets; i++) {
|
|
408
|
+
const identifier = readIdentifierMapping(table);
|
|
409
|
+
const assetType = String.fromCharCode(...table.bytes(4));
|
|
410
|
+
const flags = table.u8();
|
|
411
|
+
const asset = {
|
|
412
|
+
identifier,
|
|
413
|
+
assetType,
|
|
414
|
+
assetModificationFlag: (flags >> 2 & 1) === 1,
|
|
415
|
+
defaultAssetFlag: (flags >> 1 & 1) === 1,
|
|
416
|
+
locations: [],
|
|
417
|
+
descriptors: new Uint8Array(0)
|
|
418
|
+
};
|
|
419
|
+
if ((flags & 1) === 1) {
|
|
420
|
+
asset.assetClockRelationId = table.u8();
|
|
421
|
+
if ((table.u8() & 1) === 1)
|
|
422
|
+
asset.assetTimescale = table.u32();
|
|
423
|
+
}
|
|
424
|
+
const locationCount = table.u8();
|
|
425
|
+
for (let j = 0; j < locationCount; j++)
|
|
426
|
+
asset.locations.push(readAssetLocation(table));
|
|
427
|
+
asset.descriptors = table.bytes(table.u16());
|
|
428
|
+
result.assets.push(asset);
|
|
429
|
+
}
|
|
430
|
+
table.expectEnd();
|
|
431
|
+
return result;
|
|
432
|
+
}
|
|
433
|
+
function parseMpTable(bytes) {
|
|
434
|
+
return total(() => {
|
|
435
|
+
const reader = new WireReader(bytes);
|
|
436
|
+
const table = readMpTable(reader);
|
|
437
|
+
reader.expectEnd();
|
|
438
|
+
return table;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
function parsePaMessageBody(message) {
|
|
442
|
+
return total(() => {
|
|
443
|
+
const { reader, messageId, version } = readMessageHeader(message);
|
|
444
|
+
if (messageId !== PA_MESSAGE_ID)
|
|
445
|
+
return null;
|
|
446
|
+
const numberOfTables = reader.u8();
|
|
447
|
+
const entries = [];
|
|
448
|
+
for (let i = 0; i < numberOfTables; i++) {
|
|
449
|
+
entries.push({ tableId: reader.u8(), tableVersion: reader.u8(), tableLength: reader.u16() });
|
|
450
|
+
}
|
|
451
|
+
const tables = [];
|
|
452
|
+
const mpTables = [];
|
|
453
|
+
for (const entry of entries) {
|
|
454
|
+
const start = reader.offset;
|
|
455
|
+
const tableId = reader.u8();
|
|
456
|
+
const tableVersion = reader.u8();
|
|
457
|
+
const length = reader.u16();
|
|
458
|
+
if (length === 0)
|
|
459
|
+
fail("zero table length");
|
|
460
|
+
reader.bytes(length);
|
|
461
|
+
const isMpi = tableId >= MPI_TABLE_ID_FIRST && tableId <= MPI_TABLE_ID_LAST;
|
|
462
|
+
if (tableId !== entry.tableId || tableVersion !== entry.tableVersion || !isMpi && length !== entry.tableLength) {
|
|
463
|
+
fail("PA extension does not describe its table");
|
|
464
|
+
}
|
|
465
|
+
const bytes = message.subarray(start, reader.offset);
|
|
466
|
+
tables.push({ tableId, version: tableVersion, bytes });
|
|
467
|
+
if (tableId >= MP_TABLE_ID_SUBSET_0 && tableId <= MP_TABLE_ID_COMPLETE) {
|
|
468
|
+
const table = parseMpTable(bytes);
|
|
469
|
+
if (!table)
|
|
470
|
+
fail("malformed MP table in PA message");
|
|
471
|
+
mpTables.push(table);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
reader.expectEnd();
|
|
475
|
+
return { version, tables, mpTables };
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
function parseMptMessageBody(message) {
|
|
479
|
+
return total(() => {
|
|
480
|
+
const { reader, messageId, version } = readMessageHeader(message);
|
|
481
|
+
if (messageId < MPT_MESSAGE_ID_FIRST || messageId > MPT_MESSAGE_ID_COMPLETE)
|
|
482
|
+
return null;
|
|
483
|
+
const table = readMpTable(reader);
|
|
484
|
+
reader.expectEnd();
|
|
485
|
+
return { messageId, version, table };
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
function decodeSignallingMessage(bytes) {
|
|
489
|
+
const { messageId, version } = readMessageHeader(bytes);
|
|
490
|
+
if (messageId === ALFEC_MESSAGE_ID) {
|
|
491
|
+
const message = parseAlFecMessageBody(bytes);
|
|
492
|
+
if (!message)
|
|
493
|
+
fail("malformed AL-FEC message");
|
|
494
|
+
return { kind: "al-fec", message };
|
|
495
|
+
}
|
|
496
|
+
if (messageId === PA_MESSAGE_ID) {
|
|
497
|
+
const message = parsePaMessageBody(bytes);
|
|
498
|
+
if (!message)
|
|
499
|
+
fail("malformed PA message");
|
|
500
|
+
return { kind: "pa", message };
|
|
501
|
+
}
|
|
502
|
+
if (messageId >= MPT_MESSAGE_ID_FIRST && messageId <= MPT_MESSAGE_ID_COMPLETE) {
|
|
503
|
+
const message = parseMptMessageBody(bytes);
|
|
504
|
+
if (!message)
|
|
505
|
+
fail("malformed MPT message");
|
|
506
|
+
return { kind: "mpt", message };
|
|
507
|
+
}
|
|
508
|
+
return { kind: "other", messageId, version, bytes };
|
|
509
|
+
}
|
|
510
|
+
function parseSignallingPacket(mmtpPacket) {
|
|
511
|
+
const payload = parseSignallingPayload(mmtpPacket);
|
|
512
|
+
if (!payload)
|
|
513
|
+
return null;
|
|
514
|
+
return total(() => ({
|
|
515
|
+
payloadForm: payload.form,
|
|
516
|
+
messages: payload.messages.map(decodeSignallingMessage)
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// ../mmt-base/dist/fec-block-profile.js
|
|
521
|
+
var FEC_BLOCK_PROFILES = Object.freeze([
|
|
522
|
+
"k-padded-v1",
|
|
523
|
+
"iso-ssbg1-v1"
|
|
524
|
+
]);
|
|
525
|
+
|
|
526
|
+
// src/signaling.ts
|
|
527
|
+
function getPacketType(mmtpPacket) {
|
|
528
|
+
if (mmtpPacket.length < 2) return -1;
|
|
529
|
+
return mmtpPacket[1] & 63;
|
|
530
|
+
}
|
|
531
|
+
function isSignalingPacket(mmtpPacket) {
|
|
532
|
+
return getPacketType(mmtpPacket) === PACKET_TYPE_SIGNALING;
|
|
533
|
+
}
|
|
534
|
+
function isSourcePacket(mmtpPacket) {
|
|
535
|
+
if (mmtpPacket.length < 2) return false;
|
|
536
|
+
const packetType = mmtpPacket[1] & 63;
|
|
537
|
+
const fecType = mmtpPacket[0] >> 3 & 3;
|
|
538
|
+
return packetType === 0 && fecType <= 1;
|
|
539
|
+
}
|
|
540
|
+
function classifyPacket(mmtpPacket) {
|
|
541
|
+
if (mmtpPacket.length < 2) return "unknown";
|
|
542
|
+
const packetType = mmtpPacket[1] & 63;
|
|
543
|
+
const fecType = mmtpPacket[0] >> 3 & 3;
|
|
544
|
+
if (mmtpPacket[0] >> 6 !== 0) return "unknown";
|
|
545
|
+
switch (packetType) {
|
|
546
|
+
case 0:
|
|
547
|
+
if (mmtpPacket.length < 20) return "unknown";
|
|
548
|
+
if (fecType >= 2) return "repair";
|
|
549
|
+
return "source";
|
|
550
|
+
case 2:
|
|
551
|
+
return "signaling";
|
|
552
|
+
case 3:
|
|
553
|
+
if (mmtpPacket.length < 20) return "unknown";
|
|
554
|
+
return "repair";
|
|
555
|
+
default:
|
|
556
|
+
return "unknown";
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
export {
|
|
560
|
+
ALFEC_MESSAGE_ID,
|
|
561
|
+
FEC_CODE_RAPTORQ,
|
|
562
|
+
FEC_CODE_XOR,
|
|
563
|
+
PACKET_TYPE_MPU,
|
|
564
|
+
PACKET_TYPE_REPAIR,
|
|
565
|
+
PACKET_TYPE_SIGNALING,
|
|
566
|
+
classifyPacket,
|
|
567
|
+
getPacketType,
|
|
568
|
+
isSignalingPacket,
|
|
569
|
+
isSourcePacket,
|
|
570
|
+
parseAlFecMessage
|
|
571
|
+
};
|
|
572
|
+
//# sourceMappingURL=signaling.js.map
|