#[non_exhaustive]pub struct PacerPriorities {
pub weights: Vec<(u32, f64)>,
}Expand description
The streams’ weights in the pacer’s share by priority (see “Order of service” on
PacerInterceptor): each media SSRC with the weight of its encoding’s priority, each
level twice the level below (RFC 8835 section 4.1; the peer connection gives very-low 1,
low 2, medium 4, high 8). A bound stream’s RTX and FEC streams weigh with it; a stream not
named weighs 2 (low, the W3C default). Each replaces the weights given before.
The peer connection writes it into the chain, as an Attribute::Custom on an empty RTCP
packet (PacerPriorities::into_packet), each time a description is applied and after
setParameters. The pacer takes the weights and passes the carrier on, which reaches the
end of the chain and is dropped there. Read with
AttributedPacket::custom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.weights: Vec<(u32, f64)>(media SSRC, weight); a weight that is not a positive number counts as 2.
Implementations§
Source§impl PacerPriorities
impl PacerPriorities
Sourcepub fn into_packet(self, now: Instant) -> TaggedPacket
pub fn into_packet(self, now: Instant) -> TaggedPacket
The packet that carries this into the chain when written at now.