Expand description
Catalog publish/subscribe.
The catalog is a JSON document listing every track in a broadcast: its codec, container, dimensions, and any decoder configuration the subscriber needs. Two encodings coexist on every broadcast:
hangis hang’s original shape, served on thecatalog.jsontrack.msfis the IETF-proposed alternative, served on thecatalogtrack.
Publishing through Producer writes both tracks together;
subscribers pick one based on the broadcast’s filename suffix. See
CatalogFormat for the suffix-to-format mapping. The producer is
generic over an application extension E (see hang::CatalogExt),
defaulting to () for media-only catalogs.
On the consume side, Consumer is the unified entry point: it
subscribes to whichever catalog track format advertises and yields
Catalog<E> snapshots. Wrap it with Select (driven by a
select::Broadcast) to narrow the set before
handing it to an exporter; both also implement Stream so they compose
either direction.
Modules§
Structs§
- Config
- Everything a catalog
Produceris built from: the initial catalog and any overrides. - Consumer
- A catalog stream sourced from a [
moq_net::broadcast::Consumer]. - Entry
- One entry in a catalog section: the track’s name and the config describing it.
- Estimate
- The catalog fields a producer measures from the frames written to it.
- Guard
- RAII guard for modifying a catalog with automatic publishing on drop.
- Producer
- Produces both a hang and MSF catalog track for a broadcast.
- Reserved
- A clonable reservation context handed to importers so they declare their tracks up front.
- Select
- A
Streamthat keeps only the renditions aselect::Broadcastselects. - Timebase
- One source’s timestamp base on a catalog, shared by every importer reading it.
- Video
Hint - Caller-provided catalog fields for a video track: a starting point for what the importer detects.
Enums§
- Catalog
Format - The catalog format advertised by a broadcast name suffix.
Traits§
- Into
Rendition - The config a data producer (
Producer::json_streamand the like) publishes as its catalog entry. - Rendition
Config - A catalog config that can be published as a named rendition.
- Stream
- A stream of catalog snapshots.