pub struct UlpfecReceiveInterceptor { /* private fields */ }Expand description
Recovers media lost from streams protected by ULPFEC (RFC 5109).
§RED carriage
A RED packet of a protected stream is taken apart (RFC 2198): its primary block goes on as the RTP packet it stands for, with the primary’s payload type, which is the virtual packet the FEC protects (RFC 5109 14.2); its FEC blocks go to the decoder. A packet of the stream that is not RED passes as it is and is still given to the decoder, since a receiver that accepts RED accepts its encodings bare as well (RFC 2198 5). A bare packet of the FEC payload type on the media SSRC is dropped: FEC is not sent by itself in a RED stream (RFC 5109 14.2). So is a RED packet whose block headers do not fit its length.
Recovered packets rejoin the read leg marked Attribute::RecoveredByFec.
§Where it belongs
Slot::FecDecoder: wire-ward of the NACK generator, so a packet
that FEC rebuilds is not also asked for.
Implementations§
Source§impl UlpfecReceiveInterceptor
impl UlpfecReceiveInterceptor
Sourcepub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
pub fn protected_streams(&self) -> impl Iterator<Item = u32> + '_
The media SSRCs currently protected.
Sourcepub fn stats(&self, ssrc: u32) -> Option<UlpfecDecoderStats>
pub fn stats(&self, ssrc: u32) -> Option<UlpfecDecoderStats>
The decoder’s counters for the media stream ssrc.
Trait Implementations§
Source§impl Interceptor for UlpfecReceiveInterceptor
impl Interceptor for UlpfecReceiveInterceptor
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 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 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.