mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-05 15:08:39 +00:00
支持默认设备
This commit is contained in:
parent
5b97e7b56e
commit
7179678cc1
2 changed files with 4 additions and 6 deletions
|
@ -156,10 +156,6 @@ bool Server::execute()
|
||||||
|
|
||||||
bool Server::start(const QString& serial, quint16 localPort, quint16 maxSize, quint32 bitRate, const QString& crop)
|
bool Server::start(const QString& serial, quint16 localPort, quint16 maxSize, quint32 bitRate, const QString& crop)
|
||||||
{
|
{
|
||||||
if (serial.isEmpty()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_serial = serial;
|
m_serial = serial;
|
||||||
m_localPort = localPort;
|
m_localPort = localPort;
|
||||||
m_maxSize = maxSize;
|
m_maxSize = maxSize;
|
||||||
|
|
|
@ -79,7 +79,9 @@ VideoForm::VideoForm(QWidget *parent) :
|
||||||
// support 480p 720p 1080p
|
// support 480p 720p 1080p
|
||||||
//m_server->start("P7C0218510000537", 27183, 0, 8000000, "");
|
//m_server->start("P7C0218510000537", 27183, 0, 8000000, "");
|
||||||
//m_server->start("P7C0218510000537", 27183, 1080, 8000000, "");
|
//m_server->start("P7C0218510000537", 27183, 1080, 8000000, "");
|
||||||
m_server->start("P7C0218510000537", 27183, 720, 8000000, "");
|
|
||||||
|
// only one devices, serial can be null
|
||||||
|
m_server->start("", 27183, 720, 8000000, "");
|
||||||
|
|
||||||
// support wireless connect
|
// support wireless connect
|
||||||
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");
|
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue