支持默认设备

This commit is contained in:
rankun 2018-11-19 10:01:31 +08:00
parent 5b97e7b56e
commit 7179678cc1
2 changed files with 4 additions and 6 deletions

View file

@ -155,11 +155,7 @@ bool Server::execute()
}
bool Server::start(const QString& serial, quint16 localPort, quint16 maxSize, quint32 bitRate, const QString& crop)
{
if (serial.isEmpty()) {
return false;
}
{
m_serial = serial;
m_localPort = localPort;
m_maxSize = maxSize;

View file

@ -79,7 +79,9 @@ VideoForm::VideoForm(QWidget *parent) :
// support 480p 720p 1080p
//m_server->start("P7C0218510000537", 27183, 0, 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
//m_server->start("192.168.0.174:5555", 27183, 720, 8000000, "");