Skip to content

Commit e67fab3

Browse files
authored
feat(HikVision): support IDispose interface (#783)
* feat: 支持销毁方法 * chore: bump version 10.0.0-beta02
1 parent 9b0dc1c commit e67fab3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

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.0-beta01</Version>
4+
<Version>10.0.0-beta02</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ export function stopRealPlay(id) {
237237
}
238238

239239
export function dispose(id) {
240+
stopRealPlay(id);
241+
logout(id);
242+
WebVideoCtrl.I_DestroyPlugin();
243+
240244
Data.remove(id);
241245
}
242246

0 commit comments

Comments
 (0)