wai-rs gains the feature floor (the mandatory floor of SPEC 5: PNG, FLAC and zstd, decoded with no system codec library) and quickstart (the floor, and the receipt checks hello and verify run). The wai command line gains four verbs, one module each, named in one table (dx::VERBS): - hello: name, dispatch, rebuild and receipt on a picture made here, the receipt laid out as http-delivery 8 lays receipts beside an object; - create: a new project from one of the examples, whose files the binary holds; tests/cli_dx.rs holds them to wai/examples/ byte for byte; - dev: the relay, the room service and the room page on one loopback origin, as a production front serves them; --check checks each piece through it; - verify: the receipt indexes under a directory, checked offline. The project file a template writes, wai.json, is read in one place (dx/project.rs). wai/examples/ holds video-room, watch-together, messaging, encoder-ingest, package-and-deliver, verify-receipts, apple-app, android-app and remote-desktop, each with a README and a test that runs it through wai create and wai dev. wai/quickstart/ builds the room client and the archive that holds wai, the relay, the room service, the remote host and the packager. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16 lines
910 B
Shell
Executable file
16 lines
910 B
Shell
Executable file
#!/bin/sh
|
|
# Package the sample title and check the package:
|
|
# 1. the title: a 64x36 test clip, made by wai-pack itself (deterministic);
|
|
# 2. pack it by policy.toml: a WAI base (wai.video.int_motion objects) and the AV1 floor
|
|
# supplied in floor/, as CMAF with HLS and DASH playlists and a MoQ catalog, the whole
|
|
# sealed in package/package.receipt.json with the key in test-key.hex;
|
|
# 3. verify the package: every object, every playlist and the receipt.
|
|
# test-key.hex is a published test key (32 bytes of 0x5a), so the receipt proves nothing about
|
|
# who packed it; for your own titles, use a key of your own (64 hexadecimal digits, kept secret).
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
wai-pack fixture gen video-base-01 -o video-base-01.y4m
|
|
rm -rf package
|
|
wai-pack pack --policy policy.toml --out package --key test-key.hex
|
|
wai-pack verify package
|
|
echo "packed: open the page wai dev serves to play it"
|