Avoid mosaic layout when screensharing is enabled.

This commit is contained in:
Julien Wadel 2025-10-14 15:37:35 +02:00
parent 58a1f75380
commit 98ab1b2aca
2 changed files with 7 additions and 0 deletions

View file

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 5.3.2 - Undefined
### Fixed
- Avoid mosaic layout when screensharing is enabled.
## 5.3.1 - 2025-10-07
### Fixed

View file

@ -1098,6 +1098,8 @@ void CallModel::updateConferenceVideoLayout(){
auto newLayout = LinphoneEnums::fromLinphone(callParams->getConferenceVideoLayout());
if( !callParams->videoEnabled())
newLayout = LinphoneEnums::ConferenceLayoutAudioOnly;
else if (getConferenceModel() && getConferenceModel()->isScreenSharingEnabled())
newLayout = LinphoneEnums::ConferenceLayoutActiveSpeaker;
if( mConferenceVideoLayout != newLayout && !getPausedByUser()){// Only update if not in pause.
if(mCall->getConference()){
if( callParams->getConferenceVideoLayout() == linphone::Conference::Layout::Grid)