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

Parse and serialize video parameters.

This commit is contained in:
John Preston
2021-04-15 17:55:32 +04:00
parent a41b7b62ac
commit a6f379a17a
8 changed files with 251 additions and 9 deletions

View File

@@ -592,6 +592,14 @@ void Instance::requestPermissionOrFail(Platform::PermissionType type, Fn<void()>
}
}
std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::callGetVideoCapture() {
return getVideoCapture();
}
std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::groupCallGetVideoCapture() {
return getVideoCapture();
}
std::shared_ptr<tgcalls::VideoCaptureInterface> Instance::getVideoCapture() {
if (auto result = _videoCapture.lock()) {
return result;