From 255a6915a9898fe6c1a6649cae707649226ec177 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 08 九月 2023 16:30:34 +0800
Subject: [PATCH] 程序启动清空相机缓存列表重新加载 增加sdk获取相机聚焦值接口 修改相机登录时离线清空通道列表 增加获取码流压缩参数(分辨率/编码格式/码率/流类型) 优化相机在线离线业务方法,修改仅在线设备上传ptz
---
ard-work/src/main/resources/templates/preview.html | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/ard-work/src/main/resources/templates/preview.html b/ard-work/src/main/resources/templates/preview.html
index 381edb7..49c1059 100644
--- a/ard-work/src/main/resources/templates/preview.html
+++ b/ard-work/src/main/resources/templates/preview.html
@@ -21,7 +21,7 @@
.container {
background-color: #151414; /* 灏嗙綉鏍奸」鐩殑棰滆壊璁剧疆涓虹孩鑹茶儗鏅� */
flex: 9;
- border: 1px solid #ccc;
+ border: 10px solid;
box-sizing: border-box;
display: grid;
grid-template-columns: repeat(2, 1fr); /* 榛樿 2x2 缃戞牸 */
@@ -35,7 +35,7 @@
display: flex;
justify-content: center;
align-items: center;
- border: 1px solid #ccc;
+ border: 2px solid #384551;
box-sizing: border-box;
padding: 10px; /* 鍐呰竟璺濅负 10px */
position: relative; /* 娣诲姞鐩稿瀹氫綅 */
@@ -132,11 +132,11 @@
video.addEventListener('loadedmetadata', function () {
adjustGridItemSize(gridItem, gridItem.videoWidth, gridItem.videoHeight);
});
- video.addEventListener("click", function() {
+ video.addEventListener("click", function () {
loadingMessage.style.display = "block";
- video.play().then(function() {
+ video.play().then(function () {
loadingMessage.style.display = "none";
- }).catch(function(error) {
+ }).catch(function (error) {
console.error("Error playing the video:", error);
loadingMessage.style.display = "none";
});
@@ -148,14 +148,19 @@
}
+ let mediamtxHost = "192.168.1.227"
var chanMap = new Map();
window.onload = function () {
changeGrid(2, 2);
- chanMap.set("video1", "http://127.0.0.1:8889/245/");
- chanMap.set("video2", "http://127.0.0.1:8889/164/");
- chanMap.set("video3", "http://127.0.0.1:8889/164/");
- chanMap.set("video4", "http://127.0.0.1:8889/165/");
- chanMap.set("video5", "http://127.0.0.1:8889/165/");
+ chanMap.set("video1", "http://" + mediamtxHost + ":8889/164/");
+ chanMap.set("video2", "http://" + mediamtxHost + ":8889/165/");
+ chanMap.set("video3", "http://" + mediamtxHost + ":8889/245/");
+ chanMap.set("video4", "http://" + mediamtxHost + ":8889/164/");
+ chanMap.set("video5", "http://" + mediamtxHost + ":8889/165/");
+ chanMap.set("video6", "http://" + mediamtxHost + ":8889/245/");
+ chanMap.set("video7", "http://" + mediamtxHost + ":8889/164/");
+ chanMap.set("video8", "http://" + mediamtxHost + ":8889/165/");
+ chanMap.set("video9", "http://" + mediamtxHost + ":8889/245/");
console.log(chanMap);
}
const linkToIceServers = (links) => (
@@ -417,6 +422,7 @@
})
}
+
</script>
</body>
</html>
--
Gitblit v1.9.3