支持默认设备

dev
rankun 7 years ago
parent 5b97e7b56e
commit 7179678cc1

@ -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;

@ -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, "");

Loading…
Cancel
Save