代码拉取完成,页面将自动刷新
同步操作将从 广州灵派科技有限公司/Encoder 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef CHANNEL_H
#define CHANNEL_H
#include <QObject>
#include "Link.h"
#include <QMap>
#include <QTimer>
struct CdType
{
QString type = "";
int layListIndex = -1;
int startTime = -1;
int durTime = -1;
QString toString()
{
return "type:"+type+","
+",layListIndex:"+QString::number(layListIndex)
+",startTime:"+QString::number(startTime)
+",durTime:"+QString::number(durTime);
}
};
class Channel : public QObject
{
Q_OBJECT
public:
explicit Channel(QObject *parent = 0);
virtual void init(QVariantMap cfg=QVariantMap());
virtual void updateConfig(QVariantMap cfg);
void doSnap();
QString type;
bool enableAVS;
bool isSrcLine;
int id;
static LinkObject *lineIn;
static LinkObject *alsa;
QVariantMap data;
LinkObject *audio;
LinkObject *video;
LinkObject *volume;
LinkObject *encA;
LinkObject *encV;
LinkObject *gain;
LinkObject *overlay;
LinkObject *snap;
bool enable;
static LinkObject *httpServer;
static LinkObject *rtspServer;
LinkObject *udp;
LinkObject *udp_sub;
LinkObject *encV2;
QMap<QString,LinkObject*> muxMap;
QMap<QString,LinkObject*> muxMap_sub;
QString chnName;
QTimer *cd_timer = nullptr,*cd_pauseTimer = nullptr;
int cd_time = 0;
QString cd_ctx = "hh:mm:ss";
QVariantList layList;
QList<CdType> modList;
QMap<QString,LinkObject*> formatMap;
bool isRecord = false;
QString startRecordTime = nullptr;
int pauseTime = 0;
int timerStrToInt(QString time);
void startRecord(const QString &fileName,const QString &format = "mp4",QVariantMap fragment = QVariantMap());
void stopRecord(const QString &format = "mp4");
void recordPuase(const bool &pause = false);
signals:
public slots:
void cdTimeout();
void cdPauseTimeout();
};
#endif // CHANNEL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。