We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16acb58 commit 45845ccCopy full SHA for 45845cc
webrtc/src/track/track_local/track_local_static_rtp.rs
@@ -386,14 +386,14 @@ impl TrackLocalStaticRTP {
386
});
387
}
388
389
- 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)>) {
390
let bindings = {
391
let bindings = self.bindings.lock().await;
392
bindings.clone()
393
};
394
bindings.iter().for_each(|b| {
395
- if bindings_ssrc.contains(&b.ssrc) {
396
- b.set_sender_paused(muted);
+ if let Some((_, muted)) = bindings_ssrc.iter().find(|(ssrc, _)| *ssrc == b.ssrc) {
+ b.set_sender_paused(*muted);
397
398
399
0 commit comments