unmute method
Unmute
Implementation
void unmute([bool audio = true, bool video = true]) {
logger.debug('unmute()');
bool audioUnMuted = false, videoUnMuted = false;
if (_audioMuted == true && audio) {
audioUnMuted = true;
_audioMuted = false;
if (_localHold == false) {
_toggleMuteAudio(false);
}
}
if (_videoMuted == true && video) {
videoUnMuted = true;
_videoMuted = false;
if (_localHold == false) {
_toggleMuteVideo(false);
}
}
if (audioUnMuted == true || videoUnMuted == true) {
_onunmute(audioUnMuted, videoUnMuted);
}
}