| Filename | Latest commit message | Latest commit date |
|---|---|---|
Each example holds the license's text as LICENSE (wai/LICENSE, byte for byte) and says so in its README; wai create writes it with the rest of the template, from one copy in the binary. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
| .. | ||
| floor | ||
| test | ||
| .gitignore | ||
| index.html | ||
| LICENSE | ||
| pack.sh | ||
| player.js | ||
| policy.toml | ||
| README.md | ||
| test-key.hex | ||
| wai.json | ||
Package a title and play it
What it shows. A title packed by policy: a WAI base of wai.video.int_motion objects and,
beside it, a floor in a standard codec (AV1 in CMAF) that any player plays, with HLS and DASH
playlists and a MoQ catalog. The whole package is sealed in a signed receipt, and verified:
every object, every playlist, the receipt. Then the page plays the floor with the browser's
own decoder.
Run it.
wai create my-title --template package-and-deliver
cd my-title
sh pack.sh
wai dev
Open http://127.0.0.1:8080/.
What you see. pack.sh prints what it packed and wai-pack verify checks it. The page
plays the small test clip from package/hls/classic/floor-v.m3u8, segment by segment.
Make it yours. policy.toml names the source, the ladder and the classes of sink. Point
source at your own clip (Y4M video, WAV audio) and supply its AV1 floor in floor/; sign
with a key of your own, not test-key.hex, which is a published test key. wai-pack alone
prints its commands, live packaging among them.
With a coding assistant. Run wai setup-agent in this directory: it writes the
instructions an assistant reads and connects it to WAI's tools.
License. Apache-2.0: the text is in LICENSE, and a project wai create makes from this
example carries it.