Add option to synchronize preview scene via network tab

This commit is contained in:
WarmUpTill
2021-05-23 09:32:25 +02:00
committed by WarmUpTill
parent e83a9e8d94
commit 66285a0d3d
6 changed files with 79 additions and 23 deletions

View File

@@ -212,6 +212,7 @@ public slots:
void on_clientHostname_textChanged(const QString &text);
void on_clientPort_valueChanged(int value);
void on_restrictSend_stateChanged(int state);
void on_sendPreview_stateChanged(int state);
void on_clientReconnect_clicked();
void updateClientStatus();
@@ -254,6 +255,7 @@ void overwriteTransitionOverride(const sceneSwitchInfo &ssi,
transitionData &td);
void restoreTransitionOverride(obs_source_t *scene, const transitionData &td);
void switchScene(const sceneSwitchInfo &ssi);
void switchPreviewScene(const OBSWeakSource &ws);
/******************************************************************************
* Main SwitcherData

View File

@@ -43,6 +43,7 @@ public:
std::string Address;
uint64_t ClientPort;
bool SendAll;
bool SendPreview;
};
class WSServer : public QObject {
@@ -53,7 +54,7 @@ public:
virtual ~WSServer();
void start(quint16 port, bool lockToIPv4);
void stop();
void sendMessage(sceneSwitchInfo sceneSwitch);
void sendMessage(sceneSwitchInfo sceneSwitch, bool preview = false);
QThreadPool *threadPool() { return &_threadPool; }
private: