mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-02 14:29:52 -05:00
Add option to check the current stream key
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
This commit is contained in:
@@ -28,16 +28,17 @@ public:
|
||||
STARTING,
|
||||
STOPPING,
|
||||
KEYFRAME_INTERVAL,
|
||||
STREAM_KEY,
|
||||
SERVICE,
|
||||
};
|
||||
Condition _condition = Condition::STOP;
|
||||
NumberVariable<int> _keyFrameInterval = 0;
|
||||
StringVariable _streamKey;
|
||||
StringVariable _serviceName = "";
|
||||
RegexConfig _regex;
|
||||
|
||||
private:
|
||||
void SetupTempVars();
|
||||
int GetKeyFrameInterval() const;
|
||||
|
||||
std::chrono::high_resolution_clock::time_point _lastStreamStartingTime{};
|
||||
std::chrono::high_resolution_clock::time_point _lastStreamStoppingTime{};
|
||||
@@ -63,16 +64,18 @@ public:
|
||||
}
|
||||
|
||||
private slots:
|
||||
void StateChanged(int value);
|
||||
void ConditionChanged(int value);
|
||||
void KeyFrameIntervalChanged(const NumberVariable<int> &);
|
||||
void StreamKeyChanged();
|
||||
void ServiceNameChanged();
|
||||
void RegexChanged(const RegexConfig &);
|
||||
|
||||
private:
|
||||
void SetWidgetVisibility();
|
||||
|
||||
QComboBox *_streamState;
|
||||
QComboBox *_conditions;
|
||||
VariableSpinBox *_keyFrameInterval;
|
||||
VariableLineEdit *_streamKey;
|
||||
VariableLineEdit *_serviceName;
|
||||
QLabel *_currentService;
|
||||
RegexConfigWidget *_regex;
|
||||
|
||||
Reference in New Issue
Block a user