pub struct FlexFecReceiveBuilder { /* private fields */ }Expand description
Builder for FlexFecReceiveInterceptor.
§Example
use rtci_interceptor::{FlexFecReceiveBuilder, Registry, Slot};
let chain = Registry::new()
.with(Slot::FecDecoder, FlexFecReceiveBuilder::new().build())
.build();Implementations§
Source§impl FlexFecReceiveBuilder
impl FlexFecReceiveBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
A builder supporting repair windows up to FLEXFEC_MAX_REPAIR_WINDOW.
Sourcepub fn with_max_repair_window(self, max_repair_window: Duration) -> Self
pub fn with_max_repair_window(self, max_repair_window: Duration) -> Self
The longest repair window this receiver buffers for.
A stream whose negotiated repair-window is longer is not protected: the receiver
“must support any valid FLEX FEC configuration within the repair window” it agreed to
(RFC 8627 section 5.2.1), and it cannot for a window it does not buffer. (Refusing the
payload type in the answer is the application’s part: see the media engine.)
Sourcepub fn with_in_band_ssrc_mapping(self, payload_type: u8) -> Self
pub fn with_in_band_ssrc_mapping(self, payload_type: u8) -> Self
In-band SSRC mapping (RFC 8627 section 7.1.1): there is no a=ssrc-group:FEC-FR, a
packet with payload_type on an SSRC that is not a bound media stream is a repair
packet, and its CSRC list says which streams it protects. Every bound remote stream is
then a source stream.
Sourcepub fn build(self) -> FlexFecReceiveInterceptor
pub fn build(self) -> FlexFecReceiveInterceptor
Build the interceptor.