43 lines
792 B
C++
43 lines
792 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "media/CameraCapture.h"
|
|
#include "cplaywidget.h"
|
|
#include "media/VideoCoder.h"
|
|
#include "media/RtmpPusher.h"
|
|
#include "components/toast.h"
|
|
#include "utils.h"
|
|
#include "media/RtmpPusher.h"
|
|
#include "Qss/Qss.h"
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QssMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
private slots:
|
|
void on_pushButton_clicked();
|
|
|
|
void on_pushButton_2_clicked();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
Camera *mCamera;
|
|
QStringList mCameraList;
|
|
bool m_bCameraOpen;
|
|
CPlayWidget *mPlayerWidget;
|
|
VideoCoder *mVideoCoder;
|
|
bool m_bRtmpPushing;
|
|
H264RtmpPuser *mPusher;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|