2022-07-09 16:07:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QDialog>
|
2022-11-22 10:35:47 -05:00
|
|
|
#include <QGroupBox>
|
2022-07-09 16:07:14 -04:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class StreamDialog : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit StreamDialog();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QComboBox *m_targetComboBox;
|
2022-11-22 10:35:47 -05:00
|
|
|
QComboBox *m_resolutionComboBox;
|
|
|
|
QComboBox *m_framerateComboBox;
|
|
|
|
QGroupBox *m_videoGroupBox;
|
|
|
|
QGroupBox *m_audioGroupBox;
|
2022-07-09 16:07:14 -04:00
|
|
|
|
|
|
|
Q_SIGNALS:
|
2023-02-12 11:20:33 -05:00
|
|
|
void requestedStreamStart(bool video, bool audio, int width, int height,
|
|
|
|
int frameRate, QString target);
|
2022-07-09 16:07:14 -04:00
|
|
|
|
2022-07-14 05:57:44 -04:00
|
|
|
public Q_SLOTS:
|
|
|
|
void updateTargets();
|
|
|
|
|
2022-07-09 16:07:14 -04:00
|
|
|
private Q_SLOTS:
|
|
|
|
void startStream();
|
|
|
|
};
|