6 releases (breaking)

0.6.0 May 13, 2021
0.5.0 Sep 28, 2019
0.4.0 Sep 25, 2019
0.3.0 Mar 5, 2019
0.1.0 Mar 1, 2018

#460 in Video

Download history 275/week @ 2023-12-14 283/week @ 2023-12-21 247/week @ 2023-12-28 803/week @ 2024-01-04 452/week @ 2024-01-11 827/week @ 2024-01-18 493/week @ 2024-01-25 268/week @ 2024-02-01 325/week @ 2024-02-08 514/week @ 2024-02-15 245/week @ 2024-02-22 251/week @ 2024-02-29 251/week @ 2024-03-07 398/week @ 2024-03-14 498/week @ 2024-03-21 291/week @ 2024-03-28

1,497 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

39KB
638 lines

rtp-rs

crates.io version Documentation

ChangeLog

Rust reader and builder 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 header (if present, the u16 identifier and &[u8]value are exposed without further interpretation)
  • building
    • all simple header fields
    • extension header
    • padding to specified number of bytes

No runtime deps