0

i'm developing software to display ip camera "Acti", i tried to use axnvUnifiedControl but i cannot find any information about it.

my goal is to connect to the camera using IP, username, and password and display the camera image in windows form.

i'm using c# .net 4.0

4

2 回答 2

1

这可以使用以下代码片段来完成:

  • 首先,您应该在工具箱中引用 OCX,并将其拖到表单中。但我尝试在设计模式下使用它,但 VS 挂起并强制关闭。

    camMedia.MediaSource = CameraIP;    
    camMedia.MediaUsername = UserName;  
    camMedia.MediaPassword = Password;    
    camMedia.HttpPort = HttpPort;//80    
    camMedia.RegisterPort = RegisterPort;//6000    
    camMedia.ControlPort = ControlPort;//6001    
    camMedia.StreamingPort = StreamingPort;//6002    
    camMedia.Connect(0);
    

其中camMedia是 OCX 对象名称。

于 2012-07-21T00:16:58.657 回答
0

ACTi有相当广泛的相机,它们不共享统一的 API。您必须为您感兴趣的模型查找文档并检查供应商的示例代码和 SDK。这些相机还支持一些众所周知的协议,例如,RTSPM-JPEG over HTTP可以利用某些库来可视化提要,但同样您需要文档、规范和 SDK 来查找基本信息。

于 2012-07-19T17:05:25.740 回答