Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Изменение логики muted
  • Loading branch information
Razzwan committed Oct 11, 2025
commit 45845cc0e3bae77edf68e5b2fd5e329f8c1db387
6 changes: 3 additions & 3 deletions webrtc/src/track/track_local/track_local_static_rtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,14 @@ impl TrackLocalStaticRTP {
});
}

pub async fn set_muted_for(&self, muted: bool, bindings_ssrc: Vec<u32>) {
pub async fn set_muted_for(&self, bindings_ssrc: Vec<(u32, bool)>) {
let bindings = {
let bindings = self.bindings.lock().await;
bindings.clone()
};
bindings.iter().for_each(|b| {
if bindings_ssrc.contains(&b.ssrc) {
b.set_sender_paused(muted);
if let Some((_, muted)) = bindings_ssrc.iter().find(|(ssrc, _)| *ssrc == b.ssrc) {
b.set_sender_paused(*muted);
}
});
}
Expand Down
Loading