2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Show last blurred frame or userpic for paused videos.

This commit is contained in:
John Preston
2021-06-07 19:04:50 +04:00
parent 303ad02c61
commit 9a21d55de7
16 changed files with 394 additions and 112 deletions

View File

@@ -48,6 +48,14 @@ const std::string &GroupCallParticipant::screenEndpoint() const {
return GetScreenEndpoint(videoParams);
}
bool GroupCallParticipant::cameraPaused() const {
return IsCameraPaused(videoParams);
}
bool GroupCallParticipant::screenPaused() const {
return IsScreenPaused(videoParams);
}
GroupCall::GroupCall(
not_null<PeerData*> peer,
uint64 id,
@@ -231,8 +239,8 @@ const GroupCallParticipant *GroupCall::participantByEndpoint(
return nullptr;
}
for (const auto &participant : _participants) {
if (participant.cameraEndpoint() == endpoint
|| participant.screenEndpoint() == endpoint) {
if (GetCameraEndpoint(participant.videoParams) == endpoint
|| GetScreenEndpoint(participant.videoParams) == endpoint) {
return &participant;
}
}