multimedia/client/qt_gl_/yuvgl/mainwindow.h

42 lines
769 B
C
Raw Normal View History

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"
#include "media/RtmpPusher.h"
2020-06-04 15:28:45 +00:00
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
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-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-04 15:28:45 +00:00
};
#endif // MAINWINDOW_H