pub struct UlpfecReceiveBuilder { /* private fields */ }Expand description
Builder for UlpfecReceiveInterceptor.
§Example
use rtci_interceptor::{Registry, Slot, UlpfecReceiveBuilder};
// `a=rtpmap:116 red/90000`, `a=rtpmap:117 ulpfec/90000`
let chain = Registry::new()
.with(Slot::FecDecoder, UlpfecReceiveBuilder::red(116, 117).build())
.build();Implementations§
Source§impl UlpfecReceiveBuilder
impl UlpfecReceiveBuilder
Sourcepub fn red(red_payload_type: u8, fec_payload_type: u8) -> Self
pub fn red(red_payload_type: u8, fec_payload_type: u8) -> Self
FEC as a redundant encoding (RFC 5109 14.2): the protected streams arrive as RED packets
of red_payload_type, with FEC blocks of fec_payload_type.
Sourcepub fn stream() -> Self
pub fn stream() -> Self
FEC as a stream of its own (RFC 5109 14.1), on the repair SSRC of
StreamInfo::ssrc_fec. A stream without a repair SSRC and payload type is not bound.
Sourcepub fn with_one_level_only(self, one_level_only: bool) -> Self
pub fn with_one_level_only(self, one_level_only: bool) -> Self
Refuse FEC with more than one protection level: this endpoint signalled onelevelonly=1
(RFC 5109 13, 14.3: for a receiver the parameter says what it accepts).
Sourcepub fn with_repair_forwarding(self, forward_repair: bool) -> Self
pub fn with_repair_forwarding(self, forward_repair: bool) -> Self
Whether a RED packet that held only FEC is passed on, emptied and marked
UlpfecRepair, so the interceptors behind this one see its sequence number (the
default), or swallowed here.
Sourcepub fn with_stream_filter(
self,
filter: impl Fn(&StreamInfo) -> bool + Send + Sync + 'static,
) -> Self
pub fn with_stream_filter( self, filter: impl Fn(&StreamInfo) -> bool + Send + Sync + 'static, ) -> Self
Which bound remote streams are protected. The default is every video/ stream.
Sourcepub fn build(self) -> UlpfecReceiveInterceptor
pub fn build(self) -> UlpfecReceiveInterceptor
Build the interceptor.