尝试使用 AForge 连接到网络摄像机(使用 Onvif URL)时关闭连接?

Close Connection when try connect to IP Camera (with Onvif URL) using AForge?

我想使用库 AForge.NET 连接到具有类似于此的 ONVIF 设备服务 URI 的 IP 摄像机:

http://admin:admin@192.168.1.142/onvif/device_service

但发送此错误:

the underlying connection was closed: the connection was closed
unexpectedly

如何在 AForge.NET 中使用 ONVIF 协议?

谢谢

您正在连接到 ONVIF 设备服务,而不是流媒体 URI。您最好使用 ONVIF Device Manager 连接到相机。如果我没记错的话,当您请求实时视频时,它会显示视频源的流 URI。