2020-06-04 15:28:45 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "media/CameraCapture.h"
|
|
|
|
#include "cplaywidget.h"
|
2020-06-05 02:18:37 +00:00
|
|
|
#include "media/VideoCoder.h"
|
2020-06-05 15:59:47 +00:00
|
|
|
#include "media/RtmpPusher.h"
|
2020-06-05 02:18:37 +00:00
|
|
|
#include "components/toast.h"
|
2020-06-05 15:59:47 +00:00
|
|
|
#include "utils.h"
|
2020-12-04 13:27:37 +00:00
|
|
|
#include "Qss.h"
|
2020-06-21 17:13:44 +00:00
|
|
|
#include "media/audiocaptureff.h"
|
2020-06-19 09:30:29 +00:00
|
|
|
#include <vector>
|
|
|
|
using namespace std;
|
2020-06-04 15:28:45 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
2020-06-06 07:39:55 +00:00
|
|
|
class MainWindow : public QssMainWindow
|
2020-06-04 15:28:45 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_pushButton_clicked();
|
2020-06-05 02:18:37 +00:00
|
|
|
void on_pushButton_2_clicked();
|
2020-06-19 09:30:29 +00:00
|
|
|
void on_pushButton_3_clicked();
|
2020-12-06 16:01:38 +00:00
|
|
|
void DetectDpi();
|
2020-06-04 15:28:45 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
Camera *mCamera;
|
|
|
|
QStringList mCameraList;
|
|
|
|
bool m_bCameraOpen;
|
|
|
|
CPlayWidget *mPlayerWidget;
|
2020-06-05 02:18:37 +00:00
|
|
|
VideoCoder *mVideoCoder;
|
|
|
|
bool m_bRtmpPushing;
|
2020-06-05 15:59:47 +00:00
|
|
|
H264RtmpPuser *mPusher;
|
2020-06-19 17:10:03 +00:00
|
|
|
CaptureAudioFfmpeg *mAudioCapture;
|
|
|
|
vector<CaptureAudioFfmpeg::MICInfo> mMic;
|
2020-12-06 16:01:38 +00:00
|
|
|
QTimer *mTimer;
|
|
|
|
|
2020-06-04 15:28:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|