1. 增加猫眼镜头切换IRCUT; 2. 优化连续多次打开视频获取视频流导致的内存问题
This commit is contained in:
@@ -201,16 +201,22 @@ void ClientHandler::sendGetDevInfoItem(int itemIndex)
|
||||
}
|
||||
|
||||
// 发送取图按键
|
||||
void ClientHandler::sendGetPicItem(int itemIndex, int lastClickedGetVideoCamIndex)
|
||||
void ClientHandler::sendGetPicItem(int itemIndex, int GetPicCamIndex)
|
||||
{
|
||||
sendJsonItem(getPicJson, itemIndex, QString::number(lastClickedGetVideoCamIndex), "getPic");
|
||||
sendJsonItem(getPicJson, itemIndex, QString::number(GetPicCamIndex), "getPic");
|
||||
}
|
||||
|
||||
// 发送拉视频按键
|
||||
void ClientHandler::sendGetVideoItem(int itemIndex, int video_flag)
|
||||
void ClientHandler::sendGetVideoItem(int itemIndex, int GetVideoCamIndex)
|
||||
{
|
||||
qDebug() << "sendGetVideoItem itemIndex:" << itemIndex;
|
||||
sendJsonItem(getVideoJson, itemIndex, "", "handleVideo");
|
||||
qDebug() << "sendGetVideoItem GetVideoCamIndex:" << GetVideoCamIndex;
|
||||
if(isBackBoardOrAllBoard) {
|
||||
sendJsonItem(getVideoJson, itemIndex, QString::number(GetVideoCamIndex), "handleVideo");
|
||||
}
|
||||
else {
|
||||
sendJsonItem(getVideoJson, itemIndex, "", "handleVideo");
|
||||
}
|
||||
}
|
||||
|
||||
// 发送License处理按键
|
||||
|
||||
@@ -52,9 +52,9 @@ public:
|
||||
// 发送获取设备信息按键
|
||||
void sendGetDevInfoItem(int itemIndex);
|
||||
// 发送取图按键
|
||||
void sendGetPicItem(int itemIndex, int lastClickedGetVideoCamIndex);
|
||||
void sendGetPicItem(int itemIndex, int GetPicCamIndex);
|
||||
// 发送拉视频流按键
|
||||
void sendGetVideoItem(int itemIndex, int video_flag);
|
||||
void sendGetVideoItem(int itemIndex, int GetVideoCamIndex);
|
||||
// 发送License处理按键
|
||||
void sendLicenseItem(int itemIndex, const QString text);
|
||||
void sendUuidItem(int itemIndex, const QString text);
|
||||
|
||||
Reference in New Issue
Block a user