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处理按键
|
||||
|
||||
Reference in New Issue
Block a user