pub struct PauseResumeHandle { /* private fields */ }Expand description
The application’s side of PauseResumeInterceptor: asks a remote stream to pause or
resume, pauses its own streams by local decision, and reads where each stream is. A
request takes effect at the interceptor’s next timeout, which the interceptor asks for at
once.
Implementations§
Source§impl PauseResumeHandle
impl PauseResumeHandle
Sourcepub fn pause(&self, ssrc: u32)
pub fn pause(&self, ssrc: u32)
Asks the sender of the remote stream ssrc to pause it (RFC 7728 section 8.1).
Sourcepub fn resume(&self, ssrc: u32)
pub fn resume(&self, ssrc: u32)
Asks the sender of the remote stream ssrc to resume it (section 8.3).
Sourcepub fn local_pause(&self, ssrc: u32)
pub fn local_pause(&self, ssrc: u32)
Pauses the local stream ssrc by local decision (section 6.4).
Sourcepub fn local_resume(&self, ssrc: u32)
pub fn local_resume(&self, ssrc: u32)
Ends a local pause of the local stream ssrc: it plays (section 6.4, “When leaving the
local paused state, the stream state SHALL become Playing”).
Sourcepub fn state(&self, ssrc: u32) -> Option<PauseState>
pub fn state(&self, ssrc: u32) -> Option<PauseState>
The state of the local stream ssrc, if it negotiated pause.
Sourcepub fn remote_state(&self, ssrc: u32) -> Option<RemotePauseState>
pub fn remote_state(&self, ssrc: u32) -> Option<RemotePauseState>
What is known of the remote stream ssrc, if it negotiated pause.
Sourcepub fn remote_pause_id(&self, ssrc: u32) -> Option<u16>
pub fn remote_pause_id(&self, ssrc: u32) -> Option<u16>
The PauseID the sender of the remote stream ssrc uses now, as far as known.