From cff5cb44c03ffc1af5c1dffed1707696fbc2a596 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 4 Dec 2025 16:38:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/HikVision.razor.cs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.HikVision/Components/HikVision.razor.cs b/src/components/BootstrapBlazor.HikVision/Components/HikVision.razor.cs index bd19718f..a8fa5e3e 100644 --- a/src/components/BootstrapBlazor.HikVision/Components/HikVision.razor.cs +++ b/src/components/BootstrapBlazor.HikVision/Components/HikVision.razor.cs @@ -84,7 +84,7 @@ protected override void OnParametersSet() /// /// /// - public async Task Login(string ip, string port, string userName, string password, LoginType loginType = LoginType.Http) + public async Task Login(string ip, int port, string userName, string password, LoginType loginType = LoginType.Http) { await InvokeVoidAsync("login", Id, ip, port, userName, password, (int)loginType); } @@ -97,4 +97,22 @@ public async Task Logout() { await InvokeVoidAsync("logout", Id); } + + /// + /// 开始实时预览方法 + /// + /// + public async Task StartRealPlay() + { + await InvokeVoidAsync("startRealPlay", Id); + } + + /// + /// 停止实时预览方法 + /// + /// + public async Task StopRealPlay() + { + await InvokeVoidAsync("stopRealPlay", Id); + } }