mirror of https://github.com/tp4a/teleport
.temp.
parent
9bc0fcb225
commit
6f95664ca1
|
@ -1,6 +1,9 @@
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
|
// 编译出来的可执行程序复制到单独目录,然后执行 windeployqt 应用程序文件名
|
||||||
|
// 即可自动将依赖的动态库等复制到此目录中。有些文件是多余的,可以酌情删除。
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
//#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
//#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
#include <QDateTime>
|
#include <QCoreApplication>
|
||||||
|
#include <QDateTime>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QDir>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#include "thr_play.h"
|
#include "thr_play.h"
|
||||||
#include "record_format.h"
|
#include "record_format.h"
|
||||||
|
|
||||||
static QString REPLAY_PATH = "E:\\work\\tp4a\\teleport\\server\\share\\replay\\rdp\\000000197\\";
|
|
||||||
|
|
||||||
|
|
||||||
ThreadPlay::ThreadPlay()
|
ThreadPlay::ThreadPlay()
|
||||||
{
|
{
|
||||||
m_need_stop = false;
|
m_need_stop = false;
|
||||||
|
@ -23,11 +22,16 @@ void ThreadPlay::run() {
|
||||||
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
|
|
||||||
|
QString currentPath = QCoreApplication::applicationDirPath() + "/testdata/";
|
||||||
|
|
||||||
qint64 read_len = 0;
|
qint64 read_len = 0;
|
||||||
uint32_t total_pkg = 0;
|
uint32_t total_pkg = 0;
|
||||||
uint32_t total_ms = 0;
|
uint32_t total_ms = 0;
|
||||||
|
|
||||||
QString hdr_filename(REPLAY_PATH);
|
// 加载录像基本信息数据
|
||||||
|
|
||||||
|
QString hdr_filename(currentPath);
|
||||||
hdr_filename += "tp-rdp.tpr";
|
hdr_filename += "tp-rdp.tpr";
|
||||||
|
|
||||||
QFile f_hdr(hdr_filename);
|
QFile f_hdr(hdr_filename);
|
||||||
|
@ -54,9 +58,9 @@ void ThreadPlay::run() {
|
||||||
emit signal_update_data(dat);
|
emit signal_update_data(dat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 加载录像文件数据
|
||||||
|
|
||||||
|
QString dat_filename(currentPath);
|
||||||
QString dat_filename(REPLAY_PATH);
|
|
||||||
dat_filename += "tp-rdp.dat";
|
dat_filename += "tp-rdp.dat";
|
||||||
|
|
||||||
QFile f_dat(dat_filename);
|
QFile f_dat(dat_filename);
|
||||||
|
|
Loading…
Reference in New Issue