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); + } }