WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit d522b6f

Browse files
authored
feat(HikVision): support auto hide Wnd change route (#801)
* refactor: 精简代码 * refactor: 增加切换路由自动隐藏窗体逻辑 * chore: bump version 10.0.2
1 parent 61f617c commit d522b6f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/components/BootstrapBlazor.HikVision/BootstrapBlazor.HikVision.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.0.1</Version>
4+
<Version>10.0.2</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.HikVision/Components/HikVisionWebPlugin.razor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { init as initVision, login as loginVision, logout, startRealPlay, stopRealPlay, dispose as disposeVision } from '../hikvision.js';
22
import Data from '../../BootstrapBlazor/modules/data.js';
3-
import EventHandler from '../../BootstrapBlazor/modules/event-handler.js';
43

54
export async function init(id, invoke) {
65
const el = document.getElementById(id);

src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export async function init(id) {
2626
if (checkVisibility(el)) {
2727
WebVideoCtrl.I_Resize(el.offsetWidth, el.offsetHeight);
2828
}
29+
else {
30+
WebVideoCtrl.I_HidPlugin();
31+
}
2932
});
3033
observer.observe(el);
3134
vision.observer = observer;

0 commit comments

Comments
 (0)