Crate hang

Crate hang 

Source
Expand description

§hang: Media over QUIC Library

hang is a media-specific library built on top of moq_lite, providing high-level components for real-time audio and video streaming over QUIC. It implements media containers, codecs, and streaming protocols optimized for real-time live broadcasting.

§Overview

While moq_lite provides the generic transport layer, hang adds:

  • Catalog: A list of available tracks and their metadata.
  • Codec support: Integration with common audio/video codecs
  • Container: A simple timestamped container format.
  • CMAF Import: Convert a fMP4 file into a hang broadcast.

Re-exports§

pub use catalog::Catalog;
pub use catalog::CatalogConsumer;
pub use catalog::CatalogProducer;
pub use moq_lite;

Modules§

catalog
The catalog describes available media tracks and codecs.
cmaf
feedback

Structs§

Frame
A media frame with a timestamp and codec-specific payload.
GroupConsumer
A consumer for a group of frames.
LocationConsumer
LocationProducer
Position
TrackConsumer
A consumer for hang-formatted media tracks.
TrackProducer
A producer for media tracks.

Enums§

Error
Error types for the hang media library.

Type Aliases§

Result
A Result type alias for hang operations.
Timestamp
A timestamp representing the presentation time of a media frame.