pub struct FlexFecSendInterceptor { /* private fields */ }Expand description
Produces RFC 8627 FlexFEC repair packets (flexfec, not flexfec-03) for outgoing media.
Binds a local stream that names a FEC SSRC, a FEC payload type and the flexfec format
(StreamInfo::fec_is_flexfec). Its repair-window is read from the FEC format’s
a=fmtp line.
Source packets pass through unaltered (section 4.1); repair packets follow the packet that completed their block, on the repair SSRC, with the protected SSRC in their CSRC list.
Implementations§
Source§impl FlexFecSendInterceptor
impl FlexFecSendInterceptor
Sourcepub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
pub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
The source SSRCs currently being protected.
Sourcepub fn repair_window(&self, ssrc: u32) -> Option<Duration>
pub fn repair_window(&self, ssrc: u32) -> Option<Duration>
The repair window in force for the source stream ssrc.
Source§impl FlexFecSendInterceptor
impl FlexFecSendInterceptor
Sourcepub fn wire_tap(&mut self) -> WireImageTap
pub fn wire_tap(&mut self) -> WireImageTap
The tap this encoder reads the source packets from, to register at
Slot::FecWireImage.
FEC covers the source packets as they are on the wire (RFC 8627 section 4.1). This interceptor generates packets, so it sits above the pacer, where a source packet is not final: the TWCC sender below writes the transport-wide sequence number into it, adding the header extension when the packet has none. With the tap registered the encoder protects the packet that left (and keeps that image for retransmission), and the repair packets still enter the chain here, so they are paced, numbered and recorded. Without a tap the encoder reads the packets as they pass this slot, which is the wire image only when nothing below edits them.
Trait Implementations§
Source§impl Interceptor for FlexFecSendInterceptor
impl Interceptor for FlexFecSendInterceptor
Source§fn bind_local_stream(&mut self, info: &StreamInfo)
fn bind_local_stream(&mut self, info: &StreamInfo)
Source§fn unbind_local_stream(&mut self, info: &StreamInfo)
fn unbind_local_stream(&mut self, info: &StreamInfo)
Source§fn bind_remote_stream(&mut self, _info: &StreamInfo)
fn bind_remote_stream(&mut self, _info: &StreamInfo)
Source§fn unbind_remote_stream(&mut self, _info: &StreamInfo)
fn unbind_remote_stream(&mut self, _info: &StreamInfo)
Source§fn with<O, F>(self, f: F) -> O
fn with<O, F>(self, f: F) -> O
f, for nested (#[next]-field)
interceptors written with the Interceptor derive. The result is an
ordinary interceptor and can be placed in a Registry slot. Read moreSource§fn move_local_stream_out(&mut self, info: &StreamInfo)
fn move_local_stream_out(&mut self, info: &StreamInfo)
info moves to another RTP session (its m= section moved to another
transport, as a bundling answer does): it leaves this one without ending, so nothing
says it left (no RTCP BYE, RFC 3550 section 6.6). Unbinds it by default.