mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-01 13:28:38 +00:00
fix:不录像时传递sendframemeta false 给server
This commit is contained in:
parent
d67930a1ab
commit
e91b3df4de
1 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ VideoForm::VideoForm(const QString& serial, quint16 maxSize, quint32 bitRate, co
|
||||||
|
|
||||||
// fix: macos cant recv finished signel, timer is ok
|
// fix: macos cant recv finished signel, timer is ok
|
||||||
QTimer::singleShot(0, this, [this](){
|
QTimer::singleShot(0, this, [this](){
|
||||||
|
bool sendFrameMeta = m_recorder ? true : false;
|
||||||
m_startTimeCount.start();
|
m_startTimeCount.start();
|
||||||
// max size support 480p 720p 1080p 设备原生分辨率
|
// max size support 480p 720p 1080p 设备原生分辨率
|
||||||
// support wireless connect, example:
|
// support wireless connect, example:
|
||||||
|
@ -48,7 +49,7 @@ VideoForm::VideoForm(const QString& serial, quint16 maxSize, quint32 bitRate, co
|
||||||
// only one devices, serial can be null
|
// only one devices, serial can be null
|
||||||
// mark: crop input format: "width:height:x:y" or - for no crop, for example: "100:200:0:0"
|
// mark: crop input format: "width:height:x:y" or - for no crop, for example: "100:200:0:0"
|
||||||
// sendFrameMeta for recorder mp4
|
// sendFrameMeta for recorder mp4
|
||||||
m_server->start(m_serial, 27183, m_maxSize, m_bitRate, "-", true);
|
m_server->start(m_serial, 27183, m_maxSize, m_bitRate, "-", sendFrameMeta);
|
||||||
});
|
});
|
||||||
|
|
||||||
updateShowSize(size());
|
updateShowSize(size());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue