diff --git a/server.js b/server.js index 6d6b5d1..67e6316 100644 --- a/server.js +++ b/server.js @@ -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 diff --git a/static/scripts/parameters-form.js b/static/scripts/parameters-form.js index 2cd7927..373574d 100644 --- a/static/scripts/parameters-form.js +++ b/static/scripts/parameters-form.js @@ -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]; diff --git a/static/templates/devices/system.html b/static/templates/devices/system.html index 3b7d834..86f7218 100644 --- a/static/templates/devices/system.html +++ b/static/templates/devices/system.html @@ -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 { diff --git a/static/templates/live.html b/static/templates/live.html index b00302d..33ff148 100644 --- a/static/templates/live.html +++ b/static/templates/live.html @@ -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,