File
Blob: firmware/vendor/str0m/src/rtp/mod.rs
| 1 | mod id; |
| 2 | pub(crate) use id::MidRid; |
| 3 | pub use id::{Mid, Pt, Rid, SeqNo, SessionId, Ssrc, TwccClusterId, TwccSeq}; |
| 4 | |
| 5 | mod ext; |
| 6 | pub use ext::{AbsCaptureTime, UserExtensionValues, VideoOrientation}; |
| 7 | pub use ext::{Extension, ExtensionMap, ExtensionSerializer, ExtensionValues}; |
| 8 | |
| 9 | mod dir; |
| 10 | pub use dir::Direction; |
| 11 | |
| 12 | mod mtime; |
| 13 | pub use mtime::Frequency; |
| 14 | pub use mtime::MediaTime; |
| 15 | |
| 16 | mod header; |
| 17 | pub use header::RtpHeader; |
| 18 | pub(crate) use header::{extend_u7, extend_u8, extend_u15, extend_u16, extend_u32}; |
| 19 | |
| 20 | mod srtp; |
| 21 | pub(crate) use srtp::SrtpContext; |
| 22 | pub(crate) use srtp::{SRTCP_OVERHEAD, SRTP_BLOCK_SIZE, SRTP_OVERHEAD}; |
| 23 | |
| 24 | mod rtcp; |
| 25 | pub use rtcp::*; |
| 26 | |
| 27 | pub use str0m_proto::{Bitrate, DataSize}; |
| 28 | |
| 29 | // Max in the RFC 3550 is 255 bytes, we limit it to be modulus 16 for SRTP and to match libWebRTC |
| 30 | pub const MAX_BLANK_PADDING_PAYLOAD_SIZE: usize = 240; |
| 31 | |
| 32 | /// Errors that can arise in RTP. |
| 33 | mod error; |
| 34 | pub use error::RtpError; |