From 792568a1c0e43d21fa7fe2bc17c672a94a343f7c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 9 Dec 2025 13:02:47 +0800 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js b/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js index 008239b6..93bdfe64 100644 --- a/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js +++ b/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js @@ -86,6 +86,10 @@ const hackJSDestroyPlugin = function () { JSVideoPlugin = null; delete window.JSVideoPlugin; removePlugin(); + + return new Promise((resolve, reject) => { + resolve(); + }); } } From 596ecdc1694141f945ab0e88fdd6c2b868e83e7c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 9 Dec 2025 13:03:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E9=94=80?= =?UTF-8?q?=E6=AF=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.HikVision/wwwroot/hikvision.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js b/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js index 93bdfe64..97ceebcd 100644 --- a/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js +++ b/src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js @@ -349,12 +349,12 @@ export function stopRealPlay(id) { export function dispose(id) { const vision = Data.get(id); - Data.remove(id); - const { realPlaying, logined, observer } = vision; if (observer) { observer.disconnect(); } + WebVideoCtrl.I_HidPlugin(); + if (realPlaying === true) { stopRealPlay(id); } @@ -362,6 +362,8 @@ export function dispose(id) { logout(id); } WebVideoCtrl.I_DestroyPlugin(); + + Data.remove(id); } const getTagNameFirstValue = (xmlDoc, tagName, defaultValue = '0') => { From a7bb75254779f8166b44d63246eb87c4fbd4ae71 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 9 Dec 2025 13:03:30 +0800 Subject: [PATCH 3/3] chore: bump version 10.0.3 --- .../BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj b/src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj index 5074ef7d..6d49b425 100644 --- a/src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj +++ b/src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj @@ -1,7 +1,7 @@ - 10.0.2 + 10.0.3