代码拉取完成,页面将自动刷新
#ifndef NETWORKCAMERACHANNEL1_H
#define NETWORKCAMERACHANNEL1_H
#include <QWidget>
#include <QTimer>
#include <QImage>
#include <QDebug>
#include <QThread>
#include <QLabel>
#include <QTimer>
#include <QRegExpValidator>
#include "MyFFmpeg.h"
#include "RTSP_Player.h"
#include "datadictionary.h"
#include "infoshowlabel.h"
#include "fullscreenbutton.h"
#include "viewlist.h"
typedef struct {
QString passWord ;
QString userName;
QString ip ;
QString port ;
QString path ;
QString url ;
} NetWorkCameraInfo;
namespace Ui {
class NetWorkCameraChannel1;
}
class NetWorkCameraChannel1 : public QWidget
{
Q_OBJECT
public:
explicit NetWorkCameraChannel1(NetWorkCameraInfo netWorkCameraInfo,QWidget *parent = nullptr);
// static NetWorkCameraChannel1* GetInstance();
~NetWorkCameraChannel1();
void Show(QWidget *parent,int ax = 0, int ay = 0);
void ShowCentre();
void HideCentre();
ViewList* getViewList();
signals:
void swapScreensButtonClicked();
void fullScreenButtonClicked();
void exitFullScreenClicked();
protected:
virtual void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event) override;
private slots:
void NetCameraShow(QImage Img);
void PlayerStatus(int Sta);
void PicLabelRepaint();
void SystemDataChangeProcess(SystemDataIndex_t);
void MisDataChange(MisDataIndex_t Index);
void DisconnectDisplay();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_m_pBtnExitFullScreen_clicked();
private:
// explicit NetWorkCameraChannel1(QWidget *parent = nullptr);
void BuildUrl();
QString UrlGetIp(QString Str);
private:
Ui::NetWorkCameraChannel1 *ui;
DataDictionary *m_DataDictionary;
NetWorkCameraInfo m_netWorkCameraInfo;
QTimer *m_Player;
MyFFmpeg *m_MyFFmpeg;
QString m_Url;
RTSP_Player *m_RtspPlayer;
QThread *m_playThread;
QTimer *m_RepaintTimer;
QTimer *m_DisconnectTimer;
InfoShowLabel *m_InfoShowLabel;
FullScreenButton *m_FullScreenButton;
int32_t m_DisplayInterval;
bool m_Shoting;
ViewList* m_viewList;
};
#endif // NETWORKCAMERACHANNEL1_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。