pub enum Container {
Legacy,
Cmaf {
init: Bytes,
},
Loc,
Raw,
Cts,
Unknown(UnknownContainer),
}Expand description
Container format for frame timestamp encoding and frame payload structure.
JSON examples:
{ "kind": "cmaf", "init": "<base64-encoded ftyp+moov>" }
{ "kind": "loc" }An unrecognized kind decodes to Container::Unknown instead of failing, so one
rendition using a future container does not take down the rest of the catalog. Such a
rendition must be ignored by consumers. A kind that is absent or not a string is malformed.
Variants§
Legacy
A QUIC varint timestamp prefix followed by the raw codec payload. Timestamps are in microseconds.
Cmaf
Fragmented MP4: each frame is a complete moof+mdat fragment.
Loc
Low Overhead Container (draft-ietf-moq-loc): each frame is a small property block followed by the codec payload.
Raw
No container header: each frame is the raw codec payload and its presentation timestamp is the MoQ transport timestamp (DTS == PTS). Requires a timed track.
Cts
A QUIC varint composition time offset (CTS, in the track’s timescale) followed by the raw codec payload; PTS is transport timestamp + CTS. Requires a timed track.
Unknown(UnknownContainer)
A container this build does not recognize, preserved verbatim.