Skip to main content

Crate hang

Crate hang 

Source
Expand description

§hang: WebCodecs compatible media encoding for MoQ

Media-specific library built on [moq_net] for streaming audio and video with WebCodecs.

Each hang broadcast consists of:

  • Catalog: A JSON track containing codec info and track metadata, updated live as tracks change.
  • Tracks: Audio or video, supporting one or more renditions.

Each track specifies a container format:

  • Legacy: A timestamp followed by the codec payload.
  • CMAF: Fragmented MP4 container (moof+mdat pair)

See the moq-mux crate for importing existing media formats into hang broadcasts.

Re-exports§

pub use catalog::Catalog;

Modules§

catalog
The catalog is used to describe the available media tracks and codecs. The catalog describes the tracks a broadcast publishes.
container
The container is the contents of each media track.
echo
Solicited viewer feedback and echo broadcast names. Solicited viewer feedback, carried on an echo broadcast.
health
Client health graded from two consecutive stats or feedback reports. Client health from two consecutive media reports.
stats
Publisher media and transport snapshots. Publisher media and transport snapshots.

Enums§

Error
Error types for the hang media library.

Type Aliases§

Result
A Result type alias for hang operations.