File tree Expand file tree Collapse file tree
src/BootstrapBlazor.Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 <PackageReference Include =" BootstrapBlazor.FluentSystemIcon" Version =" 10.0.0" />
4343 <PackageReference Include =" BootstrapBlazor.FontAwesome" Version =" 10.0.0" />
4444 <PackageReference Include =" BootstrapBlazor.Gantt" Version =" 10.0.0" />
45- <PackageReference Include =" BootstrapBlazor.HikVision" Version =" 10.0.8 " />
45+ <PackageReference Include =" BootstrapBlazor.HikVision" Version =" 10.0.9 " />
4646 <PackageReference Include =" BootstrapBlazor.Holiday" Version =" 10.0.0" />
4747 <PackageReference Include =" BootstrapBlazor.Html2Image" Version =" 10.0.0" />
4848 <PackageReference Include =" BootstrapBlazor.Html2Pdf" Version =" 10.0.1" />
Original file line number Diff line number Diff line change 1919 <li >由于核心功能均由海康威视 Web 插件提供所有浏览器控制台中会有部分提示或者报错信息均属于正常现象</li >
2020 <li >由海康威视 Web 插件绘制的预览窗口并不是 html dom 元素,所以出现被截断遮挡其他窗口,多屏显示不正确时请刷新浏览器即可</li >
2121 </ul >
22+ <p class =" code-label" >抓图功能说明:</p >
23+ <ul class =" ul-demo" >
24+ <li >必须登录并且开始预览后才可以开启抓图功能</li >
25+ <li >抓图后,文件默认存储在插件安装路径文件夹内(C:\Users\[UserName]\HCWebSDKPlugins\CaptureFiles)</li >
26+ <li >组件提供两种抓图方法,<code >CapturePicture</code > 方法直接抓图到本地存储路径;<code >CapturePictureAndDownload</code > 方法抓图后直接弹窗下载文件</li >
27+ </ul >
2228 <p class =" code-label" >录像功能说明:</p >
2329 <ul class =" ul-demo" >
2430 <li >必须登录并且开始预览后才可以开启录像功能</li >
9197 <Button OnClick =" OnCapture" IsDisabled =" _stopRealPlayStatus" >
9298 <span >抓图</span >
9399 </Button >
100+ <Button OnClick =" OnCaptureAndDownload" IsDisabled =" _stopRealPlayStatus" >
101+ <span >抓图下载</span >
102+ </Button >
94103 <Button OnClick =" OnStartRecord" IsDisabled =" _startRecordStatus" >
95104 <span >开始录像</span >
96105 </Button >
Original file line number Diff line number Diff line change @@ -95,7 +95,28 @@ private async Task OnCloseSound()
9595
9696 private async Task OnCapture ( )
9797 {
98- await _hikVision . CapturePictureAndDownload ( ) ;
98+ var result = await _hikVision . CapturePicture ( ) ;
99+ if ( result )
100+ {
101+ await ToastService . Success ( "消息通知" , "抓图成功" ) ;
102+ }
103+ else
104+ {
105+ await ToastService . Error ( "消息通知" , "抓图失败" ) ;
106+ }
107+ }
108+
109+ private async Task OnCaptureAndDownload ( )
110+ {
111+ var result = await _hikVision . CapturePictureAndDownload ( ) ;
112+ if ( result )
113+ {
114+ await ToastService . Success ( "消息通知" , "抓图成功" ) ;
115+ }
116+ else
117+ {
118+ await ToastService . Error ( "消息通知" , "抓图失败" ) ;
119+ }
99120 }
100121
101122 private async Task OnStartRecord ( )
You can’t perform that action at this time.
0 commit comments