Screencast with system sound on Windows.

This commit is contained in:
John Preston
2021-07-09 21:26:28 +03:00
parent 881eb4510e
commit 801c8b6220
4 changed files with 10 additions and 2 deletions
@@ -2284,6 +2284,7 @@ bool GroupCall::tryCreateScreencast() {
setScreenInstanceConnected(networkState);
});
},
.createAudioDeviceModule = Webrtc::LoopbackAudioDeviceModuleCreator(),
.videoCapture = _screenCapture,
.videoContentType = tgcalls::VideoContentType::Screencast,
};
@@ -2291,6 +2292,11 @@ bool GroupCall::tryCreateScreencast() {
LOG(("Call Info: Creating group screen instance"));
_screenInstance = std::make_unique<tgcalls::GroupInstanceCustomImpl>(
std::move(descriptor));
#ifdef Q_OS_WIN
_screenInstance->setIsMuted(false);
#endif // Q_OS_WIN
return true;
}
+2
View File
@@ -35,6 +35,8 @@ PRIVATE
CryptoHelper.h
EncryptedConnection.cpp
EncryptedConnection.h
FakeAudioDeviceModule.cpp
FakeAudioDeviceModule.h
InstanceImpl.cpp
InstanceImpl.h
LogSinkImpl.cpp