New setting "streaming_client.initial_volume"

This commit is contained in:
Nicolas Iselin 2022-06-26 08:53:40 +01:00 committed by badaix
parent fd4d82126f
commit 30fd1520cc
5 changed files with 27 additions and 0 deletions

View file

@ -767,6 +767,10 @@ void Server::onMessageReceived(StreamSession* streamSession, const msg::BaseMess
}
ClientInfoPtr client = group->getClient(streamSession->clientId);
if (newGroup)
{
client->config.volume.percent = settings_.streamingclient.initialVolume;
}
LOG(DEBUG, LOG_TAG) << "Sending ServerSettings to " << streamSession->clientId << "\n";
auto serverSettings = make_shared<msg::ServerSettings>();