Use 'Screencast' video content type.

This commit is contained in:
John Preston 2021-04-27 17:34:05 +04:00
parent b7fc3f67d7
commit 7b3b5a1463
2 changed files with 3 additions and 5 deletions

View file

@ -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");

@ -1 +1 @@
Subproject commit 4a944bc29ec308556471a1533874a68dd95a9ba3
Subproject commit 909612ca66cef26deffa5dc2dcd964ddde1b4c11