fix(media): fix backboard camera display and mdns connection."

This commit is contained in:
2025-09-18 17:05:23 +08:00
parent 4a25fb0e80
commit aa1d0a6579
12 changed files with 98 additions and 34 deletions

View File

@@ -176,14 +176,14 @@ void ClientHandler::sendJsonItem(const QJsonArray& jsonArray, int itemIndex, con
if (jsonArray == backBoardTest) {
QJsonObject tempItem = jsonArray[itemIndex].toObject();
if (tempItem["cmd"] == "VIDEO_TEST") {
if (tempItem["val"] == 0) {
if (tempItem["val"] == 1 || tempItem["val"] == 2) {
isSingleSend = false;
isClickedSend = false;
isRecvVideoData = true;
isStartVideo = true;
startReadVideoDataTimer(isBackBoardOrAllBoard);
}
else if (tempItem["val"] == 1) {
else if (tempItem["val"] == 0) {
isRecvVideoData = false;
isStartVideo = false;
stopReadVideoDataTimer(isBackBoardOrAllBoard);