pull/175/head^2
Apex Liu 2019-09-10 02:39:08 +08:00
parent 9bc0fcb225
commit 6f95664ca1
2 changed files with 14 additions and 7 deletions

View File

@ -1,6 +1,9 @@
#include "mainwindow.h"
#include <QApplication>
// 编译出来的可执行程序复制到单独目录,然后执行 windeployqt 应用程序文件名
// 即可自动将依赖的动态库等复制到此目录中。有些文件是多余的,可以酌情删除。
int main(int argc, char *argv[])
{
//#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))

View File

@ -1,13 +1,12 @@
#include <QDateTime>
#include <QCoreApplication>
#include <QDateTime>
#include <QDebug>
#include <QDir>
#include <QFile>
#include "thr_play.h"
#include "record_format.h"
static QString REPLAY_PATH = "E:\\work\\tp4a\\teleport\\server\\share\\replay\\rdp\\000000197\\";
ThreadPlay::ThreadPlay()
{
m_need_stop = false;
@ -23,11 +22,16 @@ void ThreadPlay::run() {
sleep(1);
QString currentPath = QCoreApplication::applicationDirPath() + "/testdata/";
qint64 read_len = 0;
uint32_t total_pkg = 0;
uint32_t total_ms = 0;
QString hdr_filename(REPLAY_PATH);
// 加载录像基本信息数据
QString hdr_filename(currentPath);
hdr_filename += "tp-rdp.tpr";
QFile f_hdr(hdr_filename);
@ -54,9 +58,9 @@ void ThreadPlay::run() {
emit signal_update_data(dat);
}
// 加载录像文件数据
QString dat_filename(REPLAY_PATH);
QString dat_filename(currentPath);
dat_filename += "tp-rdp.dat";
QFile f_dat(dat_filename);