From 2799314298467be9ed68d9e19891e35cb3c3edad Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期四, 01 八月 2024 08:14:18 +0800
Subject: [PATCH] 电磁锁动作状态改为操控中...提交
---
ard-work/src/main/resources/templates/test.html | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html
index 6c967e0..6284aaf 100644
--- a/ard-work/src/main/resources/templates/test.html
+++ b/ard-work/src/main/resources/templates/test.html
@@ -127,6 +127,7 @@
<div class="row">
<div class="row top-buffer">
<button id="preview" type="button" class="btn btn-primary">棰勮</button>
+ <button id="previewStop" type="button" class="btn btn-primary">鍋滄</button>
</div>
<div class="row top-buffer">
<video id="video" muted autoplay loop controls
@@ -263,7 +264,10 @@
}
})
});
-
+ //鍋滄
+ $('#previewStop').click(() => {
+ webrtcClient.stop();
+ });
//浜戝彴涓婁笅宸﹀彸
$("#up").mousedown(function () {
var url = "../cameraSdk/PTZControlWithSpeed";
@@ -1044,8 +1048,10 @@
}
// this.eTag = res.headers.get('ETag');
this.eTag = res.headers.get("ETag") || res.headers.get('E-Tag');
+ this.wurl = new URL(res.headers.get('location'), this.wurl.origin).toString();
return res.text();
- })
+ }
+ )
.then((sdp) => this.onRemoteAnswer(new RTCSessionDescription({
type: 'answer',
sdp,
@@ -1089,8 +1095,10 @@
if (evt.candidate !== null) {
if (this.eTag === '') {
+ console.log("222222222222222222222")
this.queuedCandidates.push(evt.candidate);
} else {
+ console.log("333333333333333333333")
this.sendLocalCandidates([evt.candidate])
}
}
@@ -1149,7 +1157,6 @@
}
function realView(whepUrl, videoId) {
- console.log(whepUrl)
webrtcClient = new WHEPClient(whepUrl, videoId);
}
</script>
--
Gitblit v1.9.3