pub struct FlexFec03SendInterceptor { /* private fields */ }Expand description
Produces FlexFEC draft-03 repair packets for outgoing media.
Binds only when the stream carries both a FEC SSRC and a FEC payload type: a repair stream
needs its own SSRC to send on and its own payload type to be recognised by, and half an
association is not usable. Those come from the negotiated a=ssrc-group:FEC-FR.
Implementations§
Source§impl FlexFec03SendInterceptor
impl FlexFec03SendInterceptor
Sourcepub fn wire_tap(&mut self) -> WireImageTap
pub fn wire_tap(&mut self) -> WireImageTap
The tap this encoder reads the media packets from, to register at
Slot::FecWireImage.
FEC covers the source packets as they are on the wire (draft-03 section 4.1). This interceptor generates packets, so it sits above the pacer, where a media 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. Encoding there protects an image the receiver never sees, and what it recovers from it is corrupt. With the tap registered the encoder protects the packet that left, and the repair packets still enter the chain here, so they are paced, numbered and recorded.
Without a tap (this method never called) the encoder reads the packets as they pass this slot, which is the wire image only when nothing below edits them: no TWCC sender in the chain.
Sourcepub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
pub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
The media SSRCs currently being protected.
Trait Implementations§
Source§impl Interceptor for FlexFec03SendInterceptor
impl Interceptor for FlexFec03SendInterceptor
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.Source§impl Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for FlexFec03SendInterceptor
impl Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for FlexFec03SendInterceptor
Source§fn handle_timeout(&mut self, now: Instant) -> Result<(), Self::Error>
fn handle_timeout(&mut self, now: Instant) -> Result<(), Self::Error>
A block whose repair window ends is protected then, with what it has: its repair packets must not leave later than the window after its first packet.