https://github.com/dholroyd/rtp-rs
Rust reader for Realtime Transport Protocol packet structure
https://github.com/dholroyd/rtp-rs
rfc3550 rtp
Last synced: 6 months ago
JSON representation
Rust reader for Realtime Transport Protocol packet structure
- Host: GitHub
- URL: https://github.com/dholroyd/rtp-rs
- Owner: dholroyd
- Created: 2018-03-01T22:43:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-08-11T22:13:05.000Z (10 months ago)
- Last Synced: 2025-09-06T14:59:16.170Z (9 months ago)
- Topics: rfc3550, rtp
- Language: Rust
- Homepage:
- Size: 57.6 KB
- Stars: 46
- Watchers: 6
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# rtp-rs
[](https://crates.io/crates/rtp-rs)
[](https://docs.rs/rtp-rs)
[ChangeLog](https://github.com/dholroyd/rtp-rs/blob/master/CHANGELOG.md)
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
- [x] reading
- [x] all simple header fields
- [x] extension header (if present, the `u16` identifier and `&[u8]`value are exposed without further interpretation)
- [x] building
- [x] all simple header fields
- [x] extension header
- [x] padding to specified number of bytes