pub struct PauseResumeBuilder { /* private fields */ }Expand description
Builder for PauseResumeInterceptor.
Implementations§
Source§impl PauseResumeBuilder
impl PauseResumeBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
The defaults: a 500 ms round trip, a 5 s report interval, T_dither_max 0 (RFC 4585
section 3.4 for a point-to-point session).
Sourcepub fn with_round_trip_time(self, round_trip_time: Duration) -> Self
pub fn with_round_trip_time(self, round_trip_time: Duration) -> Self
The round trip to the peer assumed until one is measured, used for the hold-off period
and the retransmission of requests (2 * RTT + T_dither_max). Once the RTCP session
reports round trips (RtcpSessionEvent::RoundTripTime), the longest one measured is
used instead (RFC 7728 section 6.2: “RTT is the longest round trip known to the RTP
stream sender”).
Sourcepub fn with_report_interval(self, report_interval: Duration) -> Self
pub fn with_report_interval(self, report_interval: Duration) -> Self
The RTCP report interval: PAUSED is repeated once per interval, twice (section 8.2), a participant silent for five intervals has timed out (section 6.3.2), and a refused request is not repeated for two intervals (PAUSE) or one (RESUME).
Sourcepub fn with_dither_max(self, dither_max: Duration) -> Self
pub fn with_dither_max(self, dither_max: Duration) -> Self
T_dither_max (RFC 4585 section 3.4): 0 in a point-to-point session.
Sourcepub fn with_repeats_in_regular_reports(
self,
repeat_in_regular_reports: bool,
) -> Self
pub fn with_repeats_in_regular_reports( self, repeat_in_regular_reports: bool, ) -> Self
How PAUSED is repeated (RFC 7728 sections 6.3, 6.4, 8.2). true, the default: the
first PAUSED is written with a RepeatInRegularReports, so the RTCP session
(Slot::RtcpSession) carries it again in the next Regular
compound packets, “the next two regular RTCP reports” (section 8.2), and drops what is
still owed when the stream leaves the state. false: the interceptor writes each
repetition itself, one Self::with_report_interval apart, for a chain without the
RTCP session.
Sourcepub fn build(self) -> (PauseResumeInterceptor, PauseResumeHandle)
pub fn build(self) -> (PauseResumeInterceptor, PauseResumeHandle)
The interceptor and its handle.