RTSP更新
This commit is contained in:
parent
ed051c1279
commit
9257599e62
|
@ -9,6 +9,7 @@
|
|||
#img_id {
|
||||
display: block; /* 使圖像為塊級元素,以便使用 margin:auto; */
|
||||
margin: auto; /* 將圖像置中 */
|
||||
width:80%
|
||||
}
|
||||
</style>
|
||||
<h1>即時影像</h1>
|
||||
|
@ -50,8 +51,13 @@
|
|||
|
||||
|
||||
|
||||
<!--跳轉頁面-->
|
||||
<script>
|
||||
|
||||
|
||||
function Yuntech_RTSP() {
|
||||
window.open("http://140.125.50.178:7006/", "_blank");
|
||||
}
|
||||
</script>
|
||||
|
||||
<!--獲取資料-->
|
||||
<script>
|
||||
|
@ -123,7 +129,9 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
success: function (response) {
|
||||
stop = false
|
||||
|
@ -139,7 +147,9 @@
|
|||
console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization':token
|
||||
},
|
||||
success: function (response) {
|
||||
//webcam_view.showModal()
|
||||
|
@ -160,6 +170,7 @@
|
|||
//console.log(img)
|
||||
img = document.getElementById("img_id")
|
||||
img.src = img_base_64
|
||||
//console.log(img_base_64)
|
||||
if (stop == false){
|
||||
setTimeout('CAM_RTSP_1()', 20);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user