pub struct IntervalPliBuilder<P> { /* private fields */ }Expand description
Builder for IntervalPliInterceptor.
§Example
use rtc_interceptor::{IntervalPliBuilder, Registry};
use std::time::Duration;
let chain = Registry::new()
.with(IntervalPliBuilder::new().with_interval(Duration::from_secs(1)).build())
.build();Implementations§
Source§impl<P> IntervalPliBuilder<P>
impl<P> IntervalPliBuilder<P>
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
How often each bound stream is asked for a keyframe.
A zero interval disables periodic requests, leaving only
force_pli — matching upstream, which creates no
ticker when its interval is not positive.
Sourcepub fn build(self) -> impl FnOnce(P) -> IntervalPliInterceptor<P>
pub fn build(self) -> impl FnOnce(P) -> IntervalPliInterceptor<P>
Build the interceptor factory function.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for IntervalPliBuilder<P>
impl<P> RefUnwindSafe for IntervalPliBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for IntervalPliBuilder<P>where
P: Send,
impl<P> Sync for IntervalPliBuilder<P>where
P: Sync,
impl<P> Unpin for IntervalPliBuilder<P>where
P: Unpin,
impl<P> UnsafeUnpin for IntervalPliBuilder<P>
impl<P> UnwindSafe for IntervalPliBuilder<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more