From f37c91a84345f925e41cd26bf5d22ed1a2594bdf Mon Sep 17 00:00:00 2001 From: liusuyi <1951119284@qq.com> Date: 星期四, 06 六月 2024 14:37:16 +0800 Subject: [PATCH] 防止录像文件持续生成,增加启动项目清空本地录像临时文件 --- ard-work/src/main/resources/templates/test.html | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html index 6c967e0..5623b4b 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"; -- Gitblit v1.9.3