当前位置:网站首页>When adding RTSP devices to easycvr platform, what is the reason for the phenomenon that they are all connected by TCP?

When adding RTSP devices to easycvr platform, what is the reason for the phenomenon that they are all connected by TCP?

2022-07-27 20:43:00 EasyCVR

EasyCVR It is the most comprehensive video platform we support , Supported protocols include national standards GB/T28181、RTSP/Onvif、RTMP etc. , And the platform compatibility is very high , Support multiple types of device access , Including traditional webcams 、NVR、 Encoder 、4G Mobile law enforcement instrument and other video source equipment access . The platform supports compatibility with different brands 、 Different types of video platforms and devices , It can cover the vast majority of equipment on the market .

We found during the test that , stay EasyCVR Front end add RTSP Equipment time , Whether it's a choice UDP still TCP, Appeared, and finally TCP The phenomenon of adding connection mode .

Add device with TCP/UDP Options :

Adding devices in the channel can only be done in the directory above TCP still UDP Conduct RTSP Connect :

So I found in the test , No matter what the upper directory chooses TCP still UDP, In the end TCP The way to add devices . This obviously does not conform to the functional design of our platform , Therefore, in view of this situation, we conducted troubleshooting, analysis and solution .

1) First, you need to find the one that adds the device API Interface . The code is as follows :

2) Here is the information to get the device directory , It comes with the addition TCP and UDP attribute .

3) Here's the picture , Here is the device added to the data :

4) The following is to add RTSP flow , And there's one RTSP Handle :

5) Finally found the add RTSP Handle , It turns out that it's dead TCP How to connect . Here's the picture :

resolvent :

1) When you start adding devices , Pass the connection mode of the parent channel to the subclass . In this way, the subclass has the connection mode of the parent class . Here's the picture :

2) Finally, it needs to be modified and written to death TCP How to connect , Just judge , as follows :

After modification according to the above operation ,RTSP The device always uses TCP The problem of mode connection has been fixed .

EasyCVR Acquisition of platform 、 Converge 、 code 、 management 、 Storage 、 Efficient basic video capabilities such as distribution , For each platform module 、 The subsystem provides stable and smooth video data services . The platform can provide unified services API Interface , Connect devices 、 Connect data 、 Connect applications , Facilitate the rapid integration of third-party platforms .

EasyCVR At present, it has landed in a large number of offline scenes , Such as smart factory 、 Smart construction site 、 Intelligent Security 、 Smart campus 、 Intelligent water conservancy and other scenes . Interested users can go to the demonstration platform for experience or deployment testing .

原网站

版权声明
本文为[EasyCVR]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/208/202207271756395893.html