Skip to content

Add microphone mute configuration for incoming and outgoing calls#141

Open
NINE78 wants to merge 3 commits intoTECH7Fox:mainfrom
NINE78:Mute-microphone-on-calls
Open

Add microphone mute configuration for incoming and outgoing calls#141
NINE78 wants to merge 3 commits intoTECH7Fox:mainfrom
NINE78:Mute-microphone-on-calls

Conversation

@NINE78
Copy link
Contributor

@NINE78 NINE78 commented Jul 7, 2025

No description provided.

Comment on lines +445 to +457
switch (this.RTCSession?.direction) {
case "incoming":
console.info("Incoming call");
if (this.config.microphone_mute_on_incoming) {
this.RTCSession?.mute({ audio: true });
}
case "outgoing":
console.info("Outgoing call");
if (this.config.microphone_mute_on_outgoing) {
this.RTCSession?.mute({ audio: true });
}
break;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed when you also have this below on line 480 and 504?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants