pub struct FlexFecParameters {
pub repair_window: Option<Duration>,
}Expand description
The parameters of an RFC 8627 flexfec payload type beyond its clock rate.
RFC 8627 registers one: the required repair-window. (L, D and ToP were optional
parameters of draft-03 and did not survive into the RFC; a line that carries them is
accepted and they are ignored, as any unknown parameter is: section 5.2.1.)
Fields§
§repair_window: Option<Duration>repair-window: “the time that spans the source packets and the corresponding repair
packets”, in microseconds on the wire. None when the line does not carry a usable one.
Implementations§
Source§impl FlexFecParameters
impl FlexFecParameters
Sourcepub fn with_repair_window(repair_window: Duration) -> Self
pub fn with_repair_window(repair_window: Duration) -> Self
Parameters with the given repair window.
Sourcepub fn parse(fmtp: &str) -> Self
pub fn parse(fmtp: &str) -> Self
Read the parameters from the value of an a=fmtp line (what follows the payload type),
a semicolon-separated list of name=value pairs (section 5.2).
Names are compared without case; unknown parameters are ignored. repair-window:200000,
the spelling of the RFC’s second SDP example (section 7.1.2), is read as well.