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
+5 -2
View File
@@ -69,8 +69,7 @@ public:
bool activateCurrentCall(const QString &joinHash = QString());
bool minimizeCurrentActiveCall();
bool closeCurrentActiveCall();
auto getVideoCapture()
-> std::shared_ptr<tgcalls::VideoCaptureInterface> override;
std::shared_ptr<tgcalls::VideoCaptureInterface> getVideoCapture();
void requestPermissionsOrFail(Fn<void()> onSuccess, bool video = true);
void setCurrentAudioDevice(bool input, const QString &deviceId);
@@ -103,6 +102,8 @@ private:
requestPermissionsOrFail(std::move(onSuccess), video);
}
void callPlaySound(CallSound sound) override;
auto callGetVideoCapture()
->std::shared_ptr<tgcalls::VideoCaptureInterface> override;
void groupCallFinished(not_null<GroupCall*> call) override;
void groupCallFailed(not_null<GroupCall*> call) override;
@@ -110,6 +111,8 @@ private:
requestPermissionsOrFail(std::move(onSuccess), false);
}
void groupCallPlaySound(GroupCallSound sound) override;
auto groupCallGetVideoCapture()
->std::shared_ptr<tgcalls::VideoCaptureInterface> override;
void createCall(not_null<UserData*> user, Call::Type type, bool video);
void destroyCall(not_null<Call*> call);