mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix:macos QAdbProcess收不到finished信号
This commit is contained in:
parent
04b5dd017d
commit
cf2ea74677
3 changed files with 11 additions and 7 deletions
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 21 KiB |
|
@ -1,5 +1,6 @@
|
|||
#include <QDesktopWidget>
|
||||
#include <QMouseEvent>
|
||||
#include <QTimer>
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
@ -79,15 +80,18 @@ VideoForm::VideoForm(const QString& serial, QWidget *parent) :
|
|||
m_frames.unLock();
|
||||
},Qt::QueuedConnection);
|
||||
|
||||
// support 480p 720p 1080p
|
||||
//m_server->start("P7C0218510000537", 27183, 0, 8000000, "");
|
||||
//m_server->start("P7C0218510000537", 27183, 1080, 8000000, "");
|
||||
// fix: macos cant recv finished signel, timer is ok
|
||||
QTimer::singleShot(0, this, [this](){
|
||||
// support 480p 720p 1080p
|
||||
//m_server->start("P7C0218510000537", 27183, 0, 8000000, "");
|
||||
//m_server->start("P7C0218510000537", 27183, 1080, 8000000, "");
|
||||
|
||||
// only one devices, serial can be null
|
||||
m_server->start(m_serial, 27183, 720, 8000000, "");
|
||||
// only one devices, serial can be null
|
||||
m_server->start(m_serial, 27183, 720, 8000000, "");
|
||||
|
||||
// support wireless connect
|
||||
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");
|
||||
// support wireless connect
|
||||
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");
|
||||
});
|
||||
}
|
||||
|
||||
VideoForm::~VideoForm()
|
||||
|
|
Loading…
Add table
Reference in a new issue