3 releases (breaking)

✓ Uses Rust 2018 edition

0.3.0 Mar 5, 2019
0.2.0 Mar 15, 2018
0.1.0 Mar 1, 2018

#16 in Video

30 downloads per month
Used in 3 crates


231 lines


crates.io version Documentation

Rust reader for Realtime Transport Protocol packet structure.

This crate provides efficient read access to the fields and payload of an RTP packet. The provided type is just a wrapper around a &[u8] borrowed byte slice; It is zero-copy and zero-allocation, with RTP header fields only being read if calling code actually uses a given accessor method.

Does not support actually reading UDP from the network, or any kind or RTP session management (i.e. no buffering to handle packet reordering, loss notification, pacing, etc.)

Supported RTP syntax

  • reading
    • all simple header fields
    • extension headers (unsupported, but skipped for the purpose of finding the actual RTP payload)
  • writing
    • unsupported

No runtime deps