Skip to main content

Module catalog

Module catalog 

Source
Expand description

The catalog is used to describe the available media tracks and codecs. The catalog describes the tracks a broadcast publishes.

This is a JSON blob that can be live updated like any other track in MoQ. It describes the available audio and video tracks, including codec information, resolution, bitrates, and other metadata, plus the json and binary sections listing the data tracks that aren’t media.

Structs§

AAC
AAC codec mimetype.
AV1
AV1 codec mimetype.
Audio
Information about an audio track in the catalog.
AudioConfig
Audio decoder configuration based on WebCodecs AudioDecoderConfig.
Binary
The binary tracks a broadcast publishes, keyed by track name.
BinaryConfig
How to read one binary track.
Catalog
A catalog track, created by a broadcaster to describe the tracks available in a broadcast.
Chromaticity
A CIE 1931 xy chromaticity coordinate.
Clock
The broadcast’s one continuous clock, advertised at the catalog root.
Color
The colour a rendition’s pixels carry, so a renderer can set up its pipeline without reparsing the bitstream.
Consumer
Reads typed catalog roots from a catalog track, subscribing to it at catalog priority.
ContentLight
Content light levels in candelas per square metre, as CTA-861.3. Zero means unknown.
Display
Display size for rendering video
Echo
The relative broadcast prefix under which viewers may publish feedback.
Extra
The untyped catalog extension: arbitrary top-level JSON sections beyond the base video/audio/text media sections and shared archive, captured and republished verbatim.
H264
H.264/AVC codec mimetype.
H265
H.265/HEVC codec mimetype.
Include
A whole broadcast whose own catalog describes its renditions, listed without opening it.
Json
The JSON tracks a broadcast publishes, keyed by track name.
JsonConfig
How to read one JSON track.
Mastering
The colour volume of a mastering display, as SMPTE ST 2086.
Priorities
Delivery priorities for each hang track kind.
Skipped
The catalog entries a reader skipped because a newer moq-hang draft defines them.
Stats
The publisher’s media snapshot track in this broadcast.
Text
Information about the text (caption/subtitle) tracks in the catalog.
TextConfig
Timed-text (caption/subtitle) track configuration.
Timeline
The broadcast’s timeline: the wall-clock time of PTS zero and how often a viewer can join.
UnknownContainer
The raw JSON of a container whose kind is not recognized.
UnknownProjection
The raw JSON of a projection whose kind is not recognized.
VP9
VP9 codec configuration.
Video
Information about a video track in the catalog.
VideoConfig
Video decoder configuration based on WebCodecs VideoDecoderConfig.
VideoProperties
Catalog properties shared by every video rendition.

Enums§

AudioCodec
Supported audio codec mimetypes.
AudioCodecKind
Coarse audio codec family, used for tag-only matching.
AudioLayout
What a rendition’s decoded channels carry, beyond the codec’s own channel order.
ColorRange
The numeric range of the samples, as H.273’s VideoFullRangeFlag.
Container
Container format for frame timestamp encoding and frame payload structure.
Mode
How a metadata track’s groups carry its payloads.
Orientation
Which side of a picture or viewport is longer.
Projection
How a rendition’s decoded picture maps onto the viewer’s field of view.
Stereo
How a rendition packs each eye’s view into its frames.
TextFormat
The serialization format of a text track’s frames.
TextRole
The accessibility role of a text track, mirroring the roles registered by draft-ietf-moq-msf.
VideoCodec
Supported video codec mimetypes.
VideoCodecKind
Coarse video codec family, used for tag-only matching.

Constants§

MAX_SAFE_INTEGER
The largest integer JSON preserves exactly (2^53 - 1).
PRIORITY
Default delivery priorities for hang tracks, with higher values sent first.

Traits§

CatalogExt
An application’s catalog extension: a plain serde struct of extra root sections that are serialized as a flat union with the base media sections.
Reference
Where a catalog entry’s track lives: the broadcast that publishes it and its name there.