Improve wide video layout.

This commit is contained in:
John Preston 2021-04-23 20:54:51 +04:00
parent b7f6fc9a2d
commit 380a0d1f86
4 changed files with 6 additions and 5 deletions

View File

@ -1022,5 +1022,5 @@ desktopCaptureSourceSkip: 12px;
groupCallNarrowSkip: 9px;
groupCallNarrowRowSkip: 8px;
groupCallNarrowSize: size(90px, 90px);
groupCallWideModeWidthMin: 800px;
groupCallWideModeSize: size(960px, 520px);
groupCallWideModeWidthMin: 520px;
groupCallWideModeSize: size(720px, 480px);

View File

@ -475,7 +475,8 @@ void GroupCall::subscribeToReal(not_null<Data::GroupCall*> real) {
_videoStreamLarge = bestWithVideoSsrc;
}
} else if ((nowSpeaking || nowSounding)
&& (data.now->ssrc != videoLargeSsrc)) {
&& (data.now->ssrc != videoLargeSsrc)
&& _videoStreamSsrcs.contains(data.now->ssrc)) {
const auto i = ranges::find(
participants,
videoLargeSsrc,

View File

@ -1561,7 +1561,7 @@ void Panel::updateMembersGeometry() {
_pinnedVideo->setGeometry(
pinnedLeft,
membersTop,
widget()->width() - pinnedLeft,
widget()->width() - pinnedLeft - st::groupCallNarrowSkip,
availableHeight);
} else {
const auto membersWidthAvailable = widget()->width()

@ -1 +1 @@
Subproject commit 0f608993f7a5c9af093f6a7bf21c3b4cd0735ecc
Subproject commit 4a944bc29ec308556471a1533874a68dd95a9ba3