Thanks to visit codestin.com
Credit goes to lib.rs

13 releases (5 breaking)

new 0.6.1 Oct 27, 2025
0.5.5 Sep 22, 2025
0.5.2 Jul 31, 2025
0.1.0 Mar 24, 2025

#2131 in Network programming

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

280 downloads per month
Used in 4 crates

MIT/Apache

305KB
7.5K SLoC

Documentation Crates.io License: MIT

hang

A media library built on top of moq-lite for streaming audio and video. hang provides media-specific functionality, split into a few components:

  • Broadcast: A discoverable collection of tracks, documented using a catalog.
  • Catalog: Metadata describing the available tracks, codec information, etc. This is a live track itself and is updated as tracks are added/removed/changed.
  • Track: Audio/video streams, as well as other types of data.
  • Group: A group of pictures (video) or collection of samples (audio). Each group is independently decodable.
  • Frame: A timestamp and a codec payload pair.

Supported Codecs

We most of the implement the WebCodecs specification.

  • Video: H.264, H.265, VP8, VP9, AV1
  • Audio: AAC, Opus

CMAF Import

There's also a cmaf module that can import fMP4/CMAF files into a hang broadcast. It's crude and doesn't support all features, but it's a good starting point to ingest existing content.

Examples

Dependencies

~8–15MB
~263K SLoC