Skip to content
Snippets Groups Projects
Commit d55fcd8d authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud
Browse files

conference: add local mute for host + cleanup

Handle video and audio local mute for the conference host

Change-Id: I524715caf9831c592a2316c2fc9a6d11f47dba9d
parent f8ea5012
Branches
No related tags found
No related merge requests found
......@@ -88,6 +88,7 @@ using random_device = dht::crypto::random_device;
#include "audio/tonecontrol.h"
#include "data_transfer.h"
#include "dring/media_const.h"
#include <opendht/thread_pool.h>
......@@ -1157,6 +1158,9 @@ Manager::muteMediaCall(const std::string& callId, const std::string& mediaType,
if (auto call = getCallFromCallID(callId)) {
call->muteMedia(mediaType, is_muted);
return true;
} else if (auto conf = getConferenceFromID(callId)) {
conf->muteParticipant("", is_muted, mediaType); // Mute host
return true;
} else {
JAMI_DBG("CallID %s doesn't exist in call muting", callId.c_str());
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment