Skip to main content

Crate moq_loc

Crate moq_loc 

Source
Expand description

Wire encoding for the Low Overhead Container (LOC) defined in draft-ietf-moq-loc.

A LOC frame is laid out as:

[varint: properties_length]
[properties_block: properties_length bytes of KVPs]
[codec_bitstream: remaining bytes]

Each KVP starts with a delta-encoded type id. Even types carry a single varint value, odd types carry length-prefixed bytes. Recognized types:

IDNameDecoded into
0x06TimestampFrame::timestamp (required)
0x08TimescaleFrame::timescale (optional, per-frame override)
0x0dVideo ConfigSkipped. The hang catalog’s description is authoritative.

Any other property is silently skipped on decode and never emitted on encode. Public properties are not handled here. They belong in the MoQ object header and are stripped by the transport layer.

Varint encoding is QUIC-style throughout, matching the rest of the moq stack.

Structs§

Frame
A decoded LOC frame.

Enums§

Error
Errors from LOC frame encode/decode.

Functions§

decode
Decode a LOC frame.
encode
Encode a LOC frame with a single 0x06 Timestamp property.