fix cameras parameters

This commit is contained in:
Ivan 2023-09-29 01:18:53 +03:00
parent ab1c9aca80
commit a95a6d99e4
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583
4 changed files with 9 additions and 11 deletions

View File

@ -2739,7 +2739,7 @@ app.post('/cameras-parameters', async (req, res) => {
},
data: JSON.stringify({
"FIELDS": [
"AR"
"MAIN"
]
}),
});
@ -2768,13 +2768,11 @@ app.put('/cameras-parameters', async (req, res) => {
const { serial } = req.query;
const {
VEC
MAIN
} = requestData;
const requestBody = {
"AR": {
"VEC": VEC
}
"MAIN": MAIN
};
@ -2916,7 +2914,7 @@ app.put('/camera-parameters', async (req, res) => {
// Создаем JSON для GET запроса
const requestBody = {
"AR": camerasData
"MAIN": camerasData
};
// Отправляем GET запрос с JSON BODY

View File

@ -380,7 +380,7 @@ for (let radioButton of radioButtons) {
console.log(data.DATA);
camerasData = data.DATA.AR.VEC;
camerasData = data.DATA.MAIN;
function updateFields(selectedIndex) {
const selectedData = camerasData[selectedIndex];

View File

@ -1301,11 +1301,11 @@ mark.style.display = "none";
updateCamerasInArray();
const VEC = camerasData;
console.log(VEC);
const MAIN = camerasData;
console.log(MAIN);
const requestData = {
VEC
MAIN
};
try {

View File

@ -344,7 +344,7 @@
type: 'flv',
isLive: true,
cors: true,
url: `${baseURL}?serial=${serial}&channel=${i}&quality=0`,
url: `${baseURL}?serial=${serial}&channel=${i}&quality=1`,
}, {
enableWorker: true,
enableStashBuffer: false,