mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
audio_sender: mute state must be kept when restarting medias
When settuping the AudioSender, the audio can be started with muteState_ = true. This avoid the case where the peer needs to renegotiate the medias (like changing their camera resolution, stopping a stream, etc) the audio will be restarted forgetting the mute state. Change-Id: Ic33e297809a72f4c7f85c1cdd354f99d953618cc GitLab: #327
This commit is contained in:
@ -93,6 +93,7 @@ AudioSender::setup(SocketPair& socketPair)
|
||||
auto codec = std::static_pointer_cast<AccountAudioCodecInfo>(args_.codec);
|
||||
audioInput_ = jami::getAudioInput(id_);
|
||||
audioInput_->setFormat(codec->audioformat);
|
||||
audioInput_->setMuted(muteState_);
|
||||
audioInput_->attach(this);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user