From f9a19ec312d701744fe6909becfd0075c9ad65a9 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 21 Aug 2023 16:37:19 +0300 Subject: [PATCH] redirect archive video update --- static/templates/videos/see.html | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/static/templates/videos/see.html b/static/templates/videos/see.html index b5641eb..a2b2017 100644 --- a/static/templates/videos/see.html +++ b/static/templates/videos/see.html @@ -543,22 +543,9 @@ function playVideo(channel) { const selectedDate = formatDate(selectedDateInput.value); const serial = selectedDevice.value; - const url = `http://localho.st:8081/?url=http%3A%2F%2Fkrbl.ru%3A8080%2Fhttp%2Fplayback.flv%3Fserial%3D${serial}%26channel%3D${channel}%26quality%3D1%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D130000`; + const url = `http://localhost:8081/?url=http%3A%2F%2Fkrbl.ru%3A8080%2Fhttp%2Fplayback.flv%3Fserial%3D${serial}%26channel%3D${channel}%26quality%3D1%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D130000`; + window.open(url, '_blank'); - const xhr = new XMLHttpRequest(); - - xhr.onreadystatechange = function () { - if (xhr.readyState === 4) { - if (xhr.status === 200) { - console.log('Запрос выполнен успешно.'); - } else { - console.error('Произошла ошибка при выполнении запроса.'); - } - } - }; - - xhr.open('GET', url, true); - xhr.send(); }