mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
fix:不录像时传递sendframemeta false 给server
This commit is contained in:
parent
f50c561f02
commit
45ba8c1f66
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
|
||||
QTimer::singleShot(0, this, [this](){
|
||||
bool sendFrameMeta = m_recorder ? true : false;
|
||||
m_startTimeCount.start();
|
||||
// max size support 480p 720p 1080p 设备原生分辨率
|
||||
// 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
|
||||
// mark: crop input format: "width:height:x:y" or - for no crop, for example: "100:200:0:0"
|
||||
// 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());
|
||||
|
|
Loading…
Add table
Reference in a new issue