简体   繁体   English

尝试使用AForge连接到IP摄像机(带有Onvif URL)时关闭连接?

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

I want connect using the library AForge.NET to an IP camera with ONVIF Device Service URI similar to this : 我想使用库AForge.NET连接到具有如下ONVIF设备服务URI的IP摄像机:

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

but send this error : 但发送此错误:

the underlying connection was closed: the connection was closed
unexpectedly

How can I work with the ONVIF protocol in AForge.NET? 如何在AForge.NET中使用ONVIF协议?

Thank's 谢谢

You are connecting to the ONVIF Device Service, not the streaming URI. 您正在连接到ONVIF设备服务,而不是流URI。 It's better for you to connect to the camepra with ONVIF Device Manager . 最好使用ONVIF Device Manager连接到camepra。 If I remeber correctly, when you request the live video, it shows the streaming URI for the video feed. 如果我正确地记得,当您请求直播视频时,它会显示视频供稿的流URI。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM