mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Use 'Screencast' video content type.
This commit is contained in:
parent
b7fc3f67d7
commit
7b3b5a1463
2 changed files with 3 additions and 5 deletions
|
@ -407,9 +407,7 @@ bool GroupCall::isScreenSharing() const {
|
|||
|
||||
void GroupCall::toggleVideo(bool active) {
|
||||
if (!active) {
|
||||
if (!isScreenSharing()) {
|
||||
_videoOutgoing->setState(Webrtc::VideoState::Inactive);
|
||||
}
|
||||
_videoOutgoing->setState(Webrtc::VideoState::Inactive);
|
||||
return;
|
||||
}
|
||||
const auto changing = isScreenSharing();
|
||||
|
@ -1581,7 +1579,7 @@ void GroupCall::ensureControllerCreated() {
|
|||
});
|
||||
return result;
|
||||
},
|
||||
.enableVideo = true,
|
||||
.videoContentType = tgcalls::VideoContentType::Screencast,
|
||||
};
|
||||
if (Logs::DebugEnabled()) {
|
||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
||||
|
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 4a944bc29ec308556471a1533874a68dd95a9ba3
|
||||
Subproject commit 909612ca66cef26deffa5dc2dcd964ddde1b4c11
|
Loading…
Add table
Reference in a new issue