监控新增对焦按钮

This commit is contained in:
Yutousama 2022-03-02 16:26:04 +08:00
parent c1e8d1714c
commit b0ad119d11
2 changed files with 13 additions and 3 deletions

View File

@ -338,6 +338,10 @@ public class NasManager {
json.put("msg","已播放警告音频");
HttpTools.get("http://"+UpdateIp.nas_ip+":8000/door/audio_url.do?url=http%3A%2F%2F192.168.31.88%3A803%2Fwarning.mp3");
break;
case "af":
json.put("msg","已重新对焦");
HttpTools.get("http://"+UpdateIp.nas_ip+":8000/door/af.do");
break;
}
return json;
}

View File

@ -42,6 +42,9 @@
<button id="warning" type="button" class="button layui-btn layui-btn-normal">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</button>
<button id="af" type="button" class="button layui-btn layui-btn-normal">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</button>
</div>
</div>
@ -89,6 +92,9 @@
$('#warning').mouseup(function () {
config('warning')
})
$('#af').mouseup(function () {
config('af')
})
function config(status) {
$.post("/door/set.do", {status: status}, function (json) {
@ -144,18 +150,18 @@
width: 100%;
height: 300px;
margin-top: 10px;
margin-left: 15%;
margin-left: 1%;
float: left;
}
.myVideo {
width: 70%;
float: left;
float: right;
}
.myButtons {
width: 30%;
float: right;
float: left;
}
.button {