@moq/hang
The hang media format as TypeScript types and codecs, shared by @moq/watch and @moq/publish.
- Catalog: zod schemas for the root, video and audio renditions, containers, and timelines. The root is a loose object, so
z.extend(Catalog.RootSchema, { yourSection })adds your own. - Containers:
Container.Legacyproducer/consumer andContainer.Cmafinit and data segment helpers. - Utilities: hex, priority and latency math, an Opus polyfill for browsers without a native decoder, and the browser quirks the media packages work around.
ts
import * as Catalog from "@moq/hang/catalog";
import * as Container from "@moq/hang/container";Most apps never import it directly; the elements and Broadcast classes in the watch and publish packages do. Reach for it when hand-rolling a catalog or building a custom player.