pub struct Rfc8888Interceptor { /* private fields */ }Expand description
Reports when each packet of each bound remote stream arrived (RFC 8888).
§Differences from upstream
pion/interceptor injects a SenderTicker and a SenderNow so its tests can control time.
Sans-I/O needs neither: every instant arrives as a parameter, so the tests drive the clock by
passing one. Both are dropped.
Upstream’s Recorder also never sets its sender SSRC, so every report it builds claims to come
from SSRC 0. Here it is configured.
Implementations§
Source§impl Rfc8888Interceptor
impl Rfc8888Interceptor
Sourcepub fn sender_ssrc(&self) -> u32
pub fn sender_ssrc(&self) -> u32
The SSRC the next report is sent from (RFC 8888 section 3.1: the SSRC of the RTCP packet sender).
Trait Implementations§
Source§impl Interceptor for Rfc8888Interceptor
impl Interceptor for Rfc8888Interceptor
Source§fn bind_remote_stream(&mut self, info: &StreamInfo)
fn bind_remote_stream(&mut self, info: &StreamInfo)
Only a stream that negotiated ack ccfb is reported on: RTCP feedback is sent for the
payload types whose a=rtcp-fb line names it and for no other (RFC 4585 section 4.2,
RFC 8888 section 6). A peer that declined ack ccfb gets no report.
The stream’s retransmission and FEC SSRCs are reported with it: the feedback covers every packet of the session’s negotiated payload types, repair included (section 6).
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.