mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +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) {
|
void GroupCall::toggleVideo(bool active) {
|
||||||
if (!active) {
|
if (!active) {
|
||||||
if (!isScreenSharing()) {
|
_videoOutgoing->setState(Webrtc::VideoState::Inactive);
|
||||||
_videoOutgoing->setState(Webrtc::VideoState::Inactive);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto changing = isScreenSharing();
|
const auto changing = isScreenSharing();
|
||||||
|
@ -1581,7 +1579,7 @@ void GroupCall::ensureControllerCreated() {
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
.enableVideo = true,
|
.videoContentType = tgcalls::VideoContentType::Screencast,
|
||||||
};
|
};
|
||||||
if (Logs::DebugEnabled()) {
|
if (Logs::DebugEnabled()) {
|
||||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
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